[pmwiki-users] Author name on RecentChanges pages
Crisses
crisses at kinhost.org
Sun Feb 16 09:03:44 CST 2014
Thank you again! :) fgrep on pmwiki source code for Author got lots of responses. Didn't know about $AuthorLink. That should work.
On Feb 16, 2014, at 2:02 AM, Petko Yotov wrote:
> Crisses writes:
>> « HTML content follows »
>>
>> New stupid question:
>>
>>
>> Before calling UpdatePage, I've tried setting (global) $Author, $_POST['author'] and $page['author'] to the author's name, none of which have caused the Recent Changes to note the author's name...the page history seems to be correct.
>
> What appears on RecentChanges, a question mark?
>
> You need to set $_POST['author'] before including scripts/author.php (it normally is set before the progam starts...).
>
> Otherwise, set the global $AuthorLink variable to "[[~$Author]]" before calling PostRecentChanges().
>
> You can read author.php to see how it's processed.
>
> Petko
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20140216/a81087ee/attachment.html>
More information about the pmwiki-users
mailing list