[pmwiki-users] Authorlink in pagerev.php
Tim Ahrentlov
ta at ateist.org
Fri Feb 3 07:37:03 CST 2006
It works. Boy - this is simply super cool. I'll send y'all a link to the
website once it launches. And when I've tested the code for a while, I'll
submit the VB integration as a recipe.
Thanks ;-)
/Tim
-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com]
Sent: 2. februar 2006 19:58
To: Tim Ahrentlov
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Authorlink in pagerev.php
On Thu, Feb 02, 2006 at 06:30:23PM +0100, Tim Ahrentlov wrote:
> That does not work. And how could it? Shouldn't pagerev use the author
> pulled from the page revisions in some loop and generate the URL once pr.
> revision (and author)?
Ohhhhh, right. Sorry about that, those two variables are left in
the system from long-long ago and don't actually do anything.
(I haven't dealt with the page revisions code in a very long time.)
The author pulled from the page revisions is held in $DiffAuthor
(which changes for each revision being displayed). So, let me
try again, using the correct variables this time...
$DiffStartFmt = "
<div class='diffbox'><div class='difftime'>\$DiffTime \$[by]
<a class='diffauthor' title='\$DiffHost'
href='http://path/to/forum/member.php?username=\$DiffAuthor'>
\$DiffAuthor</a> - \$DiffChangeSum</div>";
You can see this working at http://www.pmwiki.org/wiki/Test/DiffAuthor .
Pm
More information about the pmwiki-users
mailing list