coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Metatrox on July 23, 2004, 05:03:28 PM

Title: Adding a random header image script?
Post by: Metatrox 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.
<!--#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.
Title: Re: Adding a random header image script?
Post by: Joachim Müller 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