vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add a banner image to each forum (vb3.5) (https://vborg.vbsupport.ru/showthread.php?t=94119)

HormZ 10-25-2005 02:34 PM

Quote:

Originally Posted by Zachariah
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.

Dunce Question:

Where exactly must the html be copied to? Which template?

Sorry - I am thikko when it comes to this type of stuff.

Zachariah 10-25-2005 02:51 PM

Quote:

Originally Posted by HormZ
Dunce Question:

Where exactly must the html be copied to? Which template?

Sorry - I am thikko when it comes to this type of stuff.

Edit each "forum" that needs rotation

Admincp =>Forums & Moderators => Forum Manager => Edit forum => scroll do to the bottom => HTML Code "box" :)


https://vborg.vbsupport.ru/attachmen...chmentid=34099

SCI 10-26-2005 06:01 AM

I use a rotating banner script which I put the code in the header_include template and then a piece of Java code to call it from there in the header and footer where the rotating banners are now, will that work in this hack, if I put the Java in the HTML area called from the header include? If so you are the man!!

HormZ 10-26-2005 06:59 AM

Zach,

Thanks but I can't get it to work. I have the .swf file stored in my images directory.

I copied the script (with url changed to bokbok.co.uk) but nothing happens. Same as before.

Any ideas where I have gone wrong?

Zachariah 10-26-2005 10:22 AM

Quote:

Originally Posted by piXelatedEmpire
Just curious if this is still being worked on.. would be a fantastic feature

yes sir.
Quote:

Originally Posted by SCI
I use a rotating banner script which I put the code in the header_include template and then a piece of Java code to call it from there in the header and footer where the rotating banners are now, will that work in this hack, if I put the Java in the HTML area called from the header include? If so you are the man!!

I did some playing around took the <if></if> (template edit) statement added to the ForumsDisplay template. You can instead place it in the header / footer template and it will show up also. When that forum is displayed

IE: banner for f=642 will show up anywhere on the page in any template when the forumdisplay.php?f=642, but it will show up in the same place on every forum.

I made a area in the header for an image that changed by subject. It was a business logo with many "backgrounds" by subject. This way when they went into the sports area (forum) that the logo showed kids playing, sports balls around their business logo.

I added an <else /> in the <if> statement to show a default logo if the forum did not have a related banner.
Quote:

Originally Posted by HormZ
Zach,
Thanks but I can't get it to work. I have the .swf file stored in my images directory.

I copied the script (with url changed to bokbok.co.uk) but nothing happens. Same as before.

Any ideas where I have gone wrong?

hit the Chat link @ the top of the site /join #help after you connect. I'll be there off and on today.

cbr929rrerion 10-26-2005 03:21 PM

Ok.. Just a question.. Does this allow you to choose which forum/catagory gets which banner? Or do you have 1 set of banners that rotate on all pages its entered on?

I want specific banners in specific catagories..

example, if its a tire ad I want it in the tire section, if its a Glove ad have it in clothing, etc..

Thanks

Zachariah 10-26-2005 04:46 PM

Quote:

Originally Posted by cbr929rrerion
Ok.. Just a question.. Does this allow you to choose which forum/catagory gets which banner? Or do you have 1 set of banners that rotate on all pages its entered on?

I want specific banners in specific catagories..

example, if its a tire ad I want it in the tire section, if its a Glove ad have it in clothing, etc..

Thanks

Add a banner option per forum:
https://vborg.vbsupport.ru/attachmen...chmentid=34099

- The images can be on the local server or on a remote system.

- image with or without link
(png,jpg,bmp,tif,gif)

- There is also a small HTML "paste" area.
(java scripts, dhtml, html, not php "yet" )

I have pasted JAVA output from google, phpadnews, Iframes. I have also used the HTML area to paste RSS feeds per forum linking to different places. (limit 5).

SupermanInNY 10-31-2005 02:05 PM

One thing "missing", or at least I wasn't able to find it.
How to add a banner in the Top most page, the one that lists out all the forums.
Any pointers?

-Alon.

Zachariah 10-31-2005 02:39 PM

Quote:

Originally Posted by SupermanInNY
One thing "missing", or at least I wasn't able to find it.
How to add a banner in the Top most page, the one that lists out all the forums.
Any pointers?


-Alon.

Yes this will not work on the ForumHome.


Add Extra Header / Footer to FORUMHOME
https://vborg.vbsupport.ru/showthrea...threadid=97901

This will create an area in your ForumHome to allow your to paste HTML/google/whatever

EX: Halloween 2005 - image
Code:

<a href="http://www.google.com/search?q=halloween">
<img title="Halloween 2005" height="125" alt="Halloween 2005" src="http://www.google.com/logos/halloween05.gif" width="276" border="0"></a>


SupermanInNY 10-31-2005 03:05 PM

Quote:

Originally Posted by Zachariah
Yes this will not work on the ForumHome.


Add Extra Header / Footer to FORUMHOME
https://vborg.vbsupport.ru/showthrea...threadid=97901

