vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Text/Banner Ads only in specific categories (https://vborg.vbsupport.ru/showthread.php?t=144439)

feverhost 04-09-2007 09:15 PM

Text/Banner Ads only in specific categories
 
I've been looking through the Mods section of the website, which i've downloaded and installed a good amount.. awesome stuff. But I haven't found something that would be very useful for one of my vbulletin forums.

What i'm looking for is a way to setup TEXT/Banner Ads in specific forums only. I run an Informational City Website that is setup as each state is a category. I want to add in "City Websites" that I have created right under the navigation bar.

So North Carolina would have links to: Raleigh, Cary, Chapel Hill

California: San Diego, Los Angeles

Texas: Houston, Dallas, San Antonio

etc...

Could someone help me out and assist me on what I need to do, to create this? I have limited php skills...

zardos 04-09-2007 09:18 PM

<if condition="$forum[forumid] != X"></if>

feverhost 04-09-2007 09:34 PM

X would be the Banner/Text Ad correct? As in

<if condition="$forum[1094] != This is the relocation add for 1094"></if>

<if condition="$forum[1095] != This is the relocation add for 1095"></if>

correct?

zardos 04-09-2007 09:37 PM

nop,

<if condition="$forum[forumid] != 1094">This is the add for 1094</if>

feverhost 04-09-2007 09:39 PM

Ah.... I see now.. awesome....

Where do you suggest that I put this so it will be right under the navbar?

zardos 04-09-2007 09:44 PM

Do a template search on navbar and then do some testing ;)

feverhost 04-10-2007 02:29 AM

Code:

<CENTER>
<if condition="!$show[member]">MESSAGE FOR GUESTS ONLY</if>
</CENTER>


<CENTER>
<if condition="$forum[forumid] != 63">
<div style="padding:1em; text-align: center;">
<B><I>Testing; please ignore</I></B>
</div>
</if>
</CENTER>

The GUESTS ONLY code works fine, but the Forum code is showing on all forums not just 63. Any ideas?

zardos 04-10-2007 10:02 AM

hehe, sorry dude :) By bad :P this is the code!

<CENTER>
<if condition="$forum[forumid] == 63">
<div style="padding:1em; text-align: center;">
<B><I>Testing; please ignore</I></B>
</div>
</if>
</CENTER>

feverhost 04-10-2007 02:55 PM

I added in the code, but the strange thing now is it won't show up at all... even in the forum 63

http://www.website.com/forum/forumdisplay.php?f=63

zardos 04-10-2007 03:11 PM

If u use the first code i posted it will display in every forum expat the one specified , if u use the other one it will only show up in the one you specified.

//Robin


All times are GMT. The time now is 09:14 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.01176 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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