Extra Anycontent Extra Anycontent
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Extra Anycontent

Started by just_some_guy, October 18, 2007, 01:08:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

just_some_guy

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, 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
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Sami

I'm wondering why are you using such a if statement

if ((include 'plugins/extraanycontent/anycontent.php') == 'OK') {
  include ('plugins/extraanycontent/anycontent.php');
}
‍I don't answer to PM with support question
Please post your issue to related board

just_some_guy

It seems to me to be a bit more "secure".
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

Seems nonsensical to me. Doesn't look like actual code, but wishfull thinking. Use file_exists() to find out if a file actually exists. A proper return value is not "OK", but "TRUE" or "FALSE".

dudegetalife

how do i make it go between random and latests additions??

just_some_guy

Just type "extraanycontent/" before lastup or random, if you want after the albums type it before that.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums