![]() |
Conditional <div>
I'm wading into deeper waters here for me, so try to be patient.
I have a <div> that contains an ad that I only want to run on tags.php, and not run on search.php. The problem for me now is that both tags.php and search.php use the template search_resultlist, and the <div> is now part of that template. How can I turn that <div> off in search.php? If someone could write out the code snippet and explain each part so I learn something, that would be great. Thanx |
Try this...
HTML Code:
<vb:if condition="THIS_SCRIPT == 'tags'"> OR, if you want to show it on ALL pages EXCEPT for search.php, try HTML Code:
<vb:if condition="THIS_SCRIPT != 'search'"> |
<span style="text-decoration: line-through">Thank you, but that first method works only partially. It keeps the <div> off search.php and shows the <div> on tags.php but it stops the ad code from running within the <div>. I can see the <div> because I set a contrasting background color, but the ads do not generate.
Is there a different way that won't stop the ad code from executing?</span> Never mind, I guess it took a while for the change to take effect, ads are back on. Thanks! |
All times are GMT. The time now is 01:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|