Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 02-15-2009, 10:59 PM
Few Few is offline
 
Join Date: Feb 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What page should I be editing? The FORUMDISPLAY in the template?

--------------- Added [DATE]1234746303[/DATE] at [TIME]1234746303[/TIME] ---------------

Code:
<!-- / forum rules & forum jump -->

<if condition="$forum['24'] == X"><img src="http://x3o-gaming.com/themes/bluemarine/images/x3ologo.gif">
</if>


$footer
That is what we have it as, and it does not show.
Reply With Quote
  #12  
Old 02-15-2009, 11:26 PM
colinizballin colinizballin is offline
 
Join Date: Feb 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S View Post
Have you changed the forum id to your forum IDs properly? Are you editing the same page you're looking at?
Yes, I believe all this is correct, I think I'm messing something up with the ad's code.

Is there something wrong with above user's post in the ad code?
Reply With Quote
  #13  
Old 02-15-2009, 11:33 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes there is something wrong with it: X is not a forum id.

Code:
<if condition="$forum['forumid'] == 24">
<img src="http://x3o-gaming.com/themes/bluemarine/images/x3ologo.gif">
</if>
Would be the correct code to add to the FORUMDISPLAY template for forum 24.
Reply With Quote
  #14  
Old 02-15-2009, 11:36 PM
Few Few is offline
 
Join Date: Feb 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S View Post
Yes there is something wrong with it: X is not a forum id.

Code:
<if condition="$forum['forumid'] == 24">
<img src="http://x3o-gaming.com/themes/bluemarine/images/x3ologo.gif">
</if>
Would be the correct code to add to the FORUMDISPLAY template for forum 24.
I tried that exactly, and it did not work.
Reply With Quote
  #15  
Old 02-15-2009, 11:36 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Few View Post
What page should I be editing? The FORUMDISPLAY in the template?
The code is wrong (see my previous post). As far as what page to edit again, that depends on what page you want the ads on. You need to edit the page you want it for... it's really just that simple. Forumdisplay displays forum contents, showthread the thread page, etc...
Reply With Quote
  #16  
Old 02-15-2009, 11:42 PM
colinizballin colinizballin is offline
 
Join Date: Feb 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Few View Post
I tried that exactly, and it did not work.
hmmmmmm
Reply With Quote
  #17  
Old 02-15-2009, 11:43 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Few View Post
I tried that exactly, and it did not work.
It didn't work is a broad statement... Are you sure you're looking at the right page in the right area in the right forum?

Try removing the condition and just adding the banner code to see if that appears at all so you know if the ad is the issue or the conditional.
Reply With Quote
  #18  
Old 02-16-2009, 12:21 AM
Few Few is offline
 
Join Date: Feb 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S View Post
It didn't work is a broad statement... Are you sure you're looking at the right page in the right area in the right forum?

Try removing the condition and just adding the banner code to see if that appears at all so you know if the ad is the issue or the conditional.

When I just add it without the condition, on every threadsection it appears. So it is a problem with the condition somehow.
Reply With Quote
  #19  
Old 02-16-2009, 12:22 AM
colinizballin colinizballin is offline
 
Join Date: Feb 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Few View Post
When I just add it without the condition, on every threadsection it appears. So it is a problem with the condition somehow.
I found out the same thing.
Reply With Quote
  #20  
Old 02-16-2009, 12:25 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoops.

For the FORUMDISPLAY template you'll need to use the variable $foruminfo[forumid] instead of $forum[forumid] (different pages store it in a different variable).
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 09:15 AM.


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.06786 seconds
  • Memory Usage 2,257KB
  • 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
  • (3)bbcode_code
  • (7)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
  • (2)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete