The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Avatars in the last topic #2

2 posters

Go down

Solved Avatars in the last topic #2

Post by TheCrow November 25th 2013, 9:19 pm

All the story:

When i have this in my templates it works fine:
Index_Box Template:

Javascript:

CSS:


What i did is to change the template into this:
NEW Index_Box Template:

And i added to the CSS this:
CSS:

So it would look like this:
Avatars in the last topic #2 F9TWPqi

And now i want to add the avatar of the last topic in the box next to the info of the last topic.. How can i do this?

Version: PunBB
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Avatars in the last topic #2

Post by Ange Tuteur November 25th 2013, 9:29 pm

If you make changes to the template in that area you will have to expect it to not work.

Please try this and see if it works:
Code:
    $(document).on('ready', function() {
                $('.themataforum').prepend('<div class="avatar-index"><div>');
                $('.themataforum .avatar-index').each(function () {
                    var profileUser = $(this).parent().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 + '#profile-advanced-right .main-content.clearfix.center img:eq(0)');
                });
            });
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Avatars in the last topic #2

Post by TheCrow November 25th 2013, 9:35 pm

I knew it wouldn't show it but i thought it was the column the problem!!

Anyway!! Seth u r the best!!! I love you I love you 

All the thanks of the world i give you!!!

SOOOOLVED!!! Very Happy
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Avatars in the last topic #2

Post by Ange Tuteur November 25th 2013, 9:48 pm

You're welcome I love you

Topic Solved and Archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top


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