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)

Zachariah 11-29-2006 05:11 PM

Quote:

Originally Posted by computer1 (Post 1128140)
Thx for this hack this I like :)

but howe can I put in more and one banners let say if I have 8 banners
some I wont to put in howe shuld I do that ????
so all the banners rotate

https://vborg.vbsupport.ru/showpost....47&postcount=3

computer1 11-29-2006 06:07 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

plz help me I?m not so familay whit this I wont to put this code to the top of my first page on the board I?m not shure if that is to the header page howe can I do that so all the banners display whit the loggo my template is tangerina

EasyTarget 11-29-2006 06:51 PM

thanks for the hack.
just some feature suggestions..
option to have it auto apply to child forums
option to enable/disable the main banner

michaelsilvia 12-01-2006 05:17 AM

This is a great hack!

Is there a way to do this with headers? I would like to have my header changed based on the forum ID. I am working with vb.com, but they are simply showing me conditionals, but that takes up a LOT of space in the header.

Mike

BobbyBig 02-06-2007 02:04 AM

Great hack, just what I was searching for.
Installed.

Zachariah 02-06-2007 03:11 AM

Quote:

Originally Posted by EasyTarget (Post 1128222)
thanks for the hack.
just some feature suggestions..
option to have it auto apply to child forums
option to enable/disable the main banner

Sexy :D

Quote:

Originally Posted by michaelsilvia (Post 1129217)
This is a great hack!

Is there a way to do this with headers? I would like to have my header changed based on the forum ID. I am working with vb.com, but they are simply showing me conditionals, but that takes up a LOT of space in the header.

Mike

You can use this in the header template with a few changes it can show a default image if none is filled out and if on any other VB page that is not a forum.

giorgiotave 02-27-2007 08:07 AM

Hello Zachariah,

this modification work very great :)

i have one question: if i want use more Add Banner in my Forum, how can make?

For example, i want put different 4 banner in Header, in Footer and another place.

I need to install 3 different Add Banner...

You can suggestion for me?

raiderlax 03-03-2007 05:56 AM

For some reason the google adsense code is not showing up here, but it shows up on the other forums.

Here: http://talkfitness.org/forumdisplay.php?f=2

BobbyBig 03-22-2007 08:57 PM

Zachariah this is one of the best mods i have seen around.
I really like the way we can set it per Forum.

I really would like to see more options for a forum:

- in the Forum there will be also advertisement between different Threads
- in the Threads of this Forum will be advertisement between different Postings

I really would love you for this :)

regards

Zachariah 03-22-2007 09:00 PM

Quote:

Originally Posted by BobbyBig (Post 1209894)
Zachariah this is one of the best mods i have seen around.
I really like the way we can set it per Forum.

I really would like to see more options for a forum:

- in the Forum there will be also advertisement between different Threads
- in the Threads of this Forum will be advertisement between different Postings

I really would love you for this :)

regards

Good Idea :D


All times are GMT. The time now is 02:08 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.01219 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)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
  • (10)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