The Arcive of vBulletin Modifications Site. |
|
Rotating Banners in FORUMDISPLAY Details »»
|
|||||||||||||||||||||||||
Ok, first off, of course, go to your admincp panel > styles and templates > style manager > open your style > edit the FORUMDISPLAY template.
In there, you will find: HTML Code:
<td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><if condition="$show['quicksearch']"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script><else /><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a></if></td> </if> </tr> </table> HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <td class="alt2" align="center"> <!-- Banner Rotator by Redline --> <SCRIPT LANGUAGE="Javascript"><!-- function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>" banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>" banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>" banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>" increment = Math.floor(Math.random() * number); document.write(banner[increment]); //--></SCRIPT> </td></table> PLEASE CLICK INSTALL IF YOU LIKE IT. Online DEMO Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Havnt you released this before mate? 1st post WOOT
|
|
#3
|
||||
|
||||
|
No. I've released SOMETHING like this but never this or anything in this template.
|
|
#4
|
|||
|
|||
|
Thank you.
|
|
#5
|
|||
|
|||
|
did not work for me at all
? |
|
#6
|
||||
|
||||
|
Do you have javascript disabled? Also, can you paste your code up so I can have a look?
|
|
#7
|
|||
|
|||
|
Code:
HTML Code:
<td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><if condition="$show['quicksearch']"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script><else /><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a></if></td>
</if>
</tr>
</table>
Directly AFTER that bit of code, add this:
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<td class="alt2" align="center">
<!-- Banner Rotator by Redline -->
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://jdcbaits.com/' target='_blank'><img src='http://jdcbaits.com/catalog/images/banner1-420.gif' border='1'></a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>"
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
</td></table>
i am using a theme called aquateen my site is here http://www.basslurereviews.com/bassforums/index.php it shows up no where? how would , do i enable java? I only added 1 banner to test.. as above |
|
#8
|
||||
|
||||
|
Try either filling in those empty banner links, or just remove the last 3 of these:
HTML Code:
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>" banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>" banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' border='1'></a>" |
|
#9
|
|||
|
|||
|
Ok i am at a total loss
I aded it to the default and to aquateen both FORUMDISPLAY template did a find for Code:
<td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><if condition="$show['quicksearch']"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script><else /><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a></if></td>
</if>
</tr>
</table>
then after I added the following Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<td class="alt2" align="center">
<!-- Banner Rotator by Redline -->
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://jdcbaits.com/' target='_blank'><img src='http://www.basslurereviews.com/images/banners/jdcbaits.gif' border='1'></a>"
banner[number++] = "<a href='http://bearpawshandpouredbaits.com/' target='_blank'><img src='http://www.basslurereviews.com/images/banners/bearbanner.gif' border='1'></a>"
banner[number++] = "<a href='http://www.kicknbass.com/' target='_blank'><img src='http://www.basslurereviews.com/images/banners/kicknbass.gif' border='1'></a>"
banner[number++] = "<a href='http://sinkobaits.com/' target='_blank'><img src='http://www.basslurereviews.com/images/banners/sinkobaits.jpg' border='1'></a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
</td></table>
something else i need to edit? |
|
#10
|
|||
|
|||
|
holy crap it shows up on opening each forum
not at the main page NOW I SEE IT and yes u can yell at me i thought it would show up on the page without opening up a forum You have to click on a forum to see the banners i am so sorry this script works just a bit different then i thought.. I wanted this static on the front page not when opening up a forum
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|