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

Title: Extra Anycontent
Post 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

How To Remove The Extra Anycontent


Attachment


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
Title: Re: Extra Anycontent
Post by: Sami on October 18, 2007, 01:24:34 pm
I'm wondering why are you using such a if statement
Code: [Select]
if ((include 'plugins/extraanycontent/anycontent.php') == 'OK') {
  include ('plugins/extraanycontent/anycontent.php');
}
Title: Re: Extra Anycontent
Post by: just_some_guy on October 18, 2007, 01:34:45 pm
It seems to me to be a bit more "secure".
Title: Re: Extra Anycontent
Post by: Joachim Müller on October 19, 2007, 08:14:08 am
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".
Title: Re: Extra Anycontent
Post by: dudegetalife on November 06, 2007, 03:46:24 am
how do i make it go between random and latests additions??
Title: Re: Extra Anycontent
Post by: just_some_guy on November 06, 2007, 08:13:11 am
Just type "extraanycontent/" before lastup or random, if you want after the albums type it before that.