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

Reply
 
Thread Tools
Top Banner for VB 3.x by BOP5 Details »»
Top Banner for VB 3.x by BOP5
Version: 1.00, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 12-30-2010 Last Update: Never Installs: 12
Supported Uses Plugins Auto-Templates
Re-useable Code Translations  

vBulletin 4.x users have a stylevar they can set to easily include a banner in the header that stretches the width of the window and is behind the logo. Now vBulletin 3.x users will have the same option.

This mod will let you specify a banner image to use in the header behind the logo and behind any banner ads you may have. See the screenshots for a better explanation.

In addition you can optionally specify 2 images, one to display during the "Daytime" and one at "Night" as determined by the user's local time zone settings in vBulletin.

In either case the banner auto-resizes to the width of the browser window. I find a banner approximately 1280 pixels wide looks decent in most browser resolutions. The height of the banner is manually set in the mod options.

Full instructions in the text file in the .zip file.

Tested With vBulletin 3.8.6 and should work with earlier versions.

Demo: http://www.juot.net/forums/

Please Mark as Installed if you use this.

Two images are included in the zip file, a "Brick Wall" demo banner image you can use to test the mod and a replacement for the default vBulletin 3 logo with a transparent background so if in the unlikely event you still used the default logo this one will work better- as shown in the screenshot with the default logo.

NOTICE: If you use a customized style the auto template edits made by this mod might fail. If that is the case you can manually edit the header template.

Find the first <table> tag in the header template. it will be close to but not exactly this:

HTML Code:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
Right before the closing > ADD the following code:

HTML Code:
style="background : url('/forums/images/misc/yourbanner.jpg'); background-size: 100% 120px;"
This will give you something like:

HTML Code:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="background : url('/forums/images/misc/yourbanner.jpg'); background-size: 100% 120px;">
Remember to change yourbanner.jpg to your banner image, and change 120 to the height, in pixels of the banner image.

Download Now

File Type: zip Top Banner for VB3 by BOP5.zip (407.5 KB, 98 views)

Screenshots

File Type: jpg topbanner_ss0.jpg (140.1 KB, 0 views)
File Type: jpg topbanner_ss1.jpg (82.6 KB, 0 views)
File Type: jpg topbanner_ss2.jpg (133.9 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 12-31-2010, 03:36 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
  #3  
Old 12-31-2010, 01:07 PM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very, very nice!!

Leveraging ... How do I make this menu in my forum?

Attachment 125062
Reply With Quote
  #4  
Old 12-31-2010, 02:39 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The top row of images are just small graphics I added to the navbar menu via a template edit...

The original code for example for the calendar was:
HTML Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
And I changed it to:
HTML Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]"><img src="/forums/images/nav/60_calendar.gif" alt="$vbphrase[calendar]" border="0" /><br />$vbphrase[calendar]</a></td>
I made the same edits for each of the navbar menu options... (FAQ, Community, Search, etc...)

The bottom bar is a bit more complicated, I'm not really sure I could explain it well enough so I never "released" it here but basically it's all an additional table in the navbar template... Since I had already designed individual status icons for each forum category on my forum I manually added the status icon for each forum as a link to each forum in this new table- each icon is in it's own table cell so it resizes correctly when the browser is resized.
Reply With Quote
  #5  
Old 01-01-2011, 10:18 AM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Bird..

5 stars
Reply With Quote
  #6  
Old 01-01-2011, 05:48 PM
Eduardo Leon's Avatar
Eduardo Leon Eduardo Leon is offline
 
Join Date: Oct 2009
Location: Peru
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah installed and tagged ^^ !
Reply With Quote
  #7  
Old 12-27-2012, 09:59 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please can you update this mod? without manual template edit for work on 4.1.10
Reply With Quote
  #8  
Old 12-29-2012, 07:47 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need this mod for VB 4.1.10-

On VB 4.1.10 just use the stylevar header_background in the Stylevar Editor in Style Manager.

In the background URL include something like:

Code:
url(images/misc/background_bk.jpg)
Reply With Quote
  #9  
Old 12-29-2012, 08:28 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
You don't need this mod for VB 4.1.10-

On VB 4.1.10 just use the stylevar header_background in the Stylevar Editor in Style Manager.

In the background URL include something like:

Code:
url(images/misc/background_bk.jpg)
That way not working ? I didnot see any background images.
Reply With Quote
  #10  
Old 01-07-2013, 05:17 PM
matrex722's Avatar
matrex722 matrex722 is offline
 
Join Date: Jan 2007
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work
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 02:09 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
  • Page Generation 0.05547 seconds
  • Memory Usage 2,332KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (5)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete