From: Manuel V. <man...@gm...> - 2007-06-14 08:01:41
|
Hi all, I would like to know if there is a way to support phpwiki syntax in all the textarea of a website but without having to manage the textarea in wikipages. I was thinking about 2 ways: * use a 3rd party lib and hack it to support phpwiki syntax (like wikirenderer for instance). * hack phpwiki to only use the syntax parser (w/o plugins, save, templates, etc). Any advice ? -- Manuel |
From: Reini U. <ru...@x-...> - 2007-06-14 21:43:18
|
2007/6/14, Manuel Vacelet <man...@gm...>: > I would like to know if there is a way to support phpwiki syntax in > all the textarea of a website but without having to manage the > textarea in wikipages. > > I was thinking about 2 ways: > * use a 3rd party lib and hack it to support phpwiki syntax (like > wikirenderer for instance). > * hack phpwiki to only use the syntax parser (w/o plugins, save, > templates, etc). I don't think that I complelety understand. You mean completely dynamic, without any database persistency? As in tiddlywiki edit just updates a <div>? -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://spacemovie.mur.at/ http://helsinki.at/ |
From: Manuel V. <man...@gm...> - 2007-06-15 08:34:12
|
On 6/14/07, Reini Urban <ru...@x-...> wrote: > 2007/6/14, Manuel Vacelet <man...@gm...>: > > I would like to know if there is a way to support phpwiki syntax in > > all the textarea of a website but without having to manage the > > textarea in wikipages. > > > > I was thinking about 2 ways: > > * use a 3rd party lib and hack it to support phpwiki syntax (like > > wikirenderer for instance). > > * hack phpwiki to only use the syntax parser (w/o plugins, save, > > templates, etc). > > I don't think that I complelety understand. > You mean completely dynamic, without any database persistency? > As in tiddlywiki edit just updates a <div>? No, actually we (with Sabri) integrated phpwiki in a bigger intranet website and we are currently thinking about offer to our users the possibility to include some kind of in all the text input on the website (forum, news, bug tracking, etc...). What I want to do is to allow users to use the phpwiki syntax for this purpose (to keep it coherent). I hope it's more clear. -- Manuel |
From: Reini U. <ru...@x-...> - 2007-06-15 10:59:54
|
2007/6/15, Manuel Vacelet <man...@gm...>: > On 6/14/07, Reini Urban <ru...@x-...> wrote: > > 2007/6/14, Manuel Vacelet <man...@gm...>: > > > I would like to know if there is a way to support phpwiki syntax in > > > all the textarea of a website but without having to manage the > > > textarea in wikipages. > > > > > > I was thinking about 2 ways: > > > * use a 3rd party lib and hack it to support phpwiki syntax (like > > > wikirenderer for instance). > > > * hack phpwiki to only use the syntax parser (w/o plugins, save, > > > templates, etc). > > > > I don't think that I complelety understand. > > You mean completely dynamic, without any database persistency? > > As in tiddlywiki edit just updates a <div>? > > No, actually we (with Sabri) integrated phpwiki in a bigger intranet > website and we are currently thinking about offer to our users the > possibility to include some kind of in all the text input on the > website (forum, news, bug tracking, etc...). > > What I want to do is to allow users to use the phpwiki syntax for this > purpose (to keep it coherent). > I hope it's more clear. I see. That's very easy. require("BlockParser.php") $html = TransformText ($text); //(if you know the context for links, provide basepage also) $xml = $html->asXML(); -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://spacemovie.mur.at/ http://helsinki.at/ |
From: Manuel V. <man...@gm...> - 2007-06-15 12:34:53
|
On 6/15/07, Reini Urban <ru...@x-...> wrote: > 2007/6/15, Manuel Vacelet <man...@gm...>: > > On 6/14/07, Reini Urban <ru...@x-...> wrote: > > > 2007/6/14, Manuel Vacelet <man...@gm...>: > > > > I would like to know if there is a way to support phpwiki syntax in > > > > all the textarea of a website but without having to manage the > > > > textarea in wikipages. > > > > > > > > I was thinking about 2 ways: > > > > * use a 3rd party lib and hack it to support phpwiki syntax (like > > > > wikirenderer for instance). > > > > * hack phpwiki to only use the syntax parser (w/o plugins, save, > > > > templates, etc). > > > > > > I don't think that I complelety understand. > > > You mean completely dynamic, without any database persistency? > > > As in tiddlywiki edit just updates a <div>? > > > > No, actually we (with Sabri) integrated phpwiki in a bigger intranet > > website and we are currently thinking about offer to our users the > > possibility to include some kind of in all the text input on the > > website (forum, news, bug tracking, etc...). > > > > What I want to do is to allow users to use the phpwiki syntax for this > > purpose (to keep it coherent). > > I hope it's more clear. > > I see. That's very easy. > > require("BlockParser.php") > $html = TransformText ($text); > //(if you know the context for links, provide basepage also) > $xml = $html->asXML(); Unfortunatly it's not as easy due to the cascading of includes I already included prepend.php (rcs_id) config.php (clone) PageType.php (getInterwikiMap) BlockParser.php And I have to include main.php for getDdh too (I feel it becomes to be a bit heavy if I need to have a DB access). -- Manuel |