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.

Avatar in lastpost

View previous topic View next topic Go down

Solved Avatar in lastpost

Post by TruStealth™ on January 13th 2014, 6:27 pm

Hello,
I was wondering if there is a way to add a space after the avatar in the last post cause the avatar pic is to close to the text. Below is an image.



TruStealth™
Forumember

Posts : 107
Reputation : 1
Language : English

http://Sorry.No-Forum-Address-Given.sorry

Back to top Go down

Solved Re: Avatar in lastpost

Post by Luffy on January 13th 2014, 6:35 pm

The code should be by it self with a lot of space. At least the code i am using! If u want to provide the code you are using in the javascript to check it.






Luffy
Manager
Manager

Male Posts : 4258
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Avatar in lastpost

Post by TruStealth™ on January 13th 2014, 6:44 pm

Hello again I think this is the one. only one I have for avatar pics

Code:
$(document).ready(function () {
$('.statused .tcr').each(function(e) {
var l = this.getElementsByTagName('strong')[0].firstChild.href;
$(this).prepend('<span class="avatar-index" id="avatar-index'+e+'"></span>');
$('#avatar-index'+e).load(l+' .module .main-content.clearfix.center:eq(0) img:eq(0)');
});
});;

TruStealth™
Forumember

Posts : 107
Reputation : 1
Language : English

http://Sorry.No-Forum-Address-Given.sorry

Back to top Go down

Solved Re: Avatar in lastpost

Post by Luffy on January 13th 2014, 7:23 pm

Can you give me your forum address to check it please? If u dont want to tell everyone sent me pm






Luffy
Manager
Manager

Male Posts : 4258
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Avatar in lastpost

Post by Mati on January 13th 2014, 7:38 pm

Need your forum link so we can check ur css.

Mati
Active Poster

Posts : 1885
Reputation : 283
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://footballforums.forumotion.net/

Back to top Go down

Solved Re: Avatar in lastpost

Post by TruStealth™ on January 13th 2014, 8:41 pm

Mati™ wrote:Need your forum link so we can check ur css.

Javascript:
Code:
$(document).ready(function () {
$('.statused .tcr').each(function(e) {
var l = this.getElementsByTagName('strong')[0].firstChild.href;
$(this).prepend('<span class="avatar-index" id="avatar-index'+e+'"></span>');
$('#avatar-index'+e).load(l+' .module .main-content.clearfix.center:eq(0) img:eq(0)');
});
});;

CSS:
Code:
.avatar-index {
float: left;
}
.avatar-index img {
width: 35px;
height: 35px;
}

Them are the only codes I'm using and I got them from this link Avatars In Last post

TruStealth™
Forumember

Posts : 107
Reputation : 1
Language : English

http://Sorry.No-Forum-Address-Given.sorry

Back to top Go down

Solved Re: Avatar in lastpost

Post by Mati on January 13th 2014, 9:39 pm

Try this
Code:
.avatar-index {
float: left;
margin: 6px 8px 0 2px;
}
.avatar-index img {
width: 35px;
height: 35px;
}

Mati
Active Poster

Posts : 1885
Reputation : 283
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://footballforums.forumotion.net/

Back to top Go down

Solved Re: Avatar in lastpost

Post by TruStealth™ on January 14th 2014, 12:11 am

Mati™ wrote:Try this    
Code:
.avatar-index {
float: left;
margin: 6px 8px 0 2px;
}
.avatar-index img {
width: 35px;
height: 35px;
}

Thanx Mati that is better this topic can be marked solved.

TruStealth™
Forumember

Posts : 107
Reputation : 1
Language : English

http://Sorry.No-Forum-Address-Given.sorry

Back to top Go down

Solved Re: Avatar in lastpost

Post by SLGray on January 14th 2014, 12:14 am

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 : 36740
Reputation : 2449
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