The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add a banner image to each forum Details »» | |||||||||||||||||||||||||
Works on: VB3 RC3 - 3.1+
This modification will Add an image banner w/ link option per forum. This hack modifies/adds : 1 php file 2 templates 4 query / table field 4 added phrase *1.6 Update 12.18.05 Useage: 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. Admincp -> Forums & Moderators -> Forum Manager -> Edit Forum -> Fill out the banner info. Banner Image - (location of image) Banner URL - (Link that you go to when u click the banner) Alt Tag (if you mouse over the banner; pop-up text) HTML Paste (added) You can also fill out the info when you make a new forum. NOTES: Changes: -------- 1.6 Banner shows up on each thread adds: 1 more template edit to the install *1.5 +Added HTML option *1.2 + Added Alt text for each banner(admincp) + Images no longer must be on the server You can use a local image off your webserver or use a image at another location. EX: /images/banner/someimage.jpg or http://www.yoursite.com/someimage.jpg *1.1 + Added option for image to have a link *1.0 + Image banner for every forum under the $navbar *// JAVA BANNER ROTATION FYI- I did some playing around took the <if></if> statement added to the ForumsDisplay template. You can insted place it in the header / footer template and it will show up also. VB3.5X ver https://vborg.vbsupport.ru/showthread.php?t=94119 Show Your Support
|
Comments |
#32
|
|||
|
|||
hi, im looking for a hack to do this: http://www.srtforums.com/forums/index.php?
add the sponsored banner links on the front page next to an individual forum. is there a hack that does this? this is the closest one ive found. |
#33
|
||||
|
||||
I would like that as well.
Also, I would like a hack that randomly changes between banners on the forum pages..... SO perhaps 4 or 5 different banners would randomly rotate between page clicks........ |
#34
|
|||
|
|||
/me clicks install
Thanks for that, is there some way of adding a click counter to it? |
#35
|
||||
|
||||
Quote:
|
#36
|
||||
|
||||
Quote:
|
#37
|
||||
|
||||
Quote:
Currently this allows a different image w/ link per forum made. |
#38
|
||||
|
||||
Hi. I have this working fine on our normal pages now but it doesn't want to work on our advance pages (note that I moved the banner into the header and changed the code as follows)
Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><a href="$foruminfo[bannerlink]" target="_blank"><img src="images/banner/$foruminfo[banner]" alt="$foruminfo[banner]" border="0" /></a> <else /> <if condition="$foruminfo['banner']"><img src="images/banner/$foruminfo[banner]" alt="$foruminfo[banner]" border="0" /> <else /><img src="images/banner/default.gif" border="0"> </if></if></if> |
#39
|
||||
|
||||
Ok, I was double checking to make sure I had banners defined for each of the three forums. Anyway, vbulletin is dropping to the default image, which means it isn't putting anything into the $foruminfo['banner'] variable. How do I go about retrieving this info?
|
#40
|
||||
|
||||
Ok, so you don't want your banner in the $navbar template but in your header. Fine. Here's one way.
Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"> <a href="$foruminfo[bannerlink]" target="_blank"> <img src="images/banner/$foruminfo[banner]" alt="$foruminfo[banner]" border="0" /> </a> <else /> <if condition="$foruminfo['banner']"> <img src="images/banner/$foruminfo[banner]" alt="$foruminfo[banner]" border="0" /> <else /> <img src="images/banner/default.gif" border="0"> </if></if></if> Now if you're like me and you use vbadvance you can port variant headers over there without changing your $header template. First set $index_header and $index_footer equal to the site's normal header & footer as follows: Code:
eval('$index_header = "' . fetch_template('header') . '";'); eval('$index_footer = "' . fetch_template('footer') . '";'); Code:
if ($newsforum == 110) { $index_header = str_replace("default.gif", "scifinews.gif", $index_header); } elseif ($newsforum == 111) { $index_header = str_replace("default.gif", "pdfnews.gif", $index_header); } else { $index_header = str_replace("default.gif", "ENNewsLogo.gif", $index_header); } |
#41
|
|||
|
|||
is there any possiblity of changing this to make it where you can enable a random banner to appear..
so you cna put in say 10+ banners, and just have one randomly appear...would be kinda easy i think with a nice php sscript...hmm i think i might have a go at that now tha ti think of it...if you don't mind me editing your mod a bit eh? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|