forum.coppermine-gallery.net
Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: just_some_guy on October 18, 2007, 01:08:50 pm
-
Extra Anycontent
CPG 1.4x
This plugin will generate an extra anycontent file for your gallery. This is a slightly pluginized version of my mod here (http://forum.coppermine-gallery.net/index.php?topic=47645.0), this plugin will allow you to have 1 extra anycontent section.
How To Install
- Upload the attached archive using the plugin manger (Config => General settings => Plugin Manager).
- Then click install.
- To activate this plugin you will need to add "extraanycontent/" to the Album List View of your Config, (Config => Album list view => The content of the main page).
- To customize the content of the extra anycontent you will need to edit the file. (.../plugins/extraanycontent/anycontent.php).
How To Remove The Extra Anycontent
- Go to the Album List View section of the Config and remove "extraanycontent/" from the "The content of the main page".
- If you want to completely remove the plugin, then you can do this using the plugin manager.
Attachment
- Inside the attachment is the original anycontent.php file that came with the main download of CPG. This will need to be edited as described above.
Hope this plugin proves useful
just_some_guy
if a Dev Team Member could move this to the plugins section that would be great as i was not sure if i was allowed to post there, thanks. Done
-
I'm wondering why are you using such a if statement
if ((include 'plugins/extraanycontent/anycontent.php') == 'OK') {
include ('plugins/extraanycontent/anycontent.php');
}
-
It seems to me to be a bit more "secure".
-
Seems nonsensical to me. Doesn't look like actual code, but wishfull thinking. Use file_exists() (http://www.php.net/manual/en/function.file-exists.php) to find out if a file actually exists. A proper return value is not "OK", but "TRUE" or "FALSE".
-
how do i make it go between random and latests additions??
-
Just type "extraanycontent/" before lastup or random, if you want after the albums type it before that.