Coding-Spot

You are not connected. Please login or register

 
 

Avatar in the last post

Message (Page 1 of 1)


 
Advance Member

Posted on Fri Aug 09, 2013 9:54 am

 
PHPbb3 ---> Java script---->In the homepage

Code:

 $(document).ready(function () {
 $('.topiclist.forums .lastpost').each(function(e) {
 var l = this.getElementsByTagName('strong')[0].firstChild.href;
 $(this).prepend('<span class="lp_avatar" id="lp_avatar'+e+'"></span>');
 $('#lp_avatar'+e).load(l+' #profile-advanced-right img:eq(0)');
 });
 });

CSS

Code:

.lp_avatar {
padding: 2px;
margin: 0 5px;
border: 1px solid #105289;
float: left;
}
.lp_avatar img {
height: 40px;
width: 40px;
}

this code not apply for whole mainpage it reelect for only top three post.

please update the code for phpbb3.



View user profile



 
Administrator
Administrator

Posted on Fri Aug 09, 2013 9:56 am

 

*
THANKED

The code is working fine. What you need to do is to fill up the forum without any post yet.
I check your forum and saw there are 2 forum without post.
- http://yahoo-world.forumotion.org/f41-suggestions
- http://yahoo-world.forumotion.org/f32-tutorials
- http://yahoo-world.forumotion.org/f22-yahoo-booters

Put some topics in there to make it work Happy 



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



 
Advance Member

Posted on Fri Aug 09, 2013 10:10 am

 
solved please close the topic Smile 



View user profile



 
Administrator
Administrator

Posted on Fri Aug 09, 2013 11:06 am

 
~ Topic Solve. Locked



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


#5

Sponsored content


 

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