vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Google adult violation (https://vborg.vbsupport.ru/showthread.php?t=191078)

bugzy 09-16-2008 07:39 PM

Google adult violation
 
I got a notice that google adsense cant not be on web pages with adult content.

My web forum for automotives, but once in while people post some pictures or something that has some adult content. I have Google ads pretty much on all the pages.

Is there anyway to control that?

Quarterbore 09-16-2008 07:46 PM

Quote:

Originally Posted by bugzy (Post 1623599)
I got a notice that google adsense cant not be on web pages with adult content.

My web forum for automotives, but once in while people post some pictures or something that has some adult content. I have Google ads pretty much on all the pages.

Is there anyway to control that?

I created a private forum for my members where they can play and post that stuff. Then, I set the permissions so Adsense can not see it. Now, if you have your adsense in the header, footer, or side bar, then you are going to need some type of hack to determine if you are in the adult forum if you want adsense to NOT be active in these forums, posts, and threads.

The issue is, even if they can't come onto the page to spider it, the see the URL and if you use vBSEO or something like it then the URL says "Oh No, my Grandma caught me ..." or worse :eek:

So, it will require some custom code from you to really address your issue.

redspider 09-17-2008 02:11 AM

try this :
make sure those kind of post goes to a forum section of your choice
let say you have 2 of those section with adult content then you can use something like this .
Code:

<if condition="!in_array($foruminfo[forumid], array(XX,XX))">
google ads code here

</if>

this will make it that wont show in forums you set .

replaces XX with forumid .

hope this help you.
and if does help you pay it forward help someone when you can.


All times are GMT. The time now is 10:27 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
  • Page Generation 0.00984 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete