Code phpbb3 to phpbb2
4 posters
Page 1 of 1
Code phpbb3 to phpbb2
Well folks, to help a friend of mine asked me to help aki, pspbb2 not know anything, so I wanted to ask if you guys could modify this js to phpbb2 .... he has the job of putting the avatar-the last post ...
this code:
this code:
- Code:
$(document).ready(function(){
$('.topiclist.forums .row .lastpost').prepend('<div class="avatar-index"><div>');
$('.topiclist.forums .row .lastpost .avatar-index').each(function(){
var profileUserURL=$(this).parent().children('span').children('strong').children('a').attr('href');
$(this).html('<a href="#" class="avatar-index-enlace"><img src="http://cdn1.iconfinder.com/data/icons/basicset/user_64.png" alt="No Avatar" /></a>');
$(this).children('a').load(profileUserURL+' .module:eq(0) img:eq(0)');
});
});
HenriqueBr- New Member
- Posts : 8
Reputation : 1
Language : PT-BR
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Code phpbb3 to phpbb2
I know, but this tutorial is for phpbb3, phpbb2 I wanted to ...
HenriqueBr- New Member
- Posts : 8
Reputation : 1
Language : PT-BR
Re: Code phpbb3 to phpbb2
aff, this code is for phpbb3, I want you to convert it to phpbb2
HenriqueBr- New Member
- Posts : 8
Reputation : 1
Language : PT-BR
Re: Code phpbb3 to phpbb2
this code is for phpbb3, phpbb2 I want to!
HenriqueBr- New Member
- Posts : 8
Reputation : 1
Language : PT-BR
Re: Code phpbb3 to phpbb2
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead! |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Code phpbb3 to phpbb2
To PHPBB2 I created this:
CSS:
- Code:
// Avatar in index by giObanii phpbb2
$(document).on('ready', function() {
$('.forumline tr .row3.over').prepend('<div class="avatar-index"><div>');
$('.forumline tr .row3.over .avatar-index').each(function () {
var profileUser = $(this).parent().children('span').children('span').children('strong').children('a').attr('href');
$(this).html('<a href="' + profileUser + '" class="avatar-index-enlace"><img src="http://cdn1.iconfinder.com/data/icons/basicset/user_64.png" alt="No Avatar" /></a>');
$(this).children('a').load(profileUser + ' .forumline .row1.gensmall[align="center"]:eq(0) img:eq(0)');
});
});
CSS:
- Code:
/* Avatar in index by giObanii phpbb2*/
.avatar-index { float: left; }
.avatar-index img { width: 40px; height: 40px; padding: 1px; border: 1px solid #DDD; margin: 0 5px; }
Guest- Guest
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum