Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2009, 08:41 PM
DJDynasty239 DJDynasty239 is offline
 
Join Date: Jul 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Quick banner question

Ok, I am going to try and be specific as possible so there's no confusion.

I have a bunch of different sections on my board. I'd like to have a different banner for each section when you click in it.

Example would be a section named "Smackdown vs Raw 09"...I'd like to have a banner above the threads inside that section...NOT replacing anything, just adding it above the threads inside that specific section.

I'd like to do it with each section eventually once I have done all the graphics, I am just unsure where the code is, and what I am supposed to put.

Thanks!!
Reply With Quote
  #2  
Old 02-14-2009, 05:12 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you searched for a solution? Because I know this question was asked very recently. You can just edit the forumdisplay template with conditionals:
Code:
<if condition="$forum['forumid'] == X"><img src="URL" border="0" alt="$forum[title_clean]" /></if>
Reply With Quote
  #3  
Old 02-23-2009, 12:57 AM
DJDynasty239 DJDynasty239 is offline
 
Join Date: Jul 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Have you searched for a solution? Because I know this question was asked very recently. You can just edit the forumdisplay template with conditionals:
Code:
<if condition="$forum['forumid'] == X"><img src="URL" border="0" alt="$forum[title_clean]" /></if>
I change the "X" to the forum number (example being 28*?

Also, can I put this anywhere in the template or does it need to be in a certain area?
Reply With Quote
  #4  
Old 02-24-2009, 04:50 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DJDynasty239 View Post
I change the "X" to the forum number (example being 28*?
Yes
Quote:
Originally Posted by DJDynasty239 View Post
Also, can I put this anywhere in the template or does it need to be in a certain area?
Anywhere in that template.
Reply With Quote
  #5  
Old 02-25-2009, 01:08 AM
DJDynasty239 DJDynasty239 is offline
 
Join Date: Jul 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, I got that far now, my only dilema is that the banners appear in every forum....so I have like 16 banners to scroll through before I can get to my threads inside the forum.

I just need the one specific one made for each designated sectioin to be placed there
Reply With Quote
  #6  
Old 02-25-2009, 05:48 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And the code you are using is?
Reply With Quote
  #7  
Old 02-26-2009, 02:51 AM
DJDynasty239 DJDynasty239 is offline
 
Join Date: Jul 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="$forum['forumid']=28"><img src="http://www.thewrestlingsanctuary.com/lowm.png" border="1" alt="$forum[title_clean]" /></if>
That's what I have...also like I said, I would like to be able to have each individual forum have their own specific banner
Reply With Quote
  #8  
Old 02-26-2009, 05:37 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="$forum['forumid'] == 28"><img src="http://www.thewrestlingsanctuary.com/lowm.png" border="1" alt="$forum[title_clean]" /></if>
One = sign in PHP means assign the thing on the right to the left. == means to compare, which is what you want.

Just add multiple instances of this code (one under another) to use multiple banners.
Reply With Quote
  #9  
Old 02-26-2009, 08:57 PM
DJDynasty239 DJDynasty239 is offline
 
Join Date: Jul 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="$forum['forumid']=28"><img src="http://www.thewrestlingsanctuary.com/lowm.png" border="1" alt="$forum[title_clean]" /></if>
So if I am following correctly, I would want it like for each individual banner with "28" being the variable?
Reply With Quote
  #10  
Old 02-27-2009, 08:08 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You posted the exact same thing as last time - no, the code you posted is wrong. Use the example I gave you in post #8 and just change the image path and "28". Do not change anything else.
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 02:14 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.04326 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
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
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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