vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   different ads in different subsections (https://vborg.vbsupport.ru/showthread.php?t=205401)

Few 02-15-2009 10:59 PM

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.

colinizballin 02-15-2009 11:26 PM

Quote:

Originally Posted by Ted S (Post 1745392)
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?

Ted S 02-15-2009 11:33 PM

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.

Few 02-15-2009 11:36 PM

Quote:

Originally Posted by Ted S (Post 1745421)
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.

Ted S 02-15-2009 11:36 PM

Quote:

Originally Posted by Few (Post 1745395)
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...

colinizballin 02-15-2009 11:42 PM

Quote:

Originally Posted by Few (Post 1745423)
I tried that exactly, and it did not work.

hmmmmmm

Ted S 02-15-2009 11:43 PM

Quote:

Originally Posted by Few (Post 1745423)
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.

Few 02-16-2009 12:21 AM

Quote:

Originally Posted by Ted S (Post 1745428)
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.

colinizballin 02-16-2009 12:22 AM

Quote:

Originally Posted by Few (Post 1745448)
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.

Ted S 02-16-2009 12:25 AM

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).


All times are GMT. The time now is 01:55 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.01112 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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