[dokuwiki] Re: author in footer of bliki
- From: Michael Klier <chi@xxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 22 Jun 2006 11:21:16 +0200
On Wed, Jun 21, 2006 at 10:06:33PM +0200, ding280 wrote:
> Hi!
>
> I use the bliki plugin in my dokuwiki installation. I believe, it's
> useful to add the author in the footer of each entry. But I don't know,
> how to do this, I tried to replace this line in den function
> "compilePosts" in the syntax.php of bliki:
>
> $str .= str_replace(array('{timestamp}', '{permalink}', '{edit}'),
> array($timestamp, $post_url, "this>$edit_url"), $conf['bliki']['footer']);
>
> replaced to:
>
> $str .= str_replace(array('{author}', '{timestamp}', '{permalink}',
> '{edit}'), array($INFO['editor'], $timestamp, $post_url,
> "this>$edit_url"), $conf['bliki']['footer']);
>
> But this modification don't work. Know anybody of you a solution for
> this problem?
Hi,
you have to made the $INFO array global,
function compilePosts($list) {
global $ID, $conf;
becomes
function compilePosts($list) {
global $ID, $conf, $INFO;
you have to modify $conf['bliki']['footer'] as well and insert the
{author} part to the string.
Cheers
Michael
--
Michael Klier
mail: chi@xxxxxxxxxxx
www: http://www.chimeric.de
icq: 206179334
jabber: chi@xxxxxxxxxxxxx
key: http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551
- Follow-Ups:
- [dokuwiki] Re: author in footer of bliki
- From: ding280
- References:
- [dokuwiki] author in footer of bliki
- From: ding280
Other related posts:
- » [dokuwiki] author in footer of bliki
- » [dokuwiki] Re: author in footer of bliki
- » [dokuwiki] Re: author in footer of bliki
- [dokuwiki] Re: author in footer of bliki
- From: ding280
- [dokuwiki] author in footer of bliki
- From: ding280