vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Add a banner image to each forum (vb3.6) (https://vborg.vbsupport.ru/showthread.php?t=132716)

DieselMinded 09-04-2007 06:04 PM

the first screen shot is that section added to the forum manager ?

Zachariah 09-04-2007 08:50 PM

Quote:

Originally Posted by DiesellMinded (Post 1332319)
the first screen shot is that section added to the forum manager ?

Correct, If you add or edit a forum. There will be an option per forum.

DieselMinded 09-05-2007 09:30 AM

Sounds Good I may just do this for my sponsors I already have the vB Ad Management by =RedTyger= Any Compatibility issues reported?

Zachariah 09-05-2007 12:50 PM

No problems, it is a very simple add-on
- I have plans to make no template edits. :D

DieselMinded 09-05-2007 04:03 PM

How Soon Is the Upgrade ?

DieselMinded 09-05-2007 06:27 PM

Installed Flawless !! Thanks

DM

bigraph 09-05-2007 06:29 PM

is this the same sort of plugin used at www.gamebattles.com ? if not, link on how they did it? thx

thunderforceken 09-14-2007 05:02 AM

Works great!

I'd like to move this into the header and have 3 static banners using this add on and one rotating banner (other code) is this possible? Thanks!

enjoyyaself 09-14-2007 11:30 AM

Nice Hack,

momo2 09-14-2007 11:43 PM

I'll try this for google ads

nnjj.net 09-17-2007 09:22 PM

is it working for 3.6.8?

volksrods 10-01-2007 01:20 AM

Quote:

Originally Posted by nnjj.net (Post 1341225)
is it working for 3.6.8?

I just installed it in 3.6.8. Everything seems to be working fine. :up:

I do have one question though...
I am not experienced in coding at all... and my programming knowledge is ZILCH, so excuse my ignorance on this.

I've spent a better part of a couple days searching for a way to relocate the banner to a different part of the forum page. I did read where it is only a matter of placing the code in my navbar wherever I see fit... but I just don't know how to do that correctly without having it pretty much "spelled out" like I've seen with some other code listed here (add "this" below "this line", etc...)

As in... exactly what block of code do I need to retrieve after the install, and where exactly do I place it if I wanted to place this banner to sit directly below my main Header Banner instead of the default location set for this hack?

Thanks in advance,

~Steve

simtex 10-04-2007 08:27 PM

hi there , nice done zachariah

is there a way to make it look like the one in my attachment ?

thnx

induslady 10-05-2007 04:56 AM

Hello Zacariah,

I want to know if this adds banner image to all the forums?

Or is it possible to say add this particular banner image to this particular forum?

Like banner1.jpg in forum id 1
Banner2.jpg in forumid 5

So that we display banners relevant to each forum.

Please do let me know. Thanks. Great work!

rizelim 10-05-2007 01:42 PM

thank you very much

induslady 10-05-2007 02:39 PM

Quote:

Originally Posted by induslady (Post 1353278)
Hello Zacariah,

I want to know if this adds banner image to all the forums?

Or is it possible to say add this particular banner image to this particular forum?

Like banner1.jpg in forum id 1
Banner2.jpg in forumid 5

So that we display banners relevant to each forum.

Please do let me know. Thanks. Great work!

Bump :)

I appreciate response to this one.

Zachariah 10-05-2007 04:00 PM

Quote:

Originally Posted by induslady (Post 1353503)
Bump :)

I appreciate response to this one.

* This modification will Add an 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 will be located after the $navbar on FORMDISPLAY and SHOWTREAD.
* This images can be located on the localhost or on a remote server.

periphrastic 10-05-2007 04:09 PM

installed on 3.6.8 & currently working & thank you, i needed this.

petacat 10-06-2007 10:58 AM

Thanks. I am amazed at the power of this community.

Everything I seem to think of is here somewhere!

I am also amazed at how reliable these products are. I would normally expect that there would be nasty surprises. None at all so far in 20 installs :) :up:

neoxi 10-07-2007 09:34 PM