This will create an area in your ForumHome to allow your to paste HTML/google/whatever

EX: Halloween 2005 - image
Code:

<a href="http://www.google.com/search?q=halloween">
<img title="Halloween 2005" height="125" alt="Halloween 2005" src="http://www.google.com/logos/halloween05.gif" width="276" border="0"></a>


Great!
That worked!
I'm curious though,. wouldn't it make more sense to put the Header/Footer heck run from the Forum Manager page? with similar interface as the Per-Forum mod? This is just an observation,. I like the heck (both of them) :).

-Alon.

2fast4ya 11-10-2005 06:27 PM

hi, i added everything that was supposed to be added, and followed your instructions word for word... but for some reason my custom style went away... its at the original style... what happened?

Zachariah 11-10-2005 07:09 PM

Quote:

Originally Posted by 2fast4ya
hi, i added everything that was supposed to be added, and followed your instructions word for word... but for some reason my custom style went away... its at the original style... what happened?

Little lost.

is your skins set:

- Default (edited style)
-- Custom
-- Custom

Many times the custom skins need to be edited to show the edits.

cuphongle 11-13-2005 06:21 PM

i installed the products....but dont see the option anywhere

Zachariah 11-13-2005 06:46 PM

Quote:

Originally Posted by cuphongle
i installed the products....but dont see the option anywhere

When making or editing a "forum" look @ the bottem of the page.

https://vborg.vbsupport.ru/attachmen...chmentid=34099

AdminCP => Forums & Moderators => Forum Manager => Edit a Forum / Add New Forum

agiacosa 11-14-2005 05:43 PM

Quote:

Originally Posted by SupermanInNY
Great!
That worked!
I'm curious though,. wouldn't it make more sense to put the Header/Footer heck run from the Forum Manager page? with similar interface as the Per-Forum mod? This is just an observation,. I like the heck (both of them) :).

-Alon.

Hi

Upgraded to 3.5.1 from 3.5 where the mod was working. I had to revert Forumhome and Showthread. I reuploaded the product and did the addition to those two templates.

It isn't working. What do I need to do to get this working in 3.5.1? Thanks.

sim tech 11-14-2005 07:25 PM

Quote:

Originally Posted by Zachariah
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.

EX:
This will show @ random.

image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com


Code:

<script language="javascript" type="text/javascript">
<!--
function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
 
// keep adding items above here...

increment = Math.floor(Math.random() * number);
document.write(banner[increment]);

//-->
</script>

Useage: If you need more banners edit / add another row.
Code:

banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location

I installed the mod on my version 3.51 and it works fine.

But I also was looking for something like this that would display banner ads on the actual forum header & rotate through several different spnsor ads, and your java script worked like a champ! THANK YOU! THANK YOU! THANK YOU!

I just placed it in the header script of the default template.

Zachariah 11-14-2005 07:50 PM

Quote:

Originally Posted by sim tech
I installed the mod on my version 3.51 and it works fine.

But I also was looking for something like this that would display banner ads on the actual forum header & rotate through several different spnsor ads, and your java script worked like a champ! THANK YOU! THANK YOU! THANK YOU!

I just placed it in the header script of the default template.

Great news. Glad it helped out.

:banana:

craiovaforum 11-17-2005 09:54 AM

I was wondering, is there any way to add banners for different forums, like this plugin does but in the header of the forum?
Like in the attachement

RGSMDNR 11-17-2005 11:42 AM

can these banners be hidden to a user group?

Zachariah 11-17-2005 11:55 AM

Quote:

Originally Posted by craiovaforum
I was wondering, is there any way to add banners for different forums, like this plugin does but in the header of the forum?
Like in the attachement

You can add the template edit made to the forumhome to the header, but on forums w/o an image or anywere else will be a blank space where the image should be.

Try this:

header template:

Code:

<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else /><img src="images/banner/default.gif" border="0">
</if>

</if>
</if>
</if>

This will place a default image in place when not in a forum w/ an image.



Now I have also done this added this hack to "Add Extra Header / Footer"

Add Extra Header / Footer
https://vborg.vbsupport.ru/showthrea...threadid=99544

Code:

<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else />$vboptions[fhx2h]
</if>

</if>
</if>
</if>

This only says use the Add Extra Header when there is no image for a forum. There still is a "footer to place", but you may have a need somewere.

Zachariah 11-17-2005 12:05 PM

Quote:

Originally Posted by RGSMDNR
can these banners be hidden to a user group?

Not yet. This will be in an update. Thanks for the "nudge" my brain forgot.

Dstephan 11-17-2005 03:44 PM

I have to say I love this mod! I have a different banner on each forum and change them weekly, and this works so much better than editing the templates all the time.

craiovaforum 11-17-2005 05:47 PM

ok, let me get this straight:
v.1. I have to delete the modification I made to forumhome and wite it directly in the header. And then add the c0de you posted
v.2. I let things as they are and add the c0de you posted in the header template

Wich one is it?

Flow Fusion 11-18-2005 08:54 AM

Works great, thanks.

