[pmwiki-users] link to particular diff in history

Rik Blok rik.blok at ubc.ca
Thu Feb 4 01:24:17 CST 2010

Wow, that's great, thanks Petko!  I've tried it out and it looks like it 
works perfectly.  (I had some problems at first until I realized I was 
using the InlineDiff recipe.  So I copied your changes from pagerev.php.)

Thanks for the fast work,

On 2010-02-03 10:24 PM, Petko Yotov wrote:
> On Monday 01 February 2010 22:11:41, Rik Blok wrote :
>> Hi everybody, long time lurker / first time poster here.  I've set up a
>> notify list but I'd like the links it creates to point to the
>> appropriate diffs in the history page.
> Hello. This was ads
>> I've added the necessary anchors in the history page by adding this to
>> config.php:
>>> $DiffStartFmt = "<div class='diffbox'><div class='difftime'><a
>>> name='\$DiffId'
>>> href='{\$PageUrl}?action=diff#\$DiffId'>\$DiffTime</a>\$[by]<span
>>> class='diffauthor' title='\$DiffHost'>\$DiffAuthor</span>  -
>>> \$DiffChangeSum</div>";
> Hello. Anchors/links to single edits were added to the core today and will
> appear in the next release. Then you'll be able to remove the above code from
> your config file. The links are now enabled on pmwiki.org, and if you're in a
> hurry, you can get the scripts/pagerev.php file from Subversion :
>    http://www.pmwiki.org/pub/pmwiki-devel/pmwiki-latest-svn.zip
>> But how do I get the notification to point to it?  I tried
>>> $NotifyItemFmt = " * {\$FullName} ... \$PostTime by {\$Author}\n Summary:
>>> {\$LastModifiedSummary}\n {\$PageUrl}?action=diff#{\$DiffId}\n";
> This will be possible in the nearest future (now with subversion, or later
> with 2.2.11 stable). When you upgrade, you can use
>    {\$PageUrl}?action=diff#diff\$Now
> Thanks,
> Petko



Rik Blok
Integrated Sciences / Zoology
University of British Columbia, Canada

email:  rik.blok at ubc.ca
phone:  604-736-6343
office: LSK 466
web:    http://www.zoology.ubc.ca/~rikblok

More information about the pmwiki-users mailing list