thank you

ciprianrpp 10-08-2007 09:07 AM

installed. thank you.

tedp 10-09-2007 04:35 PM

Mine keeps coming up as a forum link. When I click the link the banner shows on the thread and is active.

docallbikesforums.com

Any ideas?

Thank you, Ted

class101 10-11-2007 12:27 PM

Quote:

Originally Posted by Zachariah (Post 1127347)
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

Nice peace of code , thanks for sharing your knowledge :)

yoyoyoyo 11-06-2007 02:38 AM

microstats informs me that the add_banner template is uncached

shadowevil 03-31-2008 07:39 AM

is it working for 3.7.x?

Zachariah 03-31-2008 11:14 AM

Quote:

Originally Posted by shadowevil (Post 1478908)
is it working for 3.7.x?

Ya there is no problem

aviendha 04-04-2008 11:36 AM

can we add more than 1 banner , in a table type like

banner1 | banner2 | banner3

in the diagbox only accept 1 banner, i don't know how to add more than 1

Subah 04-04-2008 04:00 PM

Great mod ;)
Thank you Zach :)

Quote:

can we add more than 1 banner , in a table type like


banner1 | banner2 | banner3
Good idea :D

aviendha 04-04-2008 05:55 PM

to solve this, i made a custom html code ( a table in the box custom html code)

Anyway, an option to aply all banners in child forums could be nice ^^

CFodder 04-16-2008 08:44 AM

Great mod :).

Would like to know if it's possible to add the banners to the main forum page above each of my main forums?

trigatch4 04-16-2008 01:03 PM

You mention placing these in the header template without the use of conditionals would be a pretty simple task. Would you mind holding our hands through that? I"ve been trying to get this done for AGES and it looks like your mod alone has gotten me 95% of the way.

OH SO CLOSE!

stuartn 04-18-2008 02:54 PM

I've been searching through the FORUMDISPLAY and SHOWTHREAD templates for the code that pulls in the template add_banner. Its not under $navbar, so I checked out $navbar thinking it was globally being pulled over but still no luck. Obviously the template add_banner is in, but it get's pulled those two templates is something I'm struggling width.

Any clues - cause my head is hurting.;-)

stuartn 04-19-2008 11:56 PM

Sussed it....Helps if you actually ready the details in the install. Works nice.

DieselMinded 05-09-2008 02:28 AM

Working on 3.7.0 Gold

stuartn 05-09-2008 06:11 AM

For those wanting to use this with OpenX I would highly recommend it. Also its not very difficult to create a duplicate script that will allow you to run two or multiple set's of ad's throughout the forum. Very nice work indeed.

stuartn 05-09-2008 06:14 AM

Quote:

Originally Posted by class101 (Post 1357555)
Nice peace of code , thanks for sharing your knowledge :)

OpenX will achieve this and far more if plugged you just use the java code invocation within the code part of the forum manager. Yes you run another database and have to install it. But it offers far more flexibility.

Lee Wallace 06-03-2008 07:59 PM

Quote:

Originally Posted by shadowevil (Post 1478908)
is it working for 3.7.x?

Works great with my 3.7.1 and after market skin. This rocks; Thanks Zachariah!!!

snowman872 06-27-2008 02:58 AM

Working well here with 3.7.2.

I did notice on small thing. Apparently if you do not have a banner defined for a given forum, it creates an uncached template now (addbanner if memory serves). I don't recall that in the past. This is true, even if the banner is "off" for that forum.

Please keep up the good work and keep this add on compatible with vBulletin! Nothing else comes close to it for this specialized purpose. I'll be sending a donation soon. =)

Zachariah 06-27-2008 12:55 PM

I have a lot of ideas and changes in mind for this.
I need to get some time to add them.

newbuck 08-22-2008 04:31 PM

How can we make banners be displayed to guests only? Ive tried various codes but can't seem to get it working


All times are GMT. The time now is 01:33 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.01293 seconds
  • Memory Usage 1,818KB
  • 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
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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