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.
@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.
Comments
$GDN_User = Gdn::Session()->User;
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.@Davidis: I will . With special thanks to ithcy, of course
I'm working on adding some final touches, and then I'll release it as a plugin.
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!