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.
Theme Bootstrap : Avatar in the title bar
Tof
✭
Vanilla 2.2
Theme Bootstrap
Serveur de Test : http://88.181.151.128:8080/
Hi all ,
After having to watch the portable version, I would like avatars are in the title bar.
Thanks for your help
Tagged:
0
Comments
Yes, that depends on what theme you are using for mobile...if indeed it is bootstrap,add this to the themehooks file for Bootstrap
public function base_Render_Before($Sender) {
$photo = UserPhoto(Gdn::Session()->User);
$Sender->Menu->AddLink('User', $photo, '/profile/{UserID}/{Username}',array('Garden.SignIn.Allow'), array('class' => 'UserNotifications'));
}
There are other ways to add the link such as in the default.master.tpl in the area where the nav links are. I use mostly php based themes so I will need to look at some old discussions here I remember had to do with this.
You can always search the forum using the key sentence " How to add User Photo and link of user to the main menu using smarty " ... I know there is something in there about how
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Th file themehooks is not exist in bootstrap
We went through that already, if there is no hooks file you make one.
https://vanillaforums.org/discussion/23338/user-photo-link-instead-of-text-on-mobile-theme
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Hello,
Eventually I made vanilla integration testing in wordpress and I would like the avatars are completely in the title bar
Can you explain a bit better ? You want to have the avatar in the menu or in the title? I am not sure what you mean. It helps if you make a picture if what you want. The code I gave you puts the avatar and user link on the menu .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I wish to have the avatar in the title bar
Oh ok , thanks for the image, it is worth a thousand words As soon as I go home later in the day I will figure it out...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Meanwhile try the index photos plugin !
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Ok , I think I got it work like you wanted. Basically just needed to change css to move things over.
I like the way your forum is looking.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