Coding-Spot

You are not connected. Please login or register

 
 

Getting The User Logged In Now Avatar

Message (Page 1 of 1)


 
Advance Member

Posted on Sun Jun 02, 2013 12:53 pm

 

*
THANKED

refrer to the title
as i mean
i need a Javascript that will be activated for members only
if it a member it will using the USERLINK thing... and then retriving the current user avatar... that's what i mean
so does anyone have any solutions for this?



View user profile



 
Administrator
Administrator

Posted on Mon Jun 03, 2013 4:45 am

 

*
THANKED

Turn on your toolbar first, afterwards, add this to your CSS:
Code:
$(window).load(function(){
    var x=$('#fa_usermenu > img').attr('src');
    $('.fa_proxy').prepend('<span id="fa_proxy"><img src="'+x+'"/><span>');
    });

Now use this tag: (Place them anywhere, and the script will find that tag to display the avatar)
Code:
<span class="fa_proxy"></span>



View user profile http://coding-spot.darkbb.com



 
Advance Member

Posted on Mon Jun 03, 2013 8:14 am

 
and then how can i hide it?



View user profile



 
CS Staff
CS Staff

Posted on Mon Jun 03, 2013 8:18 am

 
hide what ? the toolbar ?
if yes use this css
Code:
#fa_toolbar{display:none !important;}



View user profile http://atlanta.forumid.net/



 
Administrator
Administrator

Posted on Mon Jun 03, 2013 10:33 pm

 

*
THANKED

Use the code given by tommycoo and it should work already, so is this solve now? Happy



View user profile http://coding-spot.darkbb.com



 
Administrator
Administrator

Posted on Sun Jun 16, 2013 1:55 pm

 
Since the question was answered and the codes worked perfectly.
~ Locked and moved



View user profile http://coding-spot.darkbb.com


#7

Sponsored content


 

Posted Today at 2:30 pm

 





Message (Page 1 of 1)

Permissions in this forum:
You cannot reply to topics in this forum

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None