vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Possible to have a diff header/banner upon each page rerfresh? (https://vborg.vbsupport.ru/showthread.php?t=175833)

B_Pages 04-11-2008 01:07 PM

Possible to have a diff header/banner upon each page rerfresh?
 
I wanted to have 3-4 different graphics for my forums header and have it interchange upon page refresh.

Is this possible on vb 3.6.8 and beta 3.7.4 ?

Reeve of shinra 04-11-2008 01:29 PM

Yeah you can use javascript to load a random image. You can find a dozen of the scripts at http://javascript.internet.com. Here is the one I used: http://javascript.internet.com/image...ge-script.html

Edit your header template and replace the image variable (I forget off hand what it is) with the body portion of the javascript from above and the paths to your images.

In the Header Includes template (I believe thats it) you can add the "header" stuff.

enjoy

B_Pages 04-11-2008 01:32 PM

thanks will try....

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

Do you need to change the template so have header been the default header1 the next etc ?
so instead of a interchangeable image you have interchangeable headers
otherwise u will have 1 large image for every header.

so instead of a interchangeable image you have interchangeable headers.

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

thanks again ...
please advise as I edited my post


All times are GMT. The time now is 10:43 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.02446 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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