PDA

View Full Version : No adsence on Hidden Forums?


FReeSTER
07-27-2011, 07:16 PM
Hello guys, I will like to add google adsence to the whole forum except the hidden forums I have for un-register users. How can I make those hidden forums to be completely HIDDEN for spiders and to NOT show any advertisement?

Adsence are a bit pain in the a$$ since they dont allow few stuff according to their rules. So I want to totally disable ads on those forums I choose and also making those forums hidden 100% to spiders ect.....

any ideas?

FReeSTER
07-31-2011, 10:08 PM
:Bump:

Anyone?

kh99
08-01-2011, 02:17 PM
I don't know a lot about spiders, but I would think if your hidden forums aren't available to guests then they are hidden from spiders.

As far as ads, the only thing I can think of is to find the template(s) with the ad code and enclose them in a conditional that checks the forum ids, like

<vb:if condition="!in_array($foruminfo['forumid'], 1, 2, 3)>
// code hidden from forums 1, 2, and 3
</vb:if>

FReeSTER
08-01-2011, 02:19 PM
I don't know a lot about spiders, but I would think if your hidden forums aren't availabel to guests then they are hidden from spiders.

As far as ads, the only thing I can think of is to find the template(s) with the ad code and enclose them in a conditional that checks the forum ids, like

<vb:if condition="!in_array($foruminfo['forumid'], 1, 2, 3>
// code hidden from forums 1, 2, and 3
</vb:if>

nice mate, I tried it and it seen to work perfectly