vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Random Logo in Header (https://vborg.vbsupport.ru/showthread.php?t=117983)

Daniel 06-07-2006 10:00 PM

Random Logo in Header
 
What it does...
Exactly what the title says. It's very similar to my 3.5 edit.

In the header template....
PLACE THIS AT THE VERY TOP OF THE HEADER TEMPLATE
Code:

<SCRIPT LANGUAGE="JavaScript">
 
<!-- Begin Random Logo In Header Script
 
var theImages = new Array() // do not change this
 
<!-- Edit the url images to match yours
theImages[0] = 'images/statusicon/forum_old.gif'
theImages[1] = 'images/statusicon/forum_new.gif'
 
 
 
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<td align="$stylevar[left]"><a href="index.php"><img src="'+theImages[whichImage]+'" border="0" alt="$vboptions[bbtitle]" /></a></div>');
}
 
// End -->
</script>

Remember to edit the image paths under "<!-- Edit the url images to match yours"

Find:
Code:

        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Replace with:
Code:

<SCRIPT LANGUAGE="JavaScript">
showImage();
</script>

Like it? Use it?
Click Install
:)

Barakat 06-08-2006 03:22 AM

i will install it when i upgrade my forum sooon .
** installed**

Daniel 06-08-2006 03:24 AM

Quote:

Originally Posted by Barakat
i will install it when i upgrade my forum sooon .
** installed**

I think you missed the button. :P

Merjawy 06-08-2006 12:09 PM

keep this one here.. I'll be baaaaaaaaaaack for it :)

thanks

ggiersdorf 07-14-2006 06:33 PM

How can I set the location for the images to be displayed on the site? It jumps around I want them in a fixed location next to the right of my Logo. Right now its overlapping

see www.gentendo.com for example

GreysAnatomy 08-11-2006 05:49 AM

Thank you. Very easy to do! :)

sudn3sc3d 08-16-2006 09:14 PM

awsome installed :D

midirtrider 08-24-2006 09:04 PM

Is there a way to get this mod to work to the right of my header image?

www.MIdirtriders.com

at the top of the page on the left I have my header MIdirtriders logo.. I would like to ad a random banner to the right of this.. any ideas with this and your hack?

Snake 08-30-2006 04:19 PM

Thanks for the hack! I'll install it right away... :)

midirtrider 10-04-2006 04:36 PM

Quote:

Originally Posted by midirtrider
Is there a way to get this mod to work to the right of my header image?

www.MIdirtriders.com

at the top of the page on the left I have my header MIdirtriders logo.. I would like to ad a random banner to the right of this.. any ideas with this and your hack?


I guess not :D


All times are GMT. The time now is 09:30 PM.

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.01269 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete