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.

Avatars in the Index Problem

View previous topic View next topic Go down

Avatars in the Index Problem

Post by angel_of_night on October 27th 2013, 1:28 am

Hello.
I am having this problem in my forum. I am using the avatar in the index feature, and everytime I make a new section, which will have no posts, the avatars doesn't show up below that section.
For example:



All avatars are showing fine above the section with 0 posts, but they completely disappear under that section.
If I post a topic in the new section, it will fix though. But I don't want them to disappear. How can I fix this?

CSS I am using:
Code:
.lp_avatar {
 padding: 20px;
 margin: 0 5px;
 border: 20px solid #105289;
 float: left;
}
.lp_avatar img {
 height: 300px;
 width: 300px;
 }
Javascript:
Code:
/* Avatar in index by giObanii phpbb3*/
$(document).ready(function () {
  $('.topiclist.forums .lastpost').each(function(e) {
  var l = this.getElementsByTagName('strong')[0].firstChild.href;
  $(this).prepend('<span class="lp_avatar" id="lp_avatar'+e+'"></span>');
  $('#lp_avatar'+e).load(l+' #profile-advanced-right img:eq(0)');
  });
});

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Re: Avatars in the Index Problem

Post by levy on October 27th 2013, 1:35 am

Try to sync your categories :
Go in Administration Panel -> General -> Categories & Subforums -> Sync

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Re: Avatars in the Index Problem

Post by Ange Tuteur on October 27th 2013, 1:36 am

Hello angel_of_night,

I would recommend using this avatar index instead. Just make a few edits to the CSS to fit what you want.

I prefer this style for it:
Code:
/*Avatar Index*/
.mini_ava {
 float: left;
}
.mini_ava img{
width:40px;
height:40px;
margin-right:8px;
margin-left:8px;
}

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Re: Avatars in the Index Problem

Post by angel_of_night on October 27th 2013, 1:47 am

That kinda fixed it, but now everything in the index is messed now.


Before everything would be centered like this.


Now it's just messy, the avatar is on the left size, I want it centered and on the top like before. Also the username is not centered anymore.

Code I am using to center usernames in index:
Code:
  dd.lastpost span, dd.lastpost span.color-groups, span a.last-post-icon {
  display: block !important;
  margin: 0 !important;
  float: none !important;
  text-align: center !important;
}

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Re: Avatars in the Index Problem

Post by levy on October 27th 2013, 11:06 am

Yes you can use your code!

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Re: Avatars in the Index Problem

Post by angel_of_night on October 27th 2013, 11:36 am

candy_fear wrote:Yes you can use your code!
What?
I said I am using that code, I was using it before the new codes for avatar in the index.
But now I need to know which codes to use to center everything again.

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Re: Avatars in the Index Problem

Post by levy on October 27th 2013, 11:45 am

Sorry , my mistake , post here your forum URL . Embarassed

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Re: Avatars in the Index Problem

Post by angel_of_night on October 27th 2013, 12:09 pm


angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Re: Avatars in the Index Problem

Post by angel_of_night on October 29th 2013, 3:44 pm

Bump.

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

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