Advanced search  

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

Pages: [1]   Go Down

Author Topic: Extra Anycontent  (Read 31742 times)

0 Members and 1 Guest are viewing this topic.

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Extra Anycontent
« 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, 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
« Last Edit: October 19, 2007, 08:11:19 am by GauGau »
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Extra Anycontent
« Reply #1 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');
}
Logged
‍I don't answer to PM with support question
Please post your issue to related board

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Extra Anycontent
« Reply #2 on: October 18, 2007, 01:34:45 pm »

It seems to me to be a bit more "secure".
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Extra Anycontent
« Reply #3 on: October 19, 2007, 08:14:08 am »

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".
Logged

dudegetalife

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Extra Anycontent
« Reply #4 on: November 06, 2007, 03:46:24 am »

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

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Extra Anycontent
« Reply #5 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.