logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Phpwiki syntax: msg#00022

Subject: Re: Phpwiki syntax
On 6/15/07, Reini Urban <rurban@xxxxxxxx> wrote:
> 2007/6/15, Manuel Vacelet <manuel.vacelet@xxxxxxxxx>:
> > On 6/14/07, Reini Urban <rurban@xxxxxxxx> wrote:
> > > 2007/6/14, Manuel Vacelet <manuel.vacelet@xxxxxxxxx>:
> > > > 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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>