![]() |
Add a banner image to each forum (vb3.5)
/* -----------------8/11/2005-----------------
[HowTo] Add a banner option image w/ Link or HTML paste to each forum V.1.6 Tested on vBulletin: 3.5.0 RC2 Zachariah - http://www.gzhq.net This is a VB3.5 Ver of my previous hack: *** Add a banner image to each forum (VB 3.0x) https://vborg.vbsupport.ru/showthread.php?t=61555 *** Info: This modification will Add an image banner w/ link Or paste in your own HTML code option per forum. These files can be any image. (png, jpg, gif, ect). This will be located after the $navbar on FORMDISPLAY. This images can be located on the localhost or on a remote server. --------------------------------------------------*/ Upload the "plug-in" and edit 2 template, It's a snap. :cool: Changelog: ------------ 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 (tested w/ Java and Iframe from phpadsnew output) Added 3.x to VB 3.5 upgrade XML file. ** Random Banner Code Java **Please click " Install " to track updates. |
Nice!
Can we mod this to do something more "flexible" and "per forum"?, like this: https://vborg.vbsupport.ru/showthread.php?t=65890 To put our own html code, instead a direct link/image for a banner. To use another ads script with vbulletin, like phpadsnew. Can you do that? Thanks for all in advance ;) |
Quote:
I know the Java / HTML that phpadsnew spits out is easy. I'll have to test the php code it spits out. |
Quote:
|
Just what i wanted , i asume each section supports different banners and multiple banners?
|
Quote:
1 image with or without a link , and alt tag per forum. No rotation , click or impression count. The code can be moved around on the Forumdisplay template (ie: header, footer, it currently sits under the $navbar). |
added and using on ragezone.com -- would be nice if i could add multiple stuff side by side or a random option ! none the less its very useful and appreciated.
|
Works like a charm :) *installed*
|
easy and nice - thanks :)
clicks install |
Cheers!
|
nice mod. it would be nice too to be able to add in your own html code like someone else said as well, as a lot of people use Google Adsense on their forums :)
|
agreed - phpadsnew is what i use, but it amounts to the same thing. I'm not live with 3.5 yet, but once I do go live with it - that will be a necessity, not a wish.
|
Is there a way to show it on forumhome too ?
|
Really nice.. *Installed*
Would it be possible to make something so we can add the code for a Google adsense banner instead of a regular banner link? |
Quote:
|
That sounds great :)
|
I have the "add" own HTML ready not worked on adding PHP. ( works: w/ Java and Iframe from phpadsnew)
|
Great! :*
:P |
got error =.=
below: Field ircchan is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 483 |
Quote:
If this is true try adding a Plugin. Although you can edit class_dm_form.php, in VB3.5 we have plugins !!! :bunny: hookname = forumdata_start PHP Code:
Quote:
Feedback :nervous: |
Works perfect thanks
|
This is nice.
So if I have a music banner, I'll put it on the music forum. :) |
I get this error what can be wrong?
MySQL Error : Unknown column 'banner' in 'field list' Error Number : 1054 |
Did you skip the XML file import?
This is a Product to be imported via. plug-in system. 1) Choose the right XML file. *** How to Install: In your Admin Control Panel Admincp => Plugin System => Manage Products Click [Add/Import Product] Browse for the file "banner_image.xml" Allow Overwrite should be off Import -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-- *** How to Upgrade: There are 2 old ver. of this hack. What do I use? What do you have installed? 1. banner, alt, link (use: 3.x to 3.5no-code.xml) v1.2 2. banner, alt, link, HTML (use: 3.x to 3.5code.xml) v1.5 In your Admin Control Panel After you upgrade to VB3.5. Admincp => Plugin System => Manage Products Click [Add/Import Product] Browse for the file "xxxxxxxxxxx.xml" Allow Overwrite should be off Import Quote:
|
First I imported the banner_image.xml, than in ForumDisplay I put after $navbar:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br /> <else /> <if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br /> <else /> <if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br /> </if> </if> </if> Because it was not working I imported the 3.x to 3.5no-code.xml. Now I had 2 entries in the plugin folder, I unsinstalled the old one and now having only the Add Banner Upgrade 1.5 in the pluginfolder but this mysql error is coming if I want to save a Forum. Thank you |
vb3.5x new install - banner_image.xml
vb3.0x upgrade - 3.x to 3.5code.xml - If you have already upgraded to ver. 1.5 in VB3.x hack. vb3.0x upgrade - 3.x to 3.5no-code.xml - If you have ver. 1.2 in VB3.x hack. After the install you should have: 2 plugins add Banner - AdminCP add Banner - ForumDisplay Your manual template edit is fine, and will stay there even if you install / uninstall the plugins / products. All XML files will make the same plugins. They have different DB edits. |
Cool, now it is working, thank you for this great plugin Zachariah :) :banana:
|
I must be doing something wrong cause I can't get the banners to show up in the showthread forums (where you see the posts of other people) just the main forums.
|
Changelog:
------------ 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 |
How can I use this plugin for a Main Page banner?
|
Quote:
and then.... hack of the month? :rolleyes: *click install* |
This hack can work where ForumID can be used. The FORUMHOME does not have in "ID". There is a way that you can set a default banner that does not change via AdminCP. I have worked the banner in the $header to construct a default banner if there is not one filled in. This wil also show the default image in the FORUMHOME (in red, below).
Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br /> after $navbar Code:
<a href="http://www.yoursite.com"><img src="images/banner/default.gif" border="0" alt="banner image" /></a> |
is there no way to make it not static?
a coder might explain it better, but how about this way? in vbulletin options you can give a default banner. if you leave this blank, the forum displays the specific thread banner like: PHP Code:
|
Quote:
I might move the template edit to the end of the $navbar, so that it would be on every page. The drawback of this is that programs that use the $navbar (gallery, non-VB pages, CMS front ends, etc .) would also have the banner under the navbar. Ill look in on it. |
thanks a lot for your help :up:
|
Everyone else seems to have no issue, so I feel a little dumb asking this.
I got this installed fine through the plugin manager, but once I added the code to the two templates I get "Parse error: parse error, unexpected '<' in /www/b/batavia/htdocs/forums/forumdisplay.php on line 336" when I try to access a forum and a simpilar error when I try to go direct to a thread. I am a php newbie, so not sure what i am doing wrong... |
Quote:
|
Quote:
|
thanks!
/me installs |
Very nice...
Thanks, dreck *install* |
All times are GMT. The time now is 02:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|