The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add a banner image to each forum (vb3.6) Details »» | ||||||||||||||||||||||||||||
Add a banner image to each forum (vb3.6)
Developer Last Online: Jan 2020
/* -----------------11/28/2005 10:37AM-----------------
[HowTo] Add a banner option image to each forum w/ Link V.1.7 Tested on vBulletin: 3.6.4 Zachariah - http://www.gzhq.net Quote:
- banner for an on-line game clan/guild. *** Info:
Changelog: ------------ 1.7 - str_replace used to place hack at $navbar in FORUMDISPLAY, SHOWTHREAD. - choice to show in thread per forum. - Place $add_banner in template if str_replace fails to work. - add_banner template added 1.6 Banner shows up on each thread adds: 1 more template edit to the install Requested by: - Ryan McBain ** Note: 1.5 - 1.6 needs only to edit SHOWTHREAD not Reinstall the XML files 1.5 Added HTML option Added 3.x to VB 3.5 upgrade XML file. --------------------------------------------------*/ Show Your Support
|
Comments |
#2
|
||||
|
||||
1st post
*** Useage: These files can be any image. (png, jpg, gif, ect) or paste your HTML code. To add banners go to: Forums & Moderators => Forum Manager => Edit/Add Forum => scroll do to the bottom enter your details. This script has a few options. - By default install it will attempt to place itself in FORUMDISPLAY, SHOWTHREAD under location "$navbar" in the templates. If for some reason your banner does not show up you edit and place $add_banner within the templates. |
#3
|
||||
|
||||
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.
EX: This will show @ random. image1.jpg @ http://www.yoursite1.com image2.jpg @ http://www.yoursite2.com image3.jpg @ http://www.yoursite3.com Code:
<script language="javascript" type="text/javascript"> <!-- function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>" banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>" banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>" // keep adding items above here... increment = Math.floor(Math.random() * number); document.write(banner[increment]); //--> </script> Code:
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>" Image location |
#4
|
||||
|
||||
Thank you very much, Zachariah!
[high]* projectego clicks install[/high] |
#5
|
|||
|
|||
WOW, Thanks a Lot Zachariah
*Installed* |
#6
|
|||
|
|||
I'm not able to get this to work, either with a single banner or with the script for random banners.
Instead of placing the $add_banner in Forumdisplay and Showthread, could it be added in the Navbar template? |
#7
|
||||
|
||||
What don't make sense is the 3.5.x version works just fine for the 3.6, so whats the sense in a update?
|
#8
|
||||
|
||||
Installed then uninstalled, for a few reasons.
1] Could not get it to work, just got red X's, in fact got 2 red x's, and I had 5 image files in the scripts. Tried full URL and relative URL. 2] Putting this in each forum is a bit of a long job as I have 40+ forums and I could not get it to work on the forum homepage at all. I would have thought putting the code in the navbar template would be better, then they appear in forumhome and all other forums. I tried that but that didn't work either. I am obviously doing something wrong, but what. One thing I can't work out is Code:
href='http://www.yoursite1.com' href='http://www.yoursite2.com' Bob |
#9
|
||||
|
||||
Hi i updated, then uninstall ed because i had a problem with my images displaying multiple times. I also reinstalled, images still show multiple times website www.bgleague.com/forum
|
#10
|
||||
|
||||
Quote:
EX: On the forumdisplay: Code:
$search_text = '$navbar'; $vbulletin->templatecache['FORUMDISPLAY'] = str_replace($search_text, $search_text.fetch_template('add_banner'), $vbulletin->templatecache['FORUMDISPLAY']); Quote:
Quote:
Code:
<script language="javascript" type="text/javascript"> <!-- function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "<a href='http://www.google.com/' target='_blank'><img src='http://www.google.com/intl/en_ALL/images/logo.gif' alt='' border='0' /></a>" banner[number++] = "<a href='http://news.google.com/' target='_blank'><img src='http://news.google.com/images/news.gif' alt='' border='0' /></a>" banner[number++] = "<a href='http://froogle.google.com/' target='_blank'><img src='http://froogle.google.com/froogle/intl/en_us/images/froogle_110tall.gif' alt='' border='0' /></a>" // keep adding items above here... increment = Math.floor(Math.random() * number); document.write(banner[increment]); //--> </script> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|