Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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

Category: Forum Display Enhancements - Version: 4.2.4 Rating:
Released: 05-23-2010 Last Update: 03-11-2017 Installs: 123
DB Changes Uses Plugins Auto-Templates
Translations  
No support by the author.

/* ----------------- 3.12.2017 11:49AM-----------------
[HowTo] Add a banner option image to each forum w/ Link V.2.2
Tested on vBulletin: 4.2.5

Zachariah - http://www.szone.us


*** Info:
This modification will Add a 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 images can be located on the localhost or on a remote server.

This will be located after the navbar on FORMDISPLAY and SHOWTREAD and FORUMHOME.
- {vb:raw ad_location.ad_navbar_below}

Translations: :up:
Marek58 created a translation - Add_Banner_Polish-language.xml

Changelog:
------------
2.2 - 3.12.2017
- Fixed banner showing up on threads when selected "No"

2.1 - 05/26/2010
- Added forumhome banner option
- Added add_banner_forumhome template
- Optimized hook placement for less overhead

2.0
- updated hack to work with vBulletin: 4.x

1.7
- str_replace used to place hack at $navbar in FORUMDISPLAY, SHOWTHREAD.
- choice to show in thread per forum.
- Place $add_banner in template if str_replace fails to work.
- add_banner template added


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
- Added 3.x to VB 3.5 upgrade XML file.

--------------------------------------------------*/

Add a banner image to each forum (3.6x-3.8x) - Downloads: 1270
- https://vborg.vbsupport.ru/showthread.php?t=132716

Download Now

File Type: zip addbanner_2.2_(VB4).zip (64.0 KB, 53 views)

Screenshots

File Type: jpg ss.jpg (46.8 KB, 0 views)
File Type: jpg admincp.jpg (33.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
sodasusu, The-Lind

Comments
  #32  
Old 01-11-2013, 02:43 AM
PattiOz PattiOz is offline
 
Join Date: May 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works out of the box, even on my heavily modded forum. Says a lot about your coding since a lot of mods crash my forum. Yours is perfect.

Well done!
Reply With Quote
  #33  
Old 01-15-2013, 04:22 AM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then I can put a different ad in each forum?
Reply With Quote
  #34  
Old 01-30-2013, 12:14 AM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem, I focused the image around the forum, as I can fix?
Reply With Quote
  #35  
Old 04-27-2013, 09:18 PM
49er 49er is offline
 
Join Date: Nov 2005
Location: UK
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to add the link and banner under the "Post New Thread" link below the forums description .. See Picture ...

Thanks
Attached Images
File Type: jpg Untitled.jpg (9.8 KB, 0 views)
Reply With Quote
  #36  
Old 05-01-2013, 05:27 PM
jimsflies jimsflies is offline
 
Join Date: Aug 2009
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EDIT: Nevermind I figured it out.
Reply With Quote
  #37  
Old 05-01-2013, 05:30 PM
jimsflies jimsflies is offline
 
Join Date: Aug 2009
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 49er View Post
Is it possible to add the link and banner under the "Post New Thread" link below the forums description .. See Picture ...

Thanks
If you aren't using the ad_navbar_below location for other ads, you could move or copy that to the showthread template below the reply button.
Reply With Quote
  #38  
Old 05-01-2013, 10:30 PM
49er 49er is offline
 
Join Date: Nov 2005
Location: UK
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Jim, but not quite sure what you mean ??? I am not using the ad_navbar_below, but there is no code in there to transfer over??? ?
Reply With Quote
  #39  
Old 05-02-2013, 01:52 AM
jimsflies jimsflies is offline
 
Join Date: Aug 2009
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 49er View Post
Thanks Jim, but not quite sure what you mean ??? I am not using the ad_navbar_below, but there is no code in there to transfer over??? ?
Copy and Paste this:
Code:
{vb:raw ad_location.ad_navbar_below}
into your forumdisplay template after this code:

Code:
<div id="pagetitle" class="pagetitle">
	<h1>{vb:rawphrase forum}: <span class="forumtitle">{vb:raw foruminfo.title}</span></h1>
	<vb:if condition="$foruminfo['description']"><p class="description">{vb:raw foruminfo.description}</p></vb:if>
</div>
Then in the navbar template, find and delete this (or comment it out):

Code:
{vb:raw ad_location.ad_navbar_below}
You can leave your ad_navbar_below template empty. This mod generates a template and inserts it into that template.
Reply With Quote
  #40  
Old 05-02-2013, 08:42 PM
49er 49er is offline
 
Join Date: Nov 2005
Location: UK
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jim, thanks very much, that has dropped the image down, but in the center and not left beneath the the Forum description ....
Reply With Quote
  #41  
Old 05-02-2013, 11:50 PM
jimsflies jimsflies is offline
 
Join Date: Aug 2009
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the add_banner template and remove

Code:
<center> and </center>
Reply With Quote
Reply

Thread Tools

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 03:48 PM.


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.09434 seconds
  • Memory Usage 2,331KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (2)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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