Guest210212002
01-19-2008, 06:27 PM
I don't know why I didn't do this ages ago. Most vBA sites have the nav controls in one of the modules anyway, so the navbar was completely redundant. The front of my site looks 100% cleaner (imo, of course).
http://www.sevenstring.org
Login with guest/guest to remove the adsense.
If anyone wants to do the same while keeping adsense under the navbar for guests, it uses only one conditional. You will need to use it twice. Once like so, to remove the navbar at the beginning and end of your current template:
<if condition="THIS_SCRIPT !== 'adv_index'">
With the /if at the end of your existing template. What that does is basically "If you aren't on your vBA portal, show the navbar".
You'll need your header adsense code in there twice. It's going to be exactly the same, just in two spots. One within the conditional that you just made, and then another after your closing /if to show it on the navbar-free portal, like this:
<if condition="THIS_SCRIPT == 'adv_index'">
(adsense code)
</if>
Which is "If you are on the vBA portal, do the following", which is display your adsense. If anyone wants to do this and runs into any issue just give me a shout. I think it really cleans things up, and was worth sharing. :)
http://www.sevenstring.org
Login with guest/guest to remove the adsense.
If anyone wants to do the same while keeping adsense under the navbar for guests, it uses only one conditional. You will need to use it twice. Once like so, to remove the navbar at the beginning and end of your current template:
<if condition="THIS_SCRIPT !== 'adv_index'">
With the /if at the end of your existing template. What that does is basically "If you aren't on your vBA portal, show the navbar".
You'll need your header adsense code in there twice. It's going to be exactly the same, just in two spots. One within the conditional that you just made, and then another after your closing /if to show it on the navbar-free portal, like this:
<if condition="THIS_SCRIPT == 'adv_index'">
(adsense code)
</if>
Which is "If you are on the vBA portal, do the following", which is display your adsense. If anyone wants to do this and runs into any issue just give me a shout. I think it really cleans things up, and was worth sharing. :)