This patch introduces link anchors on the history page, using the timestamps (seconds since epoch). It also sets a $CurrentTimestamp variable which can be used in formats. This allows to change the RecentChanges pages to create direct links to particular changes, by adding the following to local/config.php: $RecentChangesFmt['$SiteGroup.AllRecentChanges'] = '* [[$Group.$Name]] ([[$FullName?action=diff#$CurrentTimestamp|diff]]) . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]'; $RecentChangesFmt['$Group.RecentChanges'] = '* [[$Group/$Name]] ([[$FullName?action=diff#$CurrentTimeTimestamp|diff]]) . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]'; It also changes $DiffStartFmt to include a link to a particular change Johannes Winkelmann, http://jw.smts.ch --- scripts/pagerev.php.orig 2006-08-11 07:59:45.000000000 +0200 +++ scripts/pagerev.php 2006-08-11 10:14:46.000000000 +0200 @@ -24,7 +24,7 @@

$DiffMinorFmt - $DiffSourceFmt

"); SDV($DiffStartFmt," -
\$DiffTime +
# \$DiffTime \$[by] \$DiffAuthor - \$DiffChangeSum
"); SDV($DiffDelFmt['a'],"
\$[Deleted line \$DiffLines:]
@@ -74,6 +74,7 @@ $diffclass = $match[3]; if ($diffclass=='minor' && $DiffShow['minor']!='y') continue; $diffgmt = $match[1]; $FmtV['$DiffTime'] = strftime($TimeFmt,$diffgmt); + $FmtV['$DiffTimestamp'] = $diffgmt; $diffauthor = @$page["author:$diffgmt"]; if (!$diffauthor) @$diffauthor=$page["host:$diffgmt"]; if (!$diffauthor) $diffauthor="unknown"; --- pmwiki-2.1.12.orig/pmwiki.php 2006-08-05 08:56:36.000000000 +0200 +++ pmwiki-2.1.12/pmwiki.php 2006-08-11 09:08:54.000000000 +0200 @@ -297,6 +297,7 @@ } SDV($CurrentTime,strftime($TimeFmt,$Now)); +SDV($CurrentTimestamp,$Now); if (IsEnabled($EnableStdConfig,1)) include_once("$FarmD/scripts/stdconfig.php");