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
  #22  
Old 04-22-2007, 09:14 PM
jahshaka jahshaka is offline
 
Join Date: Jan 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i put the banner in a vertical column to the right of the threads? i love this mod but want to use skyscraper adds... is this possible
?
Reply With Quote
  #23  
Old 05-16-2007, 11:08 PM
joryshu joryshu is offline
 
Join Date: May 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you thank you thank you.

I have been looking for this script for the last 3 weeks and omg.. thank you.. it works beautifully!
Reply With Quote
  #24  
Old 05-17-2007, 03:00 AM
rdrunnr rdrunnr is offline
 
Join Date: May 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great mod. Is there a way to size the images in the coding so they are all the same size?
Reply With Quote
  #25  
Old 05-17-2007, 03:20 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rdrunnr View Post
This is a great mod. Is there a way to size the images in the coding so they are all the same size?
Try this. (I have not tested this yet so I'm not sure if this will work or not)
HTML Code:
banner[number++] = "<a href='REDIRECT_URL' target='_blank'><img src='BANNER_URL' width="x" height="x" border='1'></a>"
Change "x" to the number of pixels you want the height/width to be
Reply With Quote
  #26  
Old 05-25-2007, 12:19 AM
joryshu joryshu is offline
 
Join Date: May 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there RedlineMotorsports,

I use your rotating banner script at the top of my forum, and was wondering if you might be able to help me with another banner script.

What I need is a script for chicklet banners to be constantly moving on a page - not like the rotating banner script where you have to refresh the page each time to see a new banner. I could put the chicklet banners to be moving across the page from right to left one after the other under the 468x60 rotating banner script that you gave us before, or I could put it on a sidebar on the forum so the chicklet banners are just scrolling down.

Do you possibly have a script for this?
Reply With Quote
  #27  
Old 05-25-2007, 09:55 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joryshu View Post
Hi there RedlineMotorsports,

I use your rotating banner script at the top of my forum, and was wondering if you might be able to help me with another banner script.

What I need is a script for chicklet banners to be constantly moving on a page - not like the rotating banner script where you have to refresh the page each time to see a new banner. I could put the chicklet banners to be moving across the page from right to left one after the other under the 468x60 rotating banner script that you gave us before, or I could put it on a sidebar on the forum so the chicklet banners are just scrolling down.

Do you possibly have a script for this?
I might possibly whip something up for this when I get back from NJ
Reply With Quote
  #28  
Old 05-25-2007, 10:17 PM
joryshu joryshu is offline
 
Join Date: May 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wonderful. I would totally appreciate it and if I can contribute to your work, please let me know, because as far as I'm concerned, you definitely know what you're doing here... I just follow your instructions If you need an example of what I am talking about, please let me know and I will send you a URL of an example. I cannot post it here as it is an adult site. Thank you again!
Reply With Quote
  #29  
Old 06-02-2007, 08:17 PM
joryshu joryshu is offline
 
Join Date: May 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just checking in and letting you know I haven't found that script yet, so if you can 'whip something up' that would still be great. Thank you.
Reply With Quote
  #30  
Old 06-02-2007, 08:52 PM
John1uk John1uk is offline
 
Join Date: Oct 2006
Location: UK
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx mate great mod, been looking for sometime now for this

*Insatlled*
Reply With Quote
  #31  
Old 06-02-2007, 09:45 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joryshu View Post
Just checking in and letting you know I haven't found that script yet, so if you can 'whip something up' that would still be great. Thank you.
Yeah, no problem. I'll see what I can do later tonight or tomorrow night. So in approx...........4+ hours
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 11:27 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.04419 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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_html
  • (3)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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