Avatar before menu logout button
5 posters
Page 1 of 1
Avatar before menu logout button
Hello. Is there any way i can add the avatar of each user before the word Logout [Guest] on the mainmenu of my forum?
To add the avatar to the welcome part on fm toolbar i used this in javascript:
To add the avatar to the welcome part on fm toolbar i used this in javascript:
- Code:
$(function () {
$(window).load(function () {
var av = $('#fa_usermenu img:eq(0)').attr('src');
$('#fa_welcome').prepend('<img src="' + av + '" class="toolbar_avatar" />');
});
});
- Code:
.toolbar_avatar {
height: 25px;
width: 25px;
margin-right: 3px;
position: relative;
top: -1px;
}
Re: Avatar before menu logout button
This is the part of the CSS - margin-right: 3px; - would move the avatar. Try negative numbers.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Avatar before menu logout button
Hello Marios94 ,
Just add the #logout ID to where we prepend the avatar :
Just add the #logout ID to where we prepend the avatar :
- Code:
$(function () {
$(window).load(function () {
var av = $('#fa_usermenu img:eq(0)').attr('src');
$('#fa_welcome, #logout').prepend('<img src="' + av + '" class="toolbar_avatar" />');
});
});
Re: Avatar before menu logout button
He used this code:[SS] Illuminati wrote:Just a question why did you use my name lol.
- Code:
{USERLINK}
@Marios94: Is the problem solved?
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Re: Avatar before menu logout button
Ange its not working. It still appears on the welcome part.. i want it to go on the navbar logout.
Similar topics
» Create links on my menu for register/login/logout
» Logout Button
» My logout button has disappeared!
» How to create a menu button like the search button?
» Avatar outside the fa-menu or welcome
» Logout Button
» My logout button has disappeared!
» How to create a menu button like the search button?
» Avatar outside the fa-menu or welcome
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum