vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Help with adding rotator script to Header template? (https://vborg.vbsupport.ru/showthread.php?t=163521)

Keesa 11-24-2007 04:44 PM

Help with adding rotator script to Header template?
 
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
Quote:

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.

PHP Code:

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?
PHP Code:

<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]">
        &
nbsp;
    </
td

I changed the one line in it to:
Code:

<img src="http://domain.com/forum/teckr/misc/rotate.php">
and it is not working... any ideas?

--------------- Added [DATE]1195931648[/DATE] at [TIME]1195931648[/TIME] ---------------

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*


All times are GMT. The time now is 08:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00985 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete