Log in

View Full Version : Footer - Question


School-Help
10-29-2004, 03:29 PM
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:

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


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