Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Google Adsense add-on for Vanilla 1
This discussion has been closed.
Comments
Removing the if statement works for anyone who's signed in, but as soon as they sign out it brings up an error
Fatal error: Call to a member function on a non-object in /home/glosunit/public_html/extensions/Adsense2/default.php on line 32
Try these lines in place of the IF statement:
$Context->AddToDelegate('DiscussionGrid', 'PreRender', 'InjectAdsense'); $Context->AddToDelegate('CommentGrid', 'PreRender', 'InjectAdsense');
I've realised where I'm getting the error btw, it's when I sign out:
if ( $Context->SelfUrl <> 'people.php' ) { // code goes here }
I'll try adding that tonight and check it out. But I can also take the banner off of the search page, like you suggested. I don't know why I hadn't thought of that
Thanks again!
Scott