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.
Guestsense
Guestsense
0
This discussion has been closed.
Comments
Google Adsense does what you want, unfortunately it seems to be missing from the add-on page?
Posted: Tuesday, 13 March 2007 at 1:59PM (AEDT)
|| $Context->Session->UserID == 1
||
mean "and"
UserID == 1
mean "connected people"
don't forget to chance the message
$NoticeCollector->AddNotice('here type your message');
if ( ($Context->Session->UserID == 0 || $Context->Session->UserID == 1) && (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "post.php", "account.php", "settings.php"))) ){ $NoticeCollector->AddNotice('here type your message'); $Context->AddToDelegate('NoticeCollector', 'PostRender', 'InjectAdsense'); } ?>
now the add on "guestsens" is "pureadsens" addon !!!!!!!
($Context->Session->UserID == 0 || $Context->Session->UserID == 1) &&
could be a easy way to do it
Some clarification: || means or, && means and, ($Context->Session-UserID == 1) means the first user account--if you want something to happen when anybody is signed on, use ($Context->Session->UserID > 0)
then it become a non guest adsens add on
the everybody wan't to give me money code is :
if ( (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "post.php", "account.php", "settings.php"))) ){ $NoticeCollector->AddNotice('Soutenez nous en cliquant sur nos publicites si celle ci vous interessent.'); $Context->AddToDelegate('NoticeCollector', 'PostRender', 'InjectAdsense'); }
http://www.joemadsamples.com/forum
just to click on your adds for the fun (true story)