The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Rotational Banner in Header Details »» | |||||||||||||||||||||||||
Well, I KNOW alot of you are looking for this as I was so here it is......
Also, found this on vBulletin.com, so ALL credit goes to "express" for this one. (I just modified it a little) Go to AdminCP > Styles and Templates> Style Manager > YOUR TEMPLATE > header In that, 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> Code:
<SCRIPT LANGUAGE="Javascript"><!-- // *********************************************** // AUTHOR: <a href="http://WWW.CGISCRIPT.NET," target="_blank">WWW.CGISCRIPT.NET,</a> LLC // URL: <a href="http://www.cgiscript.net" target="_blank">http://www.cgiscript.net</a> // Use the script, just leave this message intact. // Download your FREE CGI/Perl Scripts today! // ( <a href="http://www.cgiscript.net/scripts.htm" target="_blank">http://www.cgiscript.net/scripts.htm</a> ) // *********************************************** function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>" banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>" banner[number++] = "<a href='REDIRECT URL' target='_blank'><img src='BANNER IMAGE' border='1'></a>" // keep adding items here... increment = Math.floor(Math.random() * number); document.write(banner[increment]); //--></SCRIPT> Save and you're done Show Your Support
|
Comments |
#12
|
|||
|
|||
This is not working for me for some reason. Nothing shows up. Where exactly do you edit the url and the image path at?
|
#13
|
||||
|
||||
Quote:
PHP Code:
|
#14
|
|||
|
|||
Quote:
|
#15
|
|||
|
|||
how can I make the banner "center"?
i tried adding a <td align="center"> script </td> but nothing happened.. |
#16
|
|||
|
|||
Quote:
Try putting <center> before the <script...... That should do it. Excellent script here - just what i was looking for |
#17
|
|||
|
|||
Quote:
yep that worked.. thanks for the info.. how about a page break? |
#18
|
|||
|
|||
as a newcomer to Vbulletin, this thread just made my life sooooo much easier. Many Thanx
|
#19
|
||||
|
||||
I have a different style than the original and the header looks like this...
Code:
<!-- begin disturbed header--> <div align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="border"> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <!-- This is where the top logo image goes --> <td width="355" height="89" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_logo.jpg" width="355" height="89" alt="" /></td> <!-- End top logo area --> <td width="386" height="89" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_sliced_rs-top.jpg" width="386" height="89" alt="" /></td> <td width="100%" height="89" align="right" valign="top" style="background-image: url($stylevar[imgdir_misc]/dis_hdr_rs.gif)"><img src="$stylevar[imgdir_misc]/dis_hdr_rs.gif" width="100%" height="89" alt="" /></td> </tr> </table> <table bgcolor="#111210" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <!-- This is navigation/button area --> <td width="13" height="40" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_repeat.gif" width="13" height="40" border="0" alt="" /></td> <td width="106" height="40" align="left" valign="top"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_home.gif" width="106" height="40" border="0" alt="" /></a></td> <td width="106" height="40" align="left" valign="top"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_userCP.gif" width="106" height="40" border="0" alt="" /></a></td> <if condition="$show['registerbutton']"> <td width="106" height="40" align="left" valign="top"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_register.gif" width="106" height="40" border="0" alt="" /></a></td> <else /> <td width="106" height="40" align="left" valign="top" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_menu.gif" width="106" height="40" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td> </if> <td width="106" height="40" align="left" valign="top"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_members.gif" width="106" height="40" border="0" alt="" /></a></td> <td width="106" height="40" align="left" valign="top"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_calendar.gif" width="106" height="40" border="0" alt="" /></a></td> <td width="106" height="40" align="left" valign="top" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_search.gif" width="106" height="40" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td> <td width="108" height="40" align="left" valign="top"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_faq.gif" width="108" height="40" border="0" alt="" /></a></td> <td width="100%" height="40" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/dis_hdr_nav_rs_x.gif)"><img src="$stylevar[imgdir_misc]/dis_hdr_nav_rs_x.gif" width="100%" height="40" border="0" alt="" /></td> <!--End navigation/button area --> </tr> </table> <table bgcolor="#111210" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="2" height="56" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_bottom_bg.gif" width="2" height="56" alt="" /></td> <td width="765" height="56" align="left" valign="top"><img src="$stylevar[imgdir_misc]/dis_hdr_bottom_main.gif" width="765" height="56" alt="" /></td> <td width="100%" height="56" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/dis_hdr_bottom_rs.gif)"><img src="$stylevar[imgdir_misc]/dis_hdr_bottom_rs.gif" width="3" height="56" alt="" /></td> </tr> </table> <!-- end disturbed header--> <!-- begin main inner table area--> <table border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#34353B"> <tr><td> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#34353B"> <tr> <td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td> <td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td> <td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td> </tr> </table> <!-- content table --> <table bgcolor="#34353B" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td> $spacer_open $_phpinclude_output |
#20
|
||||
|
||||
Try putting it after this.....
PHP Code:
|
#21
|
||||
|
||||
is it possible to put the adsense code in here and rotate that with traditional banners?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|