Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: ¿More than 1 anycontent.php?  (Read 3196 times)

0 Members and 1 Guest are viewing this topic.

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
¿More than 1 anycontent.php?
« on: March 04, 2005, 07:48:02 pm »

I'm already using "anycontent.php" file, but I wish to add more information to my gallery. Should I create only another php file and "call it" from the "CONFIG / The content of the main page" section? What else to I need to do?

Regards,
Joel
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.galeria4x4.com.mx%2Fphotos%2Fsignature_cpg.php&hash=0ca85f271c3cb7f46895832fc6e062b32ab897ca)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com

jmc

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 92
    • http://www.hartlepoolcameraclub.co.uk
Re: ¿More than 1 anycontent.php?
« Reply #1 on: March 05, 2005, 12:23:16 pm »

Hi, Joel!
This is pretty straightforward... Open your coppermine/index.php and search for
Code: [Select]
                        case 'anycontent':
                if ($cat == 0) {
                    include('anycontent.php');
                }
                flush();
                break;
You can copy/paste this section and edit it to show something like
Code: [Select]
      case 'anycontent2':
                if ($cat == 0) {
                    include('anycontent2.php');
                }
                flush();
                break;

and this will give you a second "anycontent" area, which can be called in using the "content of main page" section of config. Repeat as many times as necessary!
Hope this helps.
John Mc
EDIT: Forgot to say... obviously you need to create a new document "anycontent2.php" etc etc... lol
« Last Edit: March 05, 2005, 12:28:30 pm by jmc »
Logged
I'm trying hard... at least!

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
Re: ¿More than 1 anycontent.php?
« Reply #2 on: March 07, 2005, 09:00:57 pm »

JMC, thanks a lot!!! This is an amazing MOD!!! See it in action: www.galeria4x4.com
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.galeria4x4.com.mx%2Fphotos%2Fsignature_cpg.php&hash=0ca85f271c3cb7f46895832fc6e062b32ab897ca)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.