Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Session Integration: Code Help

2»

Comments

  • Options
    try this. at the top of your Base_Render_Before function, before $Sender->Head->AddString, add $GDN_User = Gdn::Session()->User;
  • Options
    ithcyithcy New
    edited September 2010
    also you might want to wrap all of those $GDN_User variables in {} like so: var _SKYAUTH = { loginUrl:'http://mysite.com/entry', memberNick:'{$GDN_User->Name}', memberId:'{$GDN_User->UserID}', profileUrl:'', photoUrl:'{$GDN_User->Photo}', }; the way they were in your initial post.
  • Options
    If you could release this as a plugin when you are finished that would be really helpful.
  • Options
    @ithcy: I'm trying it right now - let you know the outcome
    @Davidis: I will ;). With special thanks to ithcy, of course :D
  • Options
    edited September 2010
    @ithcy: It works!!!! I added the code u suggested, and it's working great. On a side-note, adding the {} didn't work for me.
    I'm working on adding some final touches, and then I'll release it as a plugin.
  • Options
    great... glad i could help.
  • Options
    edited September 2010
    It's here!
    http://vanillaforums.org/addon/617/skysa-footer-bar-with-chatannouncementsuser-integrationand-more
    Let me know if there's anything that needs to be changed, especially if you know how to fix it!
Sign In or Register to comment.