Keesa
11-24-2007, 04:44 PM
Hi,
I would like to add a rotator script to change the headers on every refresh. I have the script, I just cannot figure out how to change the Header template file to make it work.
The instructions are to put the rotator.php in the same file as the images and then call it with a simple img src HTML.
Here are the config instructions from the php file
INSTRUCTIONS
1. Modify the $folder setting in the configuration section below.
2. Add image types if needed (most users can ignore that part).
3. Upload this file (rotate.php) to your webserver. I recommend
uploading it to the same folder as your images.
4. Link to the file as you would any normal image file, like this:
<img src="http://example.com/rotate.php">
Based on that, I did NOT change the folder config since it is in the same file as the images, which is the images file for the style I am using.
Set $folder to the full path to the location of your images.
For example: $folder = '/user/me/example.com/images/';
If the rotate.php file will be in the same folder as your
images then you should leave it set to $folder = '.';
*/ $folder = '.';
/*
Here is the code in the header template that I think should change?
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
</td>
I changed the one line in it to:
<img src="http://domain.com/forum/teckr/misc/rotate.php">
and it is not working... any ideas?
--------------- Added 1195931648 at 1195931648 ---------------
I DID IT!
You just change the Header Image path in the Common Templates to the path to the rotator.php file AND IT WORKS.
*giddy*
I would like to add a rotator script to change the headers on every refresh. I have the script, I just cannot figure out how to change the Header template file to make it work.
The instructions are to put the rotator.php in the same file as the images and then call it with a simple img src HTML.
Here are the config instructions from the php file
INSTRUCTIONS
1. Modify the $folder setting in the configuration section below.
2. Add image types if needed (most users can ignore that part).
3. Upload this file (rotate.php) to your webserver. I recommend
uploading it to the same folder as your images.
4. Link to the file as you would any normal image file, like this:
<img src="http://example.com/rotate.php">
Based on that, I did NOT change the folder config since it is in the same file as the images, which is the images file for the style I am using.
Set $folder to the full path to the location of your images.
For example: $folder = '/user/me/example.com/images/';
If the rotate.php file will be in the same folder as your
images then you should leave it set to $folder = '.';
*/ $folder = '.';
/*
Here is the code in the header template that I think should change?
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
</td>
I changed the one line in it to:
<img src="http://domain.com/forum/teckr/misc/rotate.php">
and it is not working... any ideas?
--------------- Added 1195931648 at 1195931648 ---------------
I DID IT!
You just change the Header Image path in the Common Templates to the path to the rotator.php file AND IT WORKS.
*giddy*