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: Adding a random header image script?  (Read 3413 times)

0 Members and 1 Guest are viewing this topic.

Metatrox

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Adding a random header image script?
« on: July 23, 2004, 05:03:28 pm »

Ok i did a search and found a few things that were similar but i didnt quite understand what was going on.

ok here is the issue i have :

Vision : I want to add a random image script to the header image on my gallery.
Reason : I have 3 images i want to randomly be displayed as viewers are browsing the site.
Problem : I'm not sure how to go about adding this dynamic content.
Ability : I know plenty of html but not a whole lot of PHP.

Current situation :
- I have this script here that uses SSI,which of course is not supported in the standard Template.HTML or any .PHP file.
Code: [Select]
<!--#exec cmd="cgi-bin/randhtml.cgi"-->
- So i changed it to a php script.
Code: [Select]
<?php
// Place this into your PHP page
// and edit the file name
include "cgi-bin/randhtml.cgi";
?>

- I then just added that into Theme.php to see if that would work but it didnt. So i'm not too sure how to go about doing this.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a random header image script?
« Reply #1 on: July 23, 2004, 06:27:01 pm »

this has been asked before, please search the board. You could search for the keywords "custom header" oder "custom script".

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.