[pmwiki-users] Authorlink in pagerev.php

Patrick R. Michaud pmichaud at pobox.com
Thu Feb 2 12:58:24 CST 2006


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