forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: François Keller on January 19, 2011, 09:20:13 pm

Title: Update History plugin for cpg1.5.x
Post by: François Keller on January 19, 2011, 09:20:13 pm
UPDATE HISTORY: Display an update history block on main page

daxad (http://forum.coppermine-gallery.net/index.php?action=profile;u=45771) has ported the cpg1.4.x Update History plugin (http://forum.coppermine-gallery.net/index.php/topic,38148.0.html) to cpg1.5.x
Install:
- unzip package to plugins folder and use plugin manager to install it
- after installation add updatehistory to :
    config => Album list view => The content of the main page
Version 1.0
CONFIG:

In the config panel you can setup the plugin for each usergroup.
Possibility to show the n last uploads or the last uploads since n days

Thank's to daxad for this work and sharing
This plugin is added to the SVN
Title: Re: Update History plugin for cpg1.5.x
Post by: daxad on January 25, 2011, 10:49:38 am
I found this weekend a bug that caused a critical error when some albums were private (forbidden attribute) on the entry page without logging in CPG.
I made the following changes in the code:
*In the history_admin.php file, patch of the variable $lang_continue with $lang_common['continue']
*In the codebase.php file, adaptation of the variable $FORBIDDEN_SET_UPD in the function 'update_history($html)'

Now everything seems working properly. I named the new version 1.1

The file for installing this new version is attached herebelow