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 Index Problem

3 posters

Go down

Avatars in the Index Problem Empty Avatars in the Index Problem

Post by angel_of_night 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:

Avatars in the Index Problem DrP2jOg

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
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

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

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

Male Posts : 2632
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

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

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

Avatars in the Index Problem SwBZbz7
Before everything would be centered like this.

Avatars in the Index Problem Z21B3B5
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
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

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

Yes you can use your code!
levy
levy
Hyperactive

Male Posts : 2632
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

Post by angel_of_night 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
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

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

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

Male Posts : 2632
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

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

angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Avatars in the Index Problem Empty Re: Avatars in the Index Problem

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

Bump.
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Back to top

- Similar topics

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