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.

Help editing Guestsense

edited November 2006 in Vanilla 1.0 Help
I am a noob at coding and am trying to edit the Guestsense extension so that it will only tell ppl that they arent logged in and the link to sign up... and not display the adsense because the website I would like to put it on is non profit...

<?php /* Extension Name: Guestsense Extension Url: www.lussumo.com/Add-ons/ Description: Adds Google Adsense at the top of the discussions Version: 0.3 Author: WallPhone, based on existing code by Alexis Bellido Author Url: http://wallphone.com */ function InjectAdsense() { echo '<div align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-5163550033929978"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel ="3348340772"; google_color_border = "FFFFFF"; google_color_bg = "EEEEEE"; google_color_link = "008000"; google_color_text = "000000"; google_color_url = "336600"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div>'; } if ( ($Context->Session->UserID == 0) && (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "post.php", "account.php", "settings.php"))) ){ $NoticeCollector->AddNotice('Please <a href="'.GetUrl($Configuration, 'people.php'). '">sign in</a> or <a href="'. GetUrl($Configuration, 'people.php', '', '', '', '', 'PostBackAction=ApplyForm'). '">apply for membership</a> to remove the ads'); $Context->AddToDelegate('NoticeCollector', 'PostRender', 'InjectAdsense'); } ?>

Comments

This discussion has been closed.