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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2004, 03:29 PM
School-Help School-Help is offline
 
Join Date: Oct 2004
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Footer - Question

I would like to show adds in every page of my forum accept my portal page as this has a module i added for adds . Is there anyway i could stop the sponsor box showing on the portal page footer. But showing in everyother footer?

Thanks for anyones help.
Reply With Quote
  #2  
Old 10-29-2004, 04:12 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you'd just need a single condition:

HTML Code:
<if condition="THIS_SCRIPT != 'portal'">
your banner code here
</if>
Reply With Quote
  #3  
Old 10-29-2004, 04:58 PM
School-Help School-Help is offline
 
Join Date: Oct 2004
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried using the code below and it did not work , i am such a newbie to coding i know what an "if" does ( what it says on the tin) . I am using the portal vba_cmps using the template prefix adv_portal_filename . I don't want to it to show as said before on the homepage but on all the others .

Is this the exact code i would require? If not could you please copy it into here.... i apologise for being a donut and if the number 0 stands for no brain im a -.

Thanks
Reply With Quote
  #4  
Old 10-29-2004, 05:05 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well that's exactly the code.

if it doesn't work, then the portal does not use the correct vb standarts, or it uses a different string for THIS_SCRIPT

as i don't know the portal software itself, i cannot help you more, you might want to ask the author or look into the portal's php code to see what THIS_SCRIPT is defined as.
Reply With Quote
  #5  
Old 10-29-2004, 07:37 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless he changed the define this is how its done:

HTML Code:
<if condition="THIS_SCRIPT != 'adv_index'">
your banner code here
</if>
Reply With Quote
  #6  
Old 10-29-2004, 07:51 PM
School-Help School-Help is offline
 
Join Date: Oct 2004
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks dude, worked like a charm.
Reply With Quote
  #7  
Old 10-30-2004, 12:20 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brad, our man who knows every script out of mind
Reply With Quote
  #8  
Old 10-30-2004, 12:22 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
Brad, our man who knows every script out of mind
Well I just had it laying around on my hard drive with tons of other hacks I will never install (this dose not mean they are bad hacks, I just download them to see if I can learn anything from em ).

But we'll go with what you said, makes me seem smarter then I am, which I like
Reply With Quote
  #9  
Old 10-30-2004, 08:32 PM
School-Help School-Help is offline
 
Join Date: Oct 2004
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Quote:
Originally Posted by Xenon
Brad, our man who knows every script out of mind


Well I just had it laying around on my hard drive with tons of other hacks I will never install (this dose not mean they are bad hacks, I just download them to see if I can learn anything from em ).

But we'll go with what you said, makes me seem smarter then I am, which I like
Who said your smart , he just said you know alot of scripts :nervous: . Ha im only kidding smarty pants
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 11:33 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.06096 seconds
  • Memory Usage 2,240KB
  • 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
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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