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.

Last POst Avatar

View previous topic View next topic Go down

Solved Last POst Avatar

Post by -nimbuzz- on September 4th 2013, 9:32 am




Hello Sir How To I set Like This I Mean Last POst Showing With Users Picture


Last edited by -nimbuzz- on September 4th 2013, 1:10 pm; edited 1 time in total

-nimbuzz-
Forumember

Posts : 101
Reputation : 2
Language : india

Back to top Go down

Solved Re: Last POst Avatar

Post by mist3r0us_b0y on September 4th 2013, 9:36 am


mist3r0us_b0y
Forumember

Male Posts : 747
Reputation : 19
Language : english

http://sh.st/nJRXG

Back to top Go down

Solved Re: Last POst Avatar

Post by -nimbuzz- on September 4th 2013, 10:05 am

Bro Its Not Working i Think I cHecked

-nimbuzz-
Forumember

Posts : 101
Reputation : 2
Language : india

Back to top Go down

Solved Re: Last POst Avatar

Post by mist3r0us_b0y on September 4th 2013, 10:21 am

ok try this

Your js here

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)'); });});
And put this at your 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; }

mist3r0us_b0y
Forumember

Male Posts : 747
Reputation : 19
Language : english

http://sh.st/nJRXG

Back to top Go down

Solved Re: Last POst Avatar

Post by -nimbuzz- on September 4th 2013, 10:30 am

Bro I Put This Two Codes also But Its Not Showing avatar at last Post Sad

-nimbuzz-
Forumember

Posts : 101
Reputation : 2
Language : india

Back to top Go down

Solved Re: Last POst Avatar

Post by Sir Chivas™ on September 4th 2013, 11:22 am

Hi,

Please change the title of your topic, that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.



1.CSS Stylesheet
Code:
/* Avatar in index by mastersly phpbb2*/
.avatar-index { float: left; }
.avatar-index img { width: 40px; height: 40px; padding: 1px; border: 1px solid #DDD; margin: 0 5px; }
2.Administration Panel >> Modules >> Javascript codes management >> Create new javascript
Title:Avatar index
Placement:In the home page
Javascript Code
Code:
// Avatar in index by mastersly 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)');
    });
});

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Last POst Avatar

Post by -nimbuzz- on September 4th 2013, 1:09 pm

yup solved thanks bro

-nimbuzz-
Forumember

Posts : 101
Reputation : 2
Language : india

Back to top Go down

Solved Re: Last POst Avatar

Post by SLGray on September 4th 2013, 8:09 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

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