Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add a banner image to each forum (vb3.5) Details »»
Add a banner image to each forum (vb3.5)
Version: 1.6, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 08-11-2005 Last Update: 11-27-2005 Installs: 325
DB Changes Uses Plugins Template Edits
 
No support by the author.

/* -----------------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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #142  
Old 12-20-2005, 08:29 PM
Stephen3 Stephen3 is offline
 
Join Date: Oct 2005
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/
Reply With Quote
  #143  
Old 12-21-2005, 06:58 AM
Ramsesx's Avatar
Ramsesx Ramsesx is offline
 
Join Date: Aug 2005
Location: Southern Germany
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to reduce the space between the navbar and the banner?
Thanks
Reply With Quote
  #144  
Old 12-21-2005, 09:45 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ramsesx
Is there a way to reduce the space between the navbar and the banner?
Thanks
That is controled in the $navbar.
- 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 />
If this is the correct one your looking for place this insted the <br /> tag.

Code:
if (THIS_SCRIPT != 'forumdisplay' OR THIS_SCRIPT != 'showthread') 
{ 
<br />
}
This states when on the forumdisplay or showthread do not show the <br />. This will keep the tag there any other time.
Reply With Quote
  #145  
Old 12-21-2005, 12:03 PM
Kuimera Kuimera is offline
 
Join Date: Aug 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #146  
Old 12-21-2005, 12:16 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kuimera
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.
They work for me. :disappointed:

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?&amp;r_fcid=414&amp;r_fcp=top&amp;dpcollation=1&amp;qk=20&amp;familyfilter=1&amp;sort=0&amp;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>
Reply With Quote
  #147  
Old 12-21-2005, 12:29 PM
Kuimera Kuimera is offline
 
Join Date: Aug 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Noticed now.. this seems to be a opera browser problem... I tested with IE and it works great has you said above.
Reply With Quote
  #148  
Old 12-21-2005, 12:31 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kuimera
Noticed now.. this seems to be a opera browser problem... I tested with IE and it works great has you said above.
Firefox works ok too ..... never tryed Opera

- Perhaps what you wrap the HTML with ?
- is this a problem w/ images or only the HTML area ?
Reply With Quote
  #149  
Old 12-21-2005, 12:36 PM
Kuimera Kuimera is offline
 
Join Date: Aug 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heres how its looks:
Dam opera...
Reply With Quote
  #150  
Old 12-21-2005, 12:42 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kuimera
Heres how its looks:
Dam opera...
place your code in a:
<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.
Reply With Quote
  #151  
Old 12-21-2005, 03:54 PM
Stephen3 Stephen3 is offline
 
Join Date: Oct 2005
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can make it can add more then 1 banner ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04774 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete