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.
Template Tags: User Profile Information
Jaybydesign
New
Hello, I am working on a theme and I want to display some user profile info in the top right corner of my banner including their user name which links to their profile. Their avatar, the number of unread messsages, and the number of bookmarked discussions.
I'm using the smarty default.master.tpl file so I'm not sure if that data is already available or if I have to write a small plugin to pull that data first.
I'm using the smarty default.master.tpl file so I'm not sure if that data is already available or if I have to write a small plugin to pull that data first.
0
Comments
For future reference the theme is found here:
http://vanillaforums.org/addon/vanillaclassic-theme
I assumed it would be {$User.Photo} but I guess that column isn't loaded into the $User object.
The library/smarty.class.php file puts the user info into it with it's own assign method so I just made a small plugin that gets session info and loads it into a UserData variable including profile avatar.
I'll try to release shortly as it may come in handy for theme developers.