Coding-Spot

You are not connected. Please login or register

 
 
 

Getting The User Logged In Now Avatar

Message (Page 1 of 1)

#1

Nathan Adhitya

avatar
 
Advance Member

Posted June 2nd 2013, 7: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?





#2

Mark

Mark
 
Administrator
Administrator

Posted June 3rd 2013, 11: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>



https://coding-spot.darkbb.com


#3

Nathan Adhitya

avatar
 
Advance Member

Posted June 3rd 2013, 3:14 pm

 
and then how can i hide it?





#4

tommycoo

tommycoo
 
CS Staff
CS Staff

Posted June 3rd 2013, 3:18 pm

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



http://atlanta.forumid.net/


#5

Mark

Mark
 
Administrator
Administrator

Posted June 4th 2013, 5:33 am

 

*
THANKED

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



https://coding-spot.darkbb.com


#6

Mark

Mark
 
Administrator
Administrator

Posted June 16th 2013, 8:55 pm

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



https://coding-spot.darkbb.com


#7

Sponsored content


 

Posted

 





Message (Page 1 of 1)

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

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

Users browsing this forum: None