The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Code phpbb3 to phpbb2

View previous topic View next topic Go down

Code phpbb3 to phpbb2

Post by HenriqueBr on October 9th 2012, 8:43 pm

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:
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

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by LGforum on October 9th 2012, 9:35 pm


LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by HenriqueBr on October 10th 2012, 1:47 am

I know, but this tutorial is for phpbb3, phpbb2 I wanted to ...

HenriqueBr
New Member

Posts : 8
Reputation : 1
Language : PT-BR

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by Ramdaman on October 10th 2012, 2:33 am

You're not really detailing your question.

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by HenriqueBr on October 10th 2012, 2:52 am

aff, this code is for phpbb3, I want you to convert it to phpbb2

HenriqueBr
New Member

Posts : 8
Reputation : 1
Language : PT-BR

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by HenriqueBr on October 10th 2012, 11:02 pm

up

HenriqueBr
New Member

Posts : 8
Reputation : 1
Language : PT-BR

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by HenriqueBr on October 11th 2012, 12:48 am

this code is for phpbb3, phpbb2 I want to!

HenriqueBr
New Member

Posts : 8
Reputation : 1
Language : PT-BR

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by HenriqueBr on October 11th 2012, 1:22 am

not results...

HenriqueBr
New Member

Posts : 8
Reputation : 1
Language : PT-BR

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by HenriqueBr on October 11th 2012, 4:17 pm

........

HenriqueBr
New Member

Posts : 8
Reputation : 1
Language : PT-BR

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by Sanket on October 11th 2012, 4:45 pm

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

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: Code phpbb3 to phpbb2

Post by Guest on October 12th 2012, 2:28 pm

To PHPBB2 I created this:

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


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum