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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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