lanc3lot 11-18-2005 09:06 AM

Hm seems really nice, some questions though.

- Are any plans for any stats service for the banners?
- I see that the banners can be images, could be easy, to expand that on swf files too?

Thnx in advance

Bubble #5 11-21-2005 07:29 AM

Yes swf files would be a nice touch :)

craiovaforum 11-21-2005 01:43 PM

[QUOTE=Zachariah]You can add the template edit made to the forumhome to the header, but on forums w/o an image or anywere else will be a blank space where the image should be.

Try this:

header template:

Code:

<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else /><img src="images/banner/default.gif" border="0">
</if>

</if>
</if>
</if>

This will place a default image in place when not in a forum w/ an image.

hmm
If I add the code for a flash banner instead of the code for an image, in the code from up, it doesn't work


I have this code:

Code:

<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><right><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></right><br />
<else />
<if condition="$foruminfo['banner']"><right><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></right><br />
<else />
<if condition="$foruminfo['bannercode']"><right>$foruminfo[bannercode]</right><br />
<else /><object border="0" width="600" height="100">
        <param name="wmode" value="transparent">
        <embed src="magic2.swf" width="600" height="100" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" /></object>

</if>
</if>
</if>
</if>
</td>


lanc3lot 11-23-2005 05:19 PM

Damn seems Zachariah havent saw yet my post:(

xtreme-mobile 11-25-2005 04:11 PM

since installing VBshout on all pages none of the banners show up any more

any ideas how i can fix?

regards

dean

Zachariah 11-25-2005 04:54 PM

Quote:

Originally Posted by lanc3lot
Hm seems really nice, some questions though.

- Are any plans for any stats service for the banners?
- I see that the banners can be images, could be easy, to expand that on swf files too?

Thnx in advance

- Stats perhaps.
- Swf files - at the moment you can paste your HTML code in the HTML code area.

https://vborg.vbsupport.ru/attachmen...chmentid=34099

Bubble #5 11-26-2005 01:20 AM

Hi Zachariah :) We're tring to wrap our skin around the banner but it is picking up a lot of padding from someplace. We looked at the code but didn't see anyplace where it was coming from. Any ideas? :ermm:

Bubble #5 11-26-2005 02:02 AM

I got it Zachariah. It was the <br /> tags :nervous:

Zachariah 11-26-2005 11:27 AM

Quote:

Originally Posted by Bubble #5
I got it Zachariah. It was the <br /> tags :nervous:

Yes - I slaped a few in there to push the tables away in it's current placement.

good hunting :)

Bubble #5 11-27-2005 04:01 PM

Zachariah I've got a great idea for a new plugin for you and it should be easy for you to make :) I call it the "Holiday Hack" and basically what it would do is to add a custom header or logo with a holiday picture during that holiday season. Some admins have custom holiday logos, and this would display them automatically. The admin could set when the custom headers/logos would display during that season. Anyway when I was installing this hack the other day I was thinking how it should be easy for you to convert this hack to work for the holidays. Basically just add the date feature, or have it work off of calendar events, and maybe a new 'holidays' directory on the server to store the pictures :)

craiovaforum 11-27-2005 04:56 PM

Quote:

Originally Posted by Bubble #5
Zachariah I've got a great idea for a new plugin for you and it should be easy for you to make :) I call it the "Holiday Hack" and basically what it would do is to add a custom header or logo with a holiday picture during that holiday season. Some admins have custom holiday logos, and this would display them automatically. The admin could set when the custom headers/logos would display during that season. Anyway when I was installing this hack the other day I was thinking how it should be easy for you to convert this hack to work for the holidays. Basically just add the date feature, or have it work off of calendar events, and maybe a new 'holidays' directory on the server to store the pictures :)

^^ it would be great!

divided_by_fear 12-02-2005 03:49 PM

zach i was wondering i wanted to turn this off for a bit.... when i go into product manager and disable it the banners still show up how can i temp turn it off?

Zachariah 12-02-2005 04:13 PM

Quote:

Originally Posted by divided_by_fear
zach i was wondering i wanted to turn this off for a bit.... when i go into product manager and disable it the banners still show up how can i temp turn it off?

wow it does :D
- ill look into it. I think I know why.

divided_by_fear 12-04-2005 07:45 PM

yeah i didnt notice it until i tried... hope to see it fixed soon...

Zachariah 12-04-2005 10:54 PM

Quote:

Originally Posted by divided_by_fear
yeah i didnt notice it until i tried... hope to see it fixed soon...

- I will make the system have no template edits. This will fix the issue.

I also had an idea to have a list of "our banners" page listing all of the banners and what forum they advertise for. Make some link in the $navbar "Our Sponcers" or something like that.

divided_by_fear 12-05-2005 12:13 AM

when do you think that will be out? would be nice to put a random banner... or have it set up where you have a banner and it can be added to each forums auto.... instead of manually doing it... ok so if i uninstall this it should be fine?


All times are GMT. The time now is 12: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.01419 seconds
  • Memory Usage 1,860KB
  • 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
  • (8)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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