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)
THANKS! I love it! I got rid of...
$NoticeCollector->AddNotice('Soutenez nous en cliquant sur nos publicites si celle ci vous interessent.');
and now it's just my google ads like it should be ;)
http://www.joemadsamples.com/forum
Is there any way to have this positioned on the bottom of the default Vanilla theme rather than the top? It tends to class with my Announcement when I have the Announcements Extension turned on.
Comments
- Spam
- Abuse
0 · Insightful Awesome LOL ·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)
- Spam
- Abuse
0 · Insightful Awesome LOL ·|| $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');
}
?>
- Spam
- Abuse
0 · Insightful Awesome LOL ·now the add on "guestsens" is "pureadsens" addon !!!!!!!
- Spam
- Abuse
0 · Insightful Awesome LOL ·($Context->Session->UserID == 0 || $Context->Session->UserID == 1) &&
could be a easy way to do it
- Spam
- Abuse
0 · Insightful Awesome LOL ·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)
- Spam
- Abuse
0 · Insightful Awesome LOL ·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');
}
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·http://www.joemadsamples.com/forum
just to click on your adds for the fun (true story)
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·