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

edited October 2006 in Vanilla 1.0 Help
Guestsense

Comments

  • hello how is it possible to ad adsens for visitor and member to ? in fact for every body every time
  • It would make no sense to make GUESTsense available to everybody.

    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)

  • ok you must ad this :


    || $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'); } ?>
  • lol wandered
    now the add on "guestsens" is "pureadsens" addon !!!!!!!
  • oh oh I ask to myself if remove
    ($Context->Session->UserID == 0 || $Context->Session->UserID == 1) &&

    could be a easy way to do it
  • laurent: yes, removing that will work.

    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)
  • no wallphone cause then the visitor don't have the add
    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'); }
  • 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
  • I went
    http://www.joemadsamples.com/forum

    just to click on your adds for the fun (true story)
  • 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.
  • Not with GuestSense, but if you create it as a control, or, easier yet, use Nuggets, you can position it anywhere.
  • Many thanks for the help WallPhone, I'll try it out. :)
This discussion has been closed.