The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi guys,
I have AdSense on my navbar template. I'm looking for a conditional to prevent AdSense from being displayed on the error page that you get when someone attempts to access to a deleted post. When you're on a deleted post the page is blank (no content) but only the following line of code: Quote:
Thank you! |
#2
|
||||
|
||||
![]()
Is the url always postings.php? If so, you can use THIS_SCRIPT in the condition and not show it if THIS_SCRIPT == 'postings' Or, if it's always the showpost.php page, do the same but for THIS_SCRIPT == 'showpost'
|
#3
|
|||
|
|||
![]()
Thanks, it was on showpost.php pages so this one worked like a charm to prevent displaying ads on those pages: THIS_SCRIPT != 'showpost'
However it prevents ads from being displayed on all showpost.php pages even those that actually have content. Is there any easy way to prevent ads from being displayed only when the content has been remove i.e. when the system display the following error message: Quote:
|
#4
|
||||
|
||||
![]()
Perhaps add into your condition something regarding whether the postid exists?:
AND (!$postinfo['postid']) (I'm not sure what template this is in, so you may need to try !$post['postid'] or !$GLOBALS['postid'] instead) |
#5
|
|||
|
|||
![]()
I'm interested in this script since adsense ban account if ads are shown on error pages, can anyone help me?
|
#6
|
||||
|
||||
![]()
Maybe a condition if($post[postcount] == 0)
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|