vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Add a banner image to each forum (vb4.x) (https://vborg.vbsupport.ru/showthread.php?t=243176)

Zachariah 05-23-2010 10:00 PM

Add a banner image to each forum (vb4.x)
 
1 Attachment(s)
/* ----------------- 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

run.exe 05-23-2010 11:38 PM

Yes!!!!!!

hotfilepro 05-24-2010 12:20 AM

thank !!!! 5* !

sulasno 05-24-2010 12:23 AM

tagged and thanks

Greight 05-24-2010 07:29 AM

Can't the ad system do the same job?!

Zachariah 05-24-2010 11:49 AM

Quote:

Originally Posted by Greight (Post 2042570)
Can't the ad system do the same job?!

yes, but there are requests that want the update of a hack already installed.
- with 50-200 forums it is a lot easier to update a hack vs. redo the work of data input on the new system.

Robru 05-25-2010 04:22 PM

Thank You Sir ! :)

KURTZ 05-25-2010 04:25 PM

Hi Zach, just a question: runs with the google integrated ads?

Zachariah 05-25-2010 07:33 PM

Quote:

Originally Posted by KURTZ (Post 2043236)
Hi Zach, just a question: runs with the google integrated ads?

should not matter, this just attaches itself to an Ad hook.

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

KURTZ 05-26-2010 09:09 AM

Quote:

Originally Posted by Zachariah (Post 2043323)
should not matter, this just attaches itself to an Ad hook.

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

yes it runs! great hack, just nominated! ;)

just a question: can you add the possibility to put a banner onto the forumhome?

webspider 05-26-2010 02:24 PM

Hey great mod. Be nice if we had the option to add banners to the forum home.

KURTZ 05-26-2010 06:16 PM

Quote:

Originally Posted by webspider (Post 2043664)
Hey great mod. Be nice if we had the option to add banners to the forum home.

absolutely! :p

Zachariah 05-26-2010 10:13 PM

2.1
- Added forumhome banner option
- Added add_banner_forumhome template
- Optimized hook placement for less overhead

* To add banner to forumhome:
Settings => Options => Forums Home Page Options
- Banner Image Location
- Banner Target Link
- Banner Alt Text
- Banner Custom HTML Code

webspider 05-27-2010 09:13 PM

Nice job! Many Thanks!!

KURTZ 05-30-2010 10:09 AM

Quote:

Originally Posted by Zachariah (Post 2043806)
2.1
- Added forumhome banner option
- Added add_banner_forumhome template
- Optimized hook placement for less overhead

* To add banner to forumhome:
Settings => Options => Forums Home Page Options
- Banner Image Location
- Banner Target Link
- Banner Alt Text
- Banner Custom HTML Code


really a GREAT job! however Zach, can you add an option that allow us to put the banner onto the footer? it's possible?

anyway, thanks ;)

Marek58 05-31-2010 10:25 AM

1 Attachment(s)
Polish version

Zachariah 05-31-2010 12:19 PM

Quote:

Originally Posted by Marek58 (Post 2045956)
Polish version

Thank You, added link to 1st post.

KURTZ 06-22-2010 06:21 PM

Zach, another request: is it possible to add the possibility to put a banner into a specific Social Group?

neiljedmonds 07-22-2010 08:40 AM

Superb,just what I needed.

Neil

COL NIL SATIS 08-04-2010 12:42 PM

tagged ..looks very promising indeed

Noerenberg 08-04-2010 08:29 PM

....

Aramist 02-08-2011 05:34 PM

Hi Zach,

In my board, it's showing banner on threads, and the show thread option is off.

Any clue?

trilOByte 09-23-2011 10:34 AM

Anyone know the conditional to put in the custom code box to make the banner visible to only certain usergroups?

e-Novator 09-25-2011 07:40 AM

is it possible to use this to a specific forum not in the main page?

smirkley 09-25-2011 01:36 PM

Love this mod.

If you were to make an option to add a banner to the blogs, groups too, it would be perfecto.

FreakyG'sMom 01-11-2012 06:14 AM

Quote:

Originally Posted by Aramist (Post 2160278)
Hi Zach,

In my board, it's showing banner on threads, and the show thread option is off.

Any clue?

I'm encountering the same problem!

Can you please advise how to resolve?

Thanks

BlueCheri 01-11-2012 06:24 AM

Tagged.

Will try after updating with new version.

Thanx for Mod.

Welshy2008 01-23-2012 08:43 AM

Does this still work on vB4.1.10, guys?

GaRanT 10-08-2012 08:48 PM

how do I insert an swf. banner as html code to be clickable I cant find this solution any one please help. I can insert just swf banner the link do not working.

Peafor 12-14-2012 12:52 PM

Thank you so much, just what I was looking for, working for me with 4.2.0

PattiOz 01-11-2013 02:43 AM

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!

elfenny 01-15-2013 04:22 AM

Then I can put a different ad in each forum?

elfenny 01-30-2013 12:14 AM

I have a problem, I focused the image around the forum, as I can fix?

49er 04-27-2013 09:18 PM

1 Attachment(s)
Is it possible to add the link and banner under the "Post New Thread" link below the forums description .. :confused: See Picture ...

Thanks

jimsflies 05-01-2013 05:27 PM

EDIT: Nevermind I figured it out.

jimsflies 05-01-2013 05:30 PM

Quote:

Originally Posted by 49er (Post 2418866)
Is it possible to add the link and banner under the "Post New Thread" link below the forums description .. :confused: 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.

49er 05-01-2013 10:30 PM

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??? ?

jimsflies 05-02-2013 01:52 AM

Quote:

Originally Posted by 49er (Post 2419508)
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.

49er 05-02-2013 08:42 PM

Jim, thanks very much, that has dropped the image down, but in the center and not left beneath the the Forum description ....

jimsflies 05-02-2013 11:50 PM

Edit the add_banner template and remove

Code:

<center> and </center>


All times are GMT. The time now is 06:30 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.01225 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete