vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Google DMCA PROBLEM And Vbulletin (https://vborg.vbsupport.ru/showthread.php?t=259442)

PAKIDIL 02-25-2011 04:00 PM

Google DMCA PROBLEM And Vbulletin
 
Hello,
recently i got an email from google about DMCA . Problem is that i have software category forum where all the members come and share different software by copying download links from rapidshare and others.

i have been notify because i was using google adsense codes in NAV bar and show thread .

My question is there any hack available for google adsense to be use in certain way that we can turn on or off to be appear on those section .

Thanks
waiting for reply

Brandon Sheley 02-25-2011 04:08 PM

the answer to your question is stop allowing or posting stolen items..

BirdOPrey5 02-27-2011 04:50 PM

I have an 'adults only' section on my forum where occasionally topics are discussed that are not allowed with Ad Sense, so I use a simple conditional to not show the ad in that specific forum.

Assuming you have some forums where you meet Google Ad Sense terms and a few where you don't you can get away with a conditional- but bottom line if you run a warez site or something they aren't going to allow you to have adsense anywhere.

My conditional is:
Code:

<if condition="THIS_SCRIPT != 'adv_index' AND THIS_SCRIPT != 'register' AND $GLOBALS[forumid] != 6">
AD CODE HERE
</if>

My adult forum is id 6... I also I don't show ads on register.php and my vb advanced homepage which are the other two parts of the conditional.

For more info you can see an article on conditionals in the VB 3.8 articles section.

PAKIDIL 02-28-2011 01:23 PM

thanks i try this code in ad location ad_showthread_firstpost

i am getting this error

Parse error: syntax error, unexpected ',' in /home/forum/public_html/includes/adminfunctions_template.php(3772) : eval()'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

can you tell me the solution please.

Lynne 02-28-2011 02:14 PM

*Exactly* what did you enter into the ad_showthread_firstpost template? Please use the code tags when you post what you have.

PAKIDIL 02-28-2011 02:29 PM

i paste this
Code:

<if condition="THIS_SCRIPT != 'adv_index' AND THIS_SCRIPT != 'register' AND $GLOBALS[forumid] != 6">
my google ad code here
</if>


Lynne 02-28-2011 04:12 PM

There is no comma in there, so I would almost guess the error is from your ad code, not the condition. Do you use vbadvanced? If not, you really shouldn't have that part added into the condition.

BirdOPrey5 02-28-2011 05:01 PM

Exactly what version of vBulletin are you using?

I gave that conditional as an example, I seriously doubt it will be helpful to you exactly as is. I see you also posted in the conditional article so it's good you found that, but basically you need to alter the conditional to your needs.

But from what you posted there should be no error so it's either something in your ad code or some mod causing a problem elsewhere.

The conditional without vbAdvanced would be:

Code:

<if condition="THIS_SCRIPT != 'register' AND $GLOBALS[forumid] != 6">
my google ad code here
</if>

But that wouldn't be causing the error you posted.

PAKIDIL 02-28-2011 08:24 PM

i am using simple vb version 3.7 the last code you gave

Code:

<if condition="THIS_SCRIPT != 'register' AND $GLOBALS[forumid] != 6">
my google ad code here
</if>

i am using simple vbulletin forum 3.7 . its working now but is there any way i can put this code in showthread template instead ads_showfirst page .

Lynne 02-28-2011 09:15 PM

You can put that conditional into the SHOWTHREAD template instead. You probably need to replace $GLOBALS[forumid] with $threadinfo[forumid] though.


All times are GMT. The time now is 04:21 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.01076 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete