vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Footer - Question (https://vborg.vbsupport.ru/showthread.php?t=71135)

School-Help 10-29-2004 03:29 PM

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.

Xenon 10-29-2004 04:12 PM

you'd just need a single condition:

HTML Code:

<if condition="THIS_SCRIPT != 'portal'">
your banner code here
</if>


School-Help 10-29-2004 04:58 PM

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

Xenon 10-29-2004 05:05 PM

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.

Brad 10-29-2004 07:37 PM

Unless he changed the define this is how its done:

HTML Code:

<if condition="THIS_SCRIPT != 'adv_index'">
your banner code here
</if>


School-Help 10-29-2004 07:51 PM

Thanks dude, worked like a charm.

Xenon 10-30-2004 12:20 PM

Brad, our man who knows every script out of mind ;)

Brad 10-30-2004 12:22 PM

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

School-Help 10-30-2004 08:32 PM

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 :cool:


All times are GMT. The time now is 02:36 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.00968 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete