Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 01:38:03 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Private messages disabled
Caused by the massive abuse of the PM system in the past, the sending of personal messages has been disabled for all regular users on the Coppermine forum.
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Extra Anycontent  (Read 5329 times)
0 Members and 1 Guest are viewing this topic.
just_some_guy Topic starter
Supporter
****
United Kingdom United Kingdom

Posts: 539


I am currently on holiday, back in a few weeks. :D


« on: October 18, 2007, 12: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

* extraanycontent.zip (2.31 KB - downloaded 285 times.)
« Last Edit: October 19, 2007, 07: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
Dev Team member
****
Gender: Male
Iran, Islamic Republic of Iran, Islamic Republic of

Posts: 3689


BMossavari


WWW
« Reply #1 on: October 18, 2007, 12:24:34 pm »

I'm wondering why are you using such a if statement
Code:
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 Topic starter
Supporter
****
United Kingdom United Kingdom

Posts: 539


I am currently on holiday, back in a few weeks. :D


« Reply #2 on: October 18, 2007, 12: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
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #3 on: October 19, 2007, 07: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
*
Posts: 20


« Reply #4 on: November 06, 2007, 02:46:24 am »

how do i make it go between random and latests additions??
Logged
just_some_guy Topic starter
Supporter
****
United Kingdom United Kingdom

Posts: 539


I am currently on holiday, back in a few weeks. :D


« Reply #5 on: November 06, 2007, 07: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
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.081 seconds with 17 queries.