Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add a banner image to each forum (vb3.6) Details »»
Add a banner image to each forum (vb3.6)
Version: 1.07, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.4 Rating:
Released: 11-27-2006 Last Update: Never Installs: 176
DB Changes Uses Plugins Template Edits
 
No support by the author.

/* -----------------11/28/2005 10:37AM-----------------
[HowTo] Add a banner option image to each forum w/ Link V.1.7
Tested on vBulletin: 3.6.4

Zachariah - http://www.gzhq.net

Quote:
This is an update of my previous hack:
*** Add a banner image to each forum (VB 3.5x)
https://vborg.vbsupport.ru/showthread.php?t=94119
DEMO
- banner for an on-line game clan/guild.

*** Info:
  • 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.

Changelog:
------------
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.

--------------------------------------------------*/

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-29-2006, 05:11 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by computer1 View Post
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
Reply With Quote
  #23  
Old 11-29-2006, 06:07 PM
computer1 computer1 is offline
 
Join Date: Feb 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah View Post
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
Reply With Quote
  #24  
Old 11-29-2006, 06:51 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the hack.
just some feature suggestions..
option to have it auto apply to child forums
option to enable/disable the main banner
Reply With Quote
  #25  
Old 12-01-2006, 05:17 AM
michaelsilvia michaelsilvia is offline
 
Join Date: Jul 2005
Location: South Korea
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 02-06-2007, 02:04 AM
BobbyBig BobbyBig is offline
 
Join Date: Mar 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, just what I was searching for.
Installed.
Reply With Quote
  #27  
Old 02-06-2007, 03:11 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EasyTarget View Post
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

Quote:
Originally Posted by michaelsilvia View Post
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.
Reply With Quote
  #28  
Old 02-27-2007, 08:07 AM
giorgiotave giorgiotave is offline
 
Join Date: Nov 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #29  
Old 03-03-2007, 05:56 AM
raiderlax's Avatar
raiderlax raiderlax is offline
 
Join Date: Sep 2006
Location: Ontario, Canada
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 03-22-2007, 08:57 PM
BobbyBig BobbyBig is offline
 
Join Date: Mar 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #31  
Old 03-22-2007, 09:00 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BobbyBig View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04618 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete