Coding-Spot

You are not connected. Please login or register

 
 

How? (Avatar On The Last Post)?

Message (Page 1 of 1)


 
Advance Member

Posted on Fri Jun 14, 2013 10:19 am

 
Hi How Do I Put Avatar On The Last Post?


Here I Will Tell You My Real Forum http://androidhacker.forumh.net/


Please Help!!!!!!!!!

Thanks I Want Also The Avatar To Be Clickable Thanks ;)



View user profile



 
Administrator
Administrator

Posted on Fri Jun 14, 2013 10:25 am

 
JS Management:
Code:
$(document).on('ready', function() {
    $('.statused .tcr').prepend('<div class="avatar-index"><div>');
    $('.statused .tcr .avatar-index').each(function () {
        var profileUserURL = $(this).parent().children('span').children('strong').children('a').attr('href');
        $(this).html('<a href="' + profileUserURL + '" class="avatar-index-enlace"><img src="http://illiweb.com/fa/invision/pp-blank-thumb.png" alt="No Avatar" /></a>');
        $(this).children('a').load(profileUserURL + ' .module:eq(0) img:eq(0)')
    });
});

CSS:
Code:
.avatar-index { float: left; }
.avatar-index img { width: 40px; height: 40px; padding: 1px; border: 1px solid #DDD; margin: 0 5px; }



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



 
Advance Member

Posted on Fri Jun 14, 2013 10:27 am

 
Thanks It Works :)



View user profile



 
Administrator
Administrator

Posted on Fri Jun 14, 2013 10:30 am

 
~ Locked and moved



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


#5

Sponsored content


 

Posted Today at 11:49 am

 





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