PDA

View Full Version : Forum Display Enhancements - Add a banner image to each forum (vb4.x)


Zachariah
05-23-2010, 10:00 PM
/* ----------------- 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 (https://vborg.vbsupport.ru/member.php?u=115688) created a translation - Add_Banner_Polish-language.xml (https://vborg.vbsupport.ru/showpost.php?p=2045956&postcount=16)

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
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
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
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
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
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
Polish version

Zachariah
05-31-2010, 12:19 PM
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
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
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
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
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:
{vb:raw ad_location.ad_navbar_below}

into your forumdisplay template after this 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):

{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

<center> and </center>

49er
05-03-2013, 08:16 AM
Edit the add_banner template and remove

<center> and </center>

Jim, thank you so much for your time and help ... ;)

lasalle6969
08-30-2013, 03:06 PM
thanks. so easy

efelony
12-30-2013, 01:52 AM
Mod works flawlessly, Banner is available on forumdisplay, Is there anyway to get it to display the forum specific banner on the showthread templates?

Timmahh
11-18-2015, 08:58 PM
I have installed this plugin. I can see the banners, but no body else can.

Can someone give me a little help on what I am missing?

Thanks
Timmahh

Zachariah
03-12-2017, 01:40 PM
This product still works out of the box on VB 4.2.4 :cool:.

I just upgraded a forum from VB3.8.5 to VB4.2.4 and imported the product XML All was good. All of my banners per forum were still working !!


I updated the 1st post to reflect tested on vB 4.2.4.



I have installed this plugin. I can see the banners, but no body else can.

Can someone give me a little help on what I am missing?

Thanks
Timmahh

If the person has access to see the content of the forum there should not be a problem. This addon does not directly deal with permissions.

Off the top of my head, could you be pointing to a locally hosted image or on a hosting service that you alone only have access to ? This would cause the image not to show up.

Zachariah
03-12-2017, 06:17 PM
Zach, another request: is it possible to add the possibility to put a banner into a specific Social Group?

Good idea. I will look in on it.

Hi Zach,

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

Any clue?

I had some code off.
VER 2.2 is now updated and works.


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



In your Admin Control Panel

Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "product-banner_image.xml"
Allow Overwrite should be on
Import

Love this mod.

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

Right on !! I will look in on it.

I am also going to look at CMS categories as well. Who knows :)