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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2007, 09:15 PM
feverhost feverhost is offline
 
Join Date: Jan 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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...
Reply With Quote
  #2  
Old 04-09-2007, 09:18 PM
zardos zardos is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<if condition="$forum[forumid] != X"></if>
Reply With Quote
  #3  
Old 04-09-2007, 09:34 PM
feverhost feverhost is offline
 
Join Date: Jan 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 04-09-2007, 09:37 PM
zardos zardos is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nop,

<if condition="$forum[forumid] != 1094">This is the add for 1094</if>
Reply With Quote
  #5  
Old 04-09-2007, 09:39 PM
feverhost feverhost is offline
 
Join Date: Jan 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Where do you suggest that I put this so it will be right under the navbar?
Reply With Quote
  #6  
Old 04-09-2007, 09:44 PM
zardos zardos is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do a template search on navbar and then do some testing
Reply With Quote
  #7  
Old 04-10-2007, 02:29 AM
feverhost feverhost is offline
 
Join Date: Jan 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 04-10-2007, 10:02 AM
zardos zardos is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #9  
Old 04-10-2007, 02:55 PM
feverhost feverhost is offline
 
Join Date: Jan 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 04-10-2007, 03:11 PM
zardos zardos is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 12:19 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.04298 seconds
  • Memory Usage 2,243KB
  • 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
  • (1)bbcode_code
  • (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