Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Rotating Banners in FORUMDISPLAY Details »»
Rotating Banners in FORUMDISPLAY
Version: 1.00, by HMBeaty HMBeaty is offline
Developer Last Online: Feb 2020 Show Printable Version Email this Page

Version: 3.6.2 Rating:
Released: 10-20-2006 Last Update: 10-20-2006 Installs: 49
Template Edits
Is in Beta Stage  
No support by the author.

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>
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='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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-21-2006, 08:17 PM
ChavMagnet's Avatar
ChavMagnet ChavMagnet is offline
 
Join Date: Sep 2006
Location: Leeds - England
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Havnt you released this before mate? 1st post WOOT
Reply With Quote
  #3  
Old 10-21-2006, 08:39 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No. I've released SOMETHING like this but never this or anything in this template.
Reply With Quote
  #4  
Old 10-22-2006, 02:57 PM
Jealousy10312 Jealousy10312 is offline
 
Join Date: Aug 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.
Reply With Quote
  #5  
Old 10-23-2006, 11:50 PM
bluegum bluegum is offline
 
Join Date: Jul 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did not work for me at all
?
Reply With Quote
  #6  
Old 10-24-2006, 12:08 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have javascript disabled? Also, can you paste your code up so I can have a look?
Reply With Quote
  #7  
Old 10-24-2006, 10:13 AM
bluegum bluegum is offline
 
Join Date: Jul 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 dont think i have java disabled?
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
Reply With Quote
  #8  
Old 10-24-2006, 08:31 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>"
Reply With Quote
  #9  
Old 10-24-2006, 09:41 PM
bluegum bluegum is offline
 
Join Date: Jul 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
and it found it fine
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>
is there something i am missing?
something else i need to edit?
Reply With Quote
  #10  
Old 10-24-2006, 09:52 PM
bluegum bluegum is offline
 
Join Date: Jul 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:30 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.08414 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete