|
Cookbook /
RecentUploadsLog-ArchiveSummary: Archive for the recipe RecentUploadsLog
Maintainer: Petko
This is an archived page. Before PmWiki 2.2.6, this recipe provided a RecentUploads functionality. From PmWiki version 2.2.6 and newer, this feature exists in the core, so the recipe is no longer needed. See RecentUploadsLog for more information. Questions answered by this recipeHow do I track every uploaded file in the RecentChanges and AllRecentChanges pages and easily review it? DescriptionEvery uploaded file is logged in the Group.RecentUploads pages with a link from (All)RecentChanges for easy review. To install this recipe:
The format logged in the (All)RecentChanges pages is as follows:
where Page is a link to the wiki page where the file was attached, and Picture.png is a link to the file itself (click to download/review it). Only the latest upload for a Group is displayed in RecentChanges, however, clicking on the link Group.RecentUploads will show you all uploaded files for the Group. In a new special page RecentUploads (you can go there from the link at the RecentChanges page) are stored logs for all uploaded attachments in the format:
Changing the default logging format(For advanced administrators.) The default format is:
$RecentUploadsFmt['$SiteGroup.AllRecentChanges'] =
'* [[{$Group}.RecentUploads]] . . . $CurrentTime $AuthorLink :'
.' [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]] ($upsize)';
$RecentUploadsFmt['$Group.RecentChanges'] =
'* [[{$Group}/RecentUploads]] . . . $CurrentTime $AuthorLink :'
.' [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]] ($upsize)';
$RecentUploadsFmt['$Group.RecentUploads'] =
'* [[{$Group}/{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]]'
.' . . . $CurrentTime $[by] $AuthorLink ($upsize)';
To unset one of the three default pages, where information is logged, set the following in config.php after the include_once() call. To log nothing on Site.AllRecentChanges: unset( To log nothing on Group.RecentChanges: unset(Notes
Release Notes
CommentsChanging the name of this recipe means the SiteAnalyzer cannot compare versions You may also want to add a link to your RecentUploads pages from (:if exists {*$Group}.RecentUploads:)
View log of [[{*$Group}.RecentUploads|recent uploads]] to this group
(:ifend:)
QuestionsIs there, or is it possible to create, a Site.AllRecentUploads analagous to the Site.AllRecentChanges page.? Sure, you can add to config.php the code: $RecentUploadsFmt['$SiteGroup.AllRecentUploads'] =
'* [[{$Group}.{$Name}]]/[[(Attach:{$Group}.{$Name}/)$upname]]'
.' . . . $CurrentTime $[by] $AuthorLink ($upsize)'; It will list every upload to Site.AllRecentUploads. --Petko August 21, 2008, at 05:18 AM
See Also
Contributors |