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.
how to Display UserPhoto in "Menu bar"
frindman
New
how to Display UserPhoto in "Menu bar"
0
Comments
You can add the user photo via your master template using the Smarty tag
{photo_link}
. You can also use theUserPhoto()
function and pass in the session user object.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Maybe this will help , although it is for mobile theme this can also be applied to desktop theme.
http://vanillaforums.org/discussion/23338/user-photo-link-instead-of-text-on-mobile-theme
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Here is what I did for my own forum. My theme is php based. That means it has a default.master.php file. I included everything from the Authenticator so you can see where I put the code. I also replaced the inbox with an image. In order for this to work, you must also replace/remove the original link of the user from the menu.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Here is a screen shot of my menu where I replaced all the links with images including the user and the inbox with the code above.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/a6953647/public_html/applications/dashboard/views/default.master.php on line 27
@frindman I believe I accidentally corrected your syntax error when I reformatted your post. I added a
;
at the end of line 25 in the above post.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Yea, remember that the urls for those images go to my site you need to either make your own images and add the link there or remove the other links with images.
Don't just copy the whole code over.** Try to understand what you are copying **.
All you need from my code is the user link. I only gave you all that other code so you can see where that link goes.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