The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show Google Adsense only on pages that guests can view
I've been trying to figure out how to do this on my own, but I thought I'd post it here to see if anyone has any ideas.
I've seen posts/hacks that explain how to not have Adsense appear when a guest can't view the thread, but I have Adsense appear on every page. Is there any "easy" way to check if a guest has permission to view a page? |
#2
|
|||
|
|||
No one has any ideas?
|
#3
|
||||
|
||||
Does it matter if it is included on pages that guests cannot view?
(Except that Goolge most likely will display PSAs) |
#4
|
|||
|
|||
Yes it's against their Terms of Service
|
#5
|
|||
|
|||
Yah, and I'm thinking it may have adverse effects on the Adsense bot when it keeps getting the same content for a bunch of different URLs.
|
#6
|
|||
|
|||
Was there an answer to this? I was hoping to create a subscription based system where if they were subscribed, no ads would be displayed so they can purchase subscription to have an ad-free forum. Anything of the sort come about yet?
|
#7
|
|||
|
|||
Quote:
PHP Code:
You can further it by using: PHP Code:
|
#8
|
||||
|
||||
I have an additional question:
I've put my adsense code at the end of the navbar template and looks like this: PHP Code:
Now I also have custom pages where I DO NOT want to show the adsense ads. How can I change the IF condition to work like "if the current page is blabla.php, then do not show the adsense code" ? Any help much appreciated! |
#9
|
|||
|
|||
You could prolly change the conditional to something like this:
PHP Code:
For more than one page you can keep adding && THIS_SCRIPT != 'page_name' to that conditional. Thats how I would do it, but maybe someone else has a better way. Derek |
#10
|
||||
|
||||
I wrote a mod for showthread in 3.0 that kept them off of private forums. I haven't ported it up, but I need to. That in combination with the THIS_SCRIPT conditionals should do what you want.
Amy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|