[dokuwiki] Re: author in footer of bliki

  • From: ding280 <ding280@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 22 Jun 2006 18:15:08 +0200

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?
>>     
> you have to made the $INFO array global, 
>
>     function compilePosts($list) {
>         global $ID, $conf;
>
> becomes
>
>     function compilePosts($list) {
>         global $ID, $conf, $INFO;
>   
Yes, I made it, but the problem is not solved.
> you have to modify $conf['bliki']['footer'] as well and insert the
> {author} part to the string.
Yes, I have done this, too. This line look like:
$conf['bliki']['footer'] = "\n\n><sub>Posted by {author} @ {timestamp}
-- [[{permalink}|Permalink]] -- [[{edit}|Edit]]</sub>\n\\\\\n";

The replacement for {author} works, i can't see this string at the
wiki-site. But there is no username, too.

regards
Thomas Preissler
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: