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.5) Details »» | |||||||||||||||||||||||||
/* -----------------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. 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. Show Your Support
|
Comments |
#142
|
|||
|
|||
asking it could be done
seem like the current version just can add 1 and must be banner? hope can make it like http://megacashforum.com/ |
#143
|
||||
|
||||
Is there a way to reduce the space between the navbar and the banner?
Thanks |
#144
|
||||
|
||||
Quote:
- there is a <br / > - the only thing the banner hack adds is a <br /> after the banner code. If you kill the <br /> in the $navbar it will effect the whole site. I think: Code:
<!-- / nav buttons bar --> <br /> Code:
if (THIS_SCRIPT != 'forumdisplay' OR THIS_SCRIPT != 'showthread') { <br /> } |
#145
|
|||
|
|||
This is a great plugin, but I will have to uninstall this since I can’t really use the menus probably...
Tks all and good job. |
#146
|
||||
|
||||
Quote:
http://www.gzhq.net/forums/forumdisplay.php?f=118 What are you useing in the HTML area ? You can even paste: Lots of HTML in it and watch it work: (view source of dogpile.com) http://www.gzhq.net/forums/forumdisplay.php?f=235 Code:
<div class="idxBkgrnd" align="center"> <div> <a href="http://www.dogpile.com/"> <img alt="Dogpile-All the best search engines piled into one. Including Google, Yahoo! Search, MSN Search and Ask Jeeves." class="image" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/idx/logo.gif" border="0" height="119" width="359"></a></div> <div> <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="36" width="1"></div> </div> <div class="formBkgrnd"> <div style="padding-left: 75px;" align="center"> <script language="javascript"> var advsrchterms = "&"; function urlEncode (str) { var estr = escape( str ); estr = estr.replace(/@/g, '%40'); estr = estr.replace(/\*/g,'%2A'); estr = estr.replace(/_/g, '%5F'); estr = estr.replace(/\+/g,'%2B'); estr = estr.replace(/\./g,'%2E'); estr = estr.replace(/\//g,'%2F'); return estr; } function clearadvanced() { if(document.idxSearch.exact){ if(!document.idxSearch.exact.checked) var exact = ''; advsrchterms = ''; } } function redirSearch ( qcat ) { location.href = 'http://www.dogpile.com/info.dogpl/search/index.htm?qcat=' + qcat; } function toggleTab ( searchType, qcat, idName ) { if ( document.idxSearch ) document.idxSearch.qcat.value = qcat; if ( document.idxSearchbot ) document.idxSearchbot.qcat.value = qcat; var tabs = document.getElementsByTagName('a'); for( var i=0; i<tabs.length; i++ ) { var tabi = tabs[i]; if ( tabi.id == idName && tabi.className == "tabInactive" ) { tabi.className="tabActive"; } else if ( tabi.id == idName && tabi.className=="tabActive" ) { tabi.className="tabActive"; } else if ( tabi.className=="tabActive" ) { tabi.className="tabInactive"; } } var thehtml = '<a class="Text-On-Tablestyle-BG1" href="http://www.dogpile.com/info.dogpl/search/advanced/' + searchType.toLowerCase() + '.htm?&r_fcid=414&r_fcp=top&dpcollation=1&qk=20&familyfilter=1&sort=0&adultfilter=Moderate">Advanced</a>'; if ( document.getElementById("advancedlink") ) document.getElementById("advancedlink").innerHTML = thehtml; if ( document.getElementById("advancedlinkbot") ) document.getElementById("advancedlinkbot").innerHTML = thehtml; var img = new Image(); img.src = "http://www.dogpile.com/info.dogpl/search/5_4/logging/category.htm?category=" + searchType + "&ran=" + Math.round(Math.random()*10000); } function changeadvanced(formname,searchType,qcat,coid,position) { var exact = ''; if ( formname == "idxSearchbot" ) { if ( document.idxSearch.exact ) { if(document.idxSearchbot.exact.checked) exact = '&exact=1'; else exact = ''; } else exact = ''; } else { if(document.idxSearch.exact){ if(document.idxSearch.exact.checked) exact = '&exact=1'; else exact = ''; } else exact = ''; } location.href = 'http://www.dogpile.com/info.dogpl/search/redir.htm?r_fcid='+coid+'&r_fcp='+position+'&qcat=' + qcat + '&qkw='+ urlEncode(document.idxSearch.qkw.value)+ exact + advsrchterms; } </script> <form class="msSearchbox" style="margin: 0px;" method="get" name="idxSearch" action="http://www.dogpile.com/info.dogpl/search/redir.htm"> <input name="qcat" value="web" type="hidden"> <input name="r_aid" value="2B8D94FEDA114C66AD4A063AAF850CC0" type="hidden"> <input name="r_fcid" value="417" type="hidden"> <input name="r_fcp" value="top" type="hidden"> <table class="Tablestyle-BG1" bgcolor="#ebebad" border="0" cellpadding="0" cellspacing="0" id="table1"> <tr> <td class="Text-On-Tablestyle-BG1" colspan="5"> <div id="navTab"> <a id="sbtWeb" class="tabActive" onclick="toggleTab('Web','web','sbtWeb'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=web"> Web</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtImages" class="tabInactive" onclick="toggleTab('Image', 'images','sbtImages'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=images">Images</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtAudio" class="tabInactive" onclick="toggleTab('Audio', 'audio','sbtAudio'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=audio">Audio</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtVideo" class="tabInactive" onclick="toggleTab('Video', 'smd','sbtVideo'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=smd">Video</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtNews" class="tabInactive" onclick="toggleTab('News', 'nws','sbtNews'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=nws">News</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtYellow" class="tabInactive" href="http://www.dogpile.com/info.dogpl/clickit/search?r_aid=2B8D94FEDA114C66AD4A063AAF850CC0&r_coid=412&r_cop=top&r_sacop=0&r_spf=0&r_snpp=0&r_spp=0&qqn=0&rawto=http://www.dogpile.com/info.dogpl/yellow-pages/">Yellow Pages</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtWhite" class="tabInactive" href="http://www.dogpile.com/info.dogpl/clickit/search?r_aid=2B8D94FEDA114C66AD4A063AAF850CC0&r_coid=413&r_cop=top&r_sacop=0&r_spf=0&r_snpp=0&r_spp=0&qqn=0&rawto=http://www.dogpile.com/info.dogpl/white-pages/">White Pages</a></div> </td> </tr> <tr> <td colspan="5"> <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="15" width="1"></td> </tr> <tr> <td style="padding-bottom: 3px;"> <span class="Text-On-Tablestyle-BG1"> <input onclick="clearadvanced();" name="qkw" size="53" value type="text"></span><script language="javascript"> function changeFocus () { document.forms.idxSearch.qkw.focus(); } if ( window.addEventListener ) { window.addEventListener( "load", changeFocus, false ); } else if ( document.addEventListener ) { document.addEventListener( "load", changeFocus, false ); } else if ( window.attachEvent ) { window.attachEvent( 'onload', changeFocus ); } </script></td> <td align="right" valign="bottom"> <div id="msSearchSubmit"> <input alt="Go Fetch!" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/submit.gif" type="image" name="I1"></div> </td> <td> <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="24"></td> <td style="padding-bottom: 4px;" align="right" nowrap="true" valign="bottom"> <nobr><span id="advancedlink"> <a id="advancedweblinktop" class="Text-On-Tablestyle-BG1" href="http://www.dogpile.com/info.dogpl/search/advanced/web.htm?r_fcid=414&r_fcp=top&dpcollation=1&qk=20&familyfilter=1&sort=0&adultfilter=Moderate"> Advanced</a></span></nobr></td> </tr> </table> </form> </div> <img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="32" width="1"></div> |
#147
|
|||
|
|||
Noticed now.. this seems to be a opera browser problem... I tested with IE and it works great has you said above.
|
#148
|
||||
|
||||
Quote:
- Perhaps what you wrap the HTML with ? - is this a problem w/ images or only the HTML area ? |
#149
|
|||
|
|||
Heres how its looks:
Dam opera... |
#150
|
||||
|
||||
Quote:
<div>code</div> or <table><tr><td>code</td></tr></table> I rem way back then Firefox did that all the time. I can't REM what the fix was or if a new ver of firefox fixed it. |
#151
|
|||
|
|||
can make it can add more then 1 banner ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|