Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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
  #42  
Old 10-28-2007, 04:51 AM
asforum's Avatar
asforum asforum is offline
 
Join Date: Oct 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice i love this mod.
Reply With Quote
  #43  
Old 10-31-2007, 12:00 PM
Julio Julio is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you see a red X it means your path to the graphics is incorrect, or the name of the graphic.
Check them out.
Reply With Quote
  #44  
Old 11-18-2007, 02:30 PM
MV Blackie MV Blackie is offline
 
Join Date: Nov 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have version 3.6.8 and it does not work

forum : www.2route.be
Reply With Quote
  #45  
Old 11-18-2007, 05:38 PM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can the banner be called?

I mean, let's say I create 'banner.php' and and put it somewhere in the server (which I can update with ease via ftp). In vb, could it possible to insert php include so that it will call the php I created? If yes, can you show me how?

thanks.
Reply With Quote
  #46  
Old 11-18-2007, 10:53 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow!

This is exactly what ive been looking for!

Couple of questions though! Is it possible to have two random banners next to each other like in the image below? Also if I add this code to the footer, would it display on every page?

Reply With Quote
  #47  
Old 11-22-2007, 09:18 AM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive managed to add the code to the footer so it now displays on everypage, however will it be possible so I can have two random banners next to each other like in the picture above?
Reply With Quote
  #48  
Old 11-29-2007, 08:39 PM
idca idca is offline
 
Join Date: Oct 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a problem with one of my banners ive got the exact code as the others but it seems that it is not showing up. i have currently 4 banners and this one is my 5th.
i dont even get a error image if the path to the image was wrong
Reply With Quote
  #49  
Old 12-08-2007, 05:01 PM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit Nevermid, lol
Reply With Quote
  #50  
Old 12-08-2007, 06:46 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I clicked the demo link and I really can't find out what this script/hack does....
Reply With Quote
Reply


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:18 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.06635 seconds
  • Memory Usage 2,293KB
  • Queries Executed 24 (?)
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
  • (2)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