Adding a random header image script? Adding a random header image script?
 

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]

Main Menu

Adding a random header image script?

Started by Metatrox, July 23, 2004, 05:03:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Metatrox

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.
<!--#exec cmd="cgi-bin/randhtml.cgi"-->

- So i changed it to a php script.
<?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.

Joachim Müller

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

GauGau