Coding-Spot

You are not connected. Please login or register

 
 
 

How? (Avatar On The Last Post)?

Message (Page 1 of 1)

#1

refresh101

refresh101
 
Advance Member

Posted June 14th 2013, 5:19 pm

 
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 ;)





#2

Mark

Mark
 
Administrator
Administrator

Posted June 14th 2013, 5:25 pm

 
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://2img.net/i/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; }



https://coding-spot.darkbb.com


#3

refresh101

refresh101
 
Advance Member

Posted June 14th 2013, 5:27 pm

 
Thanks It Works :)





#4

Mark

Mark
 
Administrator
Administrator

Posted June 14th 2013, 5:30 pm

 
~ Locked and moved



https://coding-spot.darkbb.com


#5

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