SourceForge logo
SourceForge logo
Menu

phpwiki-talk

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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /