Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2009, 03:23 PM
DRLOWZ DRLOWZ is offline
 
Join Date: May 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Forum Advertising

Anyone else having trouble with this/.....

My problem Is I want the banners to only show in certain sponsored forums so I create the ad for it to show below navbar , got my html in there.

Active yes

only box I check is the one that says Display this ad if.....

User is browsing forum- xxxxxxxxxxxxxxxxxxxxxxxxxxxx

and then go to forum to check....and nothing..... now if I uncheck all the boxes it will show globally on every page, but I don't want that....

HELP!!
Reply With Quote
  #2  
Old 12-16-2009, 09:09 PM
DRLOWZ DRLOWZ is offline
 
Join Date: May 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man nobody else is having problems?
Reply With Quote
  #3  
Old 01-16-2010, 04:24 AM
bluesideupinc bluesideupinc is offline
 
Join Date: Jun 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I too am having this problem. Even after the 4.0.1 upgrade.
Reply With Quote
  #4  
Old 01-16-2010, 12:00 PM
Imagery Imagery is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup - add one to the list. I can't post an advertisement in a single forum - it simply won't show up. So far:

1. Global (Header 1 & 2)
2. Global (Under Navbar)
3. Global (Footer)
4. Forums (only ALL forums)

I haven't been able to create them for a single forum.
Reply With Quote
  #5  
Old 01-17-2010, 12:44 PM
framer framer is offline
 
Join Date: Aug 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stay tuned...

I did this a couple of days ago and it works perfect; however, I'm not where I can post the code right now but I shall post it tomorow morning.

framer

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

Had to stop by work, It's amazing what you do to keep a job today.

Use the GLOBAL Ad Page

Here's the code:
Code:

<vb:if condition="$GLOBALS[forumid]==X">
<a target="_blank" href="http://www.to_advertiser.com">
<img src="http://www.banner_location.com/vbn/banner_x.gif" width="xxx" height="xxx" border="0" alt="info about banner" align="center">
</a></vb:if>
X = the number of the forumid, fill in the rest with your links, locations and data.

Just add other with different forumid numbers to the file. If you want to show a banner on the main index page use <1

Hope that helps.

framer
Reply With Quote
  #6  
Old 01-19-2010, 06:34 AM
Imagery Imagery is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So help me out just a tiny bit - I post this little bit of code in the banner ad box with the link to my banner? I'm a complete newbie when programming, but if I simply toss this in the box, and I can display the ad in a single forum, I'd be stoked!!

Thank you.

Edit - it almost worked like a charm.

I found that, as written, the banner didn't want to center. I went in and added a <div align="center"> at the beginning, and a </div> just before the </vb:if> tags, and all was well. I'm not sure if that screws anything up, but it seemed to work for me. Now to find a way to place 5 different banners in rotation in that particular forum.
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 04:41 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.16976 seconds
  • Memory Usage 2,209KB
  • 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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete