Coding-Spot

You are not connected. Please login or register

 
 

Last Post avatar?

Message (Page 1 of 1)


 
Advance Member

Posted on Sat Jun 01, 2013 6:12 am

 
i need them lol..
where can i find a tutorial regarding "Last Post Avatar" for PunBB?



View user profile



 
Administrator
Administrator

Posted on Sat Jun 01, 2013 6:33 am

 
Javascript:
Code:
$(document).ready(function () {
$('.statused .tcr').each(function(e) {
var l = this.getElementsByTagName('strong')[0].firstChild.href;
$(this).prepend('<span class="avatar-index" id="avatar-index'+e+'"></span>');
$('#avatar-index'+e).load(l+' .module .main-content.clearfix.center:eq(0) img:eq(0)');
});
});;

CSS:
Code:
.avatar-index {
float: left;
}
.avatar-index img {
width: 35px;
height: 35px;
}



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



 
Advance Member

Posted on Sat Jun 01, 2013 7:08 am

 
Error : Uncaught TypeError: Cannot read property 'firstChild' of undefined
After it it bugs the recent topics images



View user profile



 
Administrator
Administrator

Posted on Sat Jun 01, 2013 7:14 am

 
You need first to fill up all the forums with a topic, so it'll work.



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



 
Advance Member

Posted on Sat Jun 01, 2013 7:16 am

 
Thanks it works , / Request Topic Solved + Locked



View user profile



 
Administrator
Administrator

Posted on Sat Jun 01, 2013 7:19 am

 
Since the problem is now solved i will locked this and move to archive section. ~Locked and Moved Happy



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


#7

Sponsored content


 

Posted Today at 11:54 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