Coding-Spot

You are not connected. Please login or register

 
 
 

Last Post avatar?

Message (Page 1 of 1)

#1

Nathan Adhitya

avatar
 
Advance Member

Posted June 1st 2013, 1:12 pm

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





#2

Mark

Mark
 
Administrator
Administrator

Posted June 1st 2013, 1:33 pm

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



https://coding-spot.darkbb.com


#3

Nathan Adhitya

avatar
 
Advance Member

Posted June 1st 2013, 2:08 pm

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





#4

Mark

Mark
 
Administrator
Administrator

Posted June 1st 2013, 2:14 pm

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



https://coding-spot.darkbb.com


#5

Nathan Adhitya

avatar
 
Advance Member

Posted June 1st 2013, 2:16 pm

 
Thanks it works , / Request Topic Solved + Locked





#6

Mark

Mark
 
Administrator
Administrator

Posted June 1st 2013, 2:19 pm

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



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 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None