The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
the answer to your question is stop allowing or posting stolen items..
|
#3
|
||||
|
||||
![]()
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> For more info you can see an article on conditionals in the VB 3.8 articles section. |
#4
|
|||
|
|||
![]()
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. |
#5
|
||||
|
||||
![]()
*Exactly* what did you enter into the ad_showthread_firstpost template? Please use the code tags when you post what you have.
|
#6
|
|||
|
|||
![]()
i paste this
Code:
<if condition="THIS_SCRIPT != 'adv_index' AND THIS_SCRIPT != 'register' AND $GLOBALS[forumid] != 6"> my google ad code here </if> |
#7
|
||||
|
||||
![]()
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.
|
#8
|
||||
|
||||
![]()
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> |
#9
|
|||
|
|||
![]()
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> |
#10
|
||||
|
||||
![]()
You can put that conditional into the SHOWTHREAD template instead. You probably need to replace $GLOBALS[forumid] with $threadinfo[forumid] though.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|