Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 05-01-2006, 01:30 PM
Fawlty Adder Fawlty Adder is offline
 
Join Date: Apr 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I customise which banners to display on different forums

COuld someone please give me a hack/code that would let me

1. Display different banners on the Navbar for each forum..

i.e. if My VBsite has 5 forums, say A,B,C,D,E then I want forum A's Navbar to display banner 1 , forum B's Navbar to display banner 2 and so on

2. How do I display different banners on the top and bottom of each forum.. i.e. similar to point 1 except the location of the banner is the top or bottom of the forum

lastly how do I actually identify the forum I'm looking for within all the code.. will I be able to find the forum by its name? eg forum A ...or does VB assign it's own referencing to the forums on my site?

please help! I'm a complete newbie to VB and am finding all this code etc DEAD HARD! ... isn't there an Idiot's Guide book on this :cross-eyed:

thanks

Reply With Quote
  #2  
Old 05-01-2006, 02:15 PM
Xenium's Avatar
Xenium Xenium is offline
 
Join Date: Apr 2006
Location: Manchester - UK
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simply put if and elseif clauses in forumdisplay template.

Eg:-
PHP Code:
<if condition="$foruminfo[forumid] == XX ">
display certain banner image
</ if> 
replace XX with the forum id.
Reply With Quote
  #3  
Old 08-06-2006, 08:03 PM
patrickstar patrickstar is offline
 
Join Date: May 2006
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenium
Simply put if and elseif clauses in forumdisplay template.

Eg:-
PHP Code:
<if condition="$foruminfo[forumid] == XX ">
display certain banner image
</ if> 
replace XX with the forum id.
several questions, that is all the code i need? and i take it i replace: "display certain banner image" with my banner image path?

i can place that anywhere in the template? and where will the banner show up. right now my google ad banner is at the top.

www.fitnessandbeyond.net

i would like to place a different banner for four forums.

thanks for any help.
Reply With Quote
  #4  
Old 08-06-2006, 08:13 PM
Staxed's Avatar
Staxed Staxed is offline
 
Join Date: Jun 2006
Location: Fayetteville, NC
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so you are saying you want 4 different forums to have a specific banner in the navbar, and any other forums should have the google adsense?

if so...either post your navbar template or pm it to me and i'll take a look at it...
Reply With Quote
  #5  
Old 08-06-2006, 08:54 PM
lightwave lightwave is offline
 
Join Date: Sep 2004
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want different banners depending on which forum your users are in: just add this code:

<img src="http://www.site.com/$foruminfo[forumid].jpg">

Just replace the url with the forum id.

For exmaple, save banner for forum id 3 to 3.jpg or whatever you want.
Reply With Quote
  #6  
Old 08-08-2006, 03:35 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<img src="/forum/images/banners/$foruminfo[forumid].jpg" alt="" />
Reply With Quote
  #7  
Old 08-08-2006, 06:20 PM
patrickstar patrickstar is offline
 
Join Date: May 2006
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Irisfire
so you are saying you want 4 different forums to have a specific banner in the navbar, and any other forums should have the google adsense?

if so...either post your navbar template or pm it to me and i'll take a look at it...
yes i pm'd you my navbar template, i appreciate the help.
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:58 AM.


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.05779 seconds
  • Memory Usage 2,214KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete