Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

RecentUploadsLog-Talk

Summary: Discussion of RecentUploadsLog
Version: 2009-09-03

From PmWiki version 2.2.6 this recipe is included in the core, this means if you were using the recipe in version 2.2.5 or earlier you need to remove from config.php the line

if(@$_REQUEST['action'] == 'postupload') { include_once("$FarmD/cookbook/recentuploads.php");}

and replace it with all or some of the lines

$RecentUploadsFmt['$Group.RecentUploads'] =
  '* [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]]'
  .'  . . . $CurrentTime $[by] $AuthorLink ($upsize bytes)';

$RecentUploadsFmt['$Group.RecentChanges'] =
  '* [[{$Group}/RecentUploads]]  . . . $CurrentTime $AuthorLink :'
  .' [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]] ($upsize bytes)';

$RecentUploadsFmt['$SiteGroup.AllRecentChanges'] =
  '* [[{$Group}.RecentUploads]]  . . . $CurrentTime $AuthorLink :'
  .' [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]] ($upsize bytes)';

I'd suggest as an improvement that consideration should be given to

  • making this recipe on by default, (as are recent changes)
  • move the default three format lines above into the recipe
  • adding a single line to config.php allowing the recipe to be disabled

thanks, simon October 16, 2009, at 11:52 PM

Hello. Pm opposed to making this recipe "on" by default, he agreed to allow this function only if it didn't change the PmWiki defaults. Making it easier to install could be possible though, like $EnableRecentUploads -- only I'm not sure the 3 pages from the recipe are good, or the current thing on pmwiki.org is better (only log uploads to Site.AllRecentChanges). --Petko October 17, 2009, at 03:15 AM

OK, perhaps best to leave the way it is, although providing $EnableRecentUploads with maybe =1 (AllRecentChanges only) and other pages added as above might be less formidable to newer users. Perhaps also adding these (commented out) to the sample config.php. thanks simon October 17, 2009, at 01:02 PM

Talk page for the Recent Uploads Log recipe (users).

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:42 AM