![]() |
Add a banner image to each forum (vb3.6)
/* -----------------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. --------------------------------------------------*/ |
1st post :D
*** 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. |
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"> Code:
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>" Image location |
Thank you very much, Zachariah! ;)
[high]* projectego clicks install[/high] |
WOW, Thanks a Lot Zachariah
*Installed* |
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? |
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?
|
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' Bob |
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
|
Quote:
EX: On the forumdisplay: Code:
$search_text = '$navbar'; Quote:
Quote:
Code:
<script language="javascript" type="text/javascript"> |
Quote:
*** How to Upgrade: *** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD no longer need the code below: Find: $navbar below remove: Quote:
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. |
Code:
$search_text = '$navbar'; |
I tried placing $add_banner in forumdisplay, but it still doesn't work.
|
Quote:
Do you have $navbar in your Forumdisply template ? - If so this should show up after you edit a forum and add the needed image, target link, or custom HTML code. If there is no $navbar in your Forumdisplay then you need to add $add_banner in your template. I have 2 banners now - http://www.gzhq.net/forums/forumdisplay.php?f=47 Code:
<body> What have you placed in the AdminCP in the space for the image in the forum you edited ? |
installed . thanks
|
Okay, works fine now. Only thing that seems weird is that everything in the forum edit is in a longer form. By that i mean like 3 words a line, then down like a list, then it shows the field, but it doesn't seem to affect the added image part. If you need a screen shot, i can send one if requested.
|
Great share Zachariah thanks again
|
lovely mod but doesnt this bad for seo?
|
Quote:
Bob |
Thx for this hack this I like :)
but howe can I put in more and one banners let say if I have 8 banners some I wont to put in howe shuld I do that ???? so all the banners rotate |
Quote:
|
Quote:
|
thanks for the hack.
just some feature suggestions.. option to have it auto apply to child forums option to enable/disable the main banner |
This is a great hack!
Is there a way to do this with headers? I would like to have my header changed based on the forum ID. I am working with vb.com, but they are simply showing me conditionals, but that takes up a LOT of space in the header. Mike |
Great hack, just what I was searching for.
Installed. |
Quote:
Quote:
|
Hello Zachariah,
this modification work very great :) i have one question: if i want use more Add Banner in my Forum, how can make? For example, i want put different 4 banner in Header, in Footer and another place. I need to install 3 different Add Banner... You can suggestion for me? |
For some reason the google adsense code is not showing up here, but it shows up on the other forums.
Here: http://talkfitness.org/forumdisplay.php?f=2 |
Zachariah this is one of the best mods i have seen around.
I really like the way we can set it per Forum. I really would like to see more options for a forum: - in the Forum there will be also advertisement between different Threads - in the Threads of this Forum will be advertisement between different Postings I really would love you for this :) regards |
Quote:
|
Is the a way we can allow the moderator of that forum create his/her own header/footer ??? This seems like only Admin create every single header.
|
شكرا على ملف المنتج
|
Quote:
|
yeah.... maamon's right.
|
not sure what im doing wrong but i dont get any images come up, just red crosses
|
Quote:
- Right click on the broke image and go to properties. It should tell you more info on the location of where the script thinks your images are. |
Installed on 3.6.8 and working flawlessly! Many thanks for this hack! :up:
|
Quote:
|
Quote:
thanks, i actually had the path wrong, im new to all this still....works a treat now! the random banner code you put the 3rd post down is particularly useful as it works in red tygers ad management hack also!:) |
I have that one and its not correct working:
PHP Code:
|
All times are GMT. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|