vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Top X Friends Profile Block (https://vborg.vbsupport.ru/showthread.php?t=292825)

Amaury 12-10-2012 02:24 AM

Top X Friends Profile Block
 
This is something I've been trying to adjust for a long time, and I just can't get it work.

I tried playing around with the profile_tiny_avatar variable yesterday, adjusting the width and height, and I just couldn't get it to work. It made it so either two friends appeared per row or one friend per row, making the top friends block very long.

How do I make it so usernames aren't cut off while keeping it to three per row?

http://i101.photobucket.com/albums/m...ndsBlock-1.jpg

WorldCraft 12-10-2012 02:33 AM

Try adding this to additional.css
HTML Code:

.member_summary .friends_mini .friends_list li{
height: 100px;
}


Amaury 12-10-2012 03:01 AM

Quote:

Originally Posted by WorldCraft (Post 2389660)
Try adding this to additional.css
HTML Code:

.member_summary .friends_mini .friends_list li{
height: 100px;
}


There's still a little cutoff.

Additionally, users that don't space out their username or just have lone-ish usernames also get cut off.

Look at clawthecyclops113 and Gott (horizontal):

http://i101.photobucket.com/albums/m...ileBlock-1.jpg

WorldCraft 12-10-2012 03:34 AM

You need to form one compromise here, or you'll need to space them all out far enough to where long names won't cover using css 'width', and that'll probably make the rows only have 2 names per row, depending on how wide you have the sidebar set to.

Increase the height I provided in the css to something larger to fix the vertical cutoff at least. If you still want to play around with the width just add a width: Xpx; after length:100px; one and see what looks decent.

Amaury 12-10-2012 03:55 AM

I added width to that and got it to work.

Height and width are at 105px. I reduced the amount of friends that show up from nine back to the default six so it wouldn't be so long. I think it looks pretty good.

Also, if you could check the Postbit and Profile thread again, that'd be great.

WorldCraft 12-10-2012 03:57 AM

I can't view the friends block a guest. But good to see you found something that works.

Amaury 12-10-2012 04:02 AM

Quote:

Originally Posted by WorldCraft (Post 2389675)
I can't view the friends block a guest. But good to see you found something that works.

I keep forgetting my privacy settings are all set to Registered Members, lol.

Temporarily set "Friends" to "Everyone" so you can see.

WorldCraft 12-10-2012 04:13 AM

Very nice, glad it worked out.

Amaury 01-21-2013 05:57 PM

I wanted to the same thing for the Members section of a group. Would I add something similar to additional.css?

If you can't access the area in the hyperlink I provided, let me know.

WorldCraft 01-22-2013 06:56 AM

Can't access it

Amaury 01-22-2013 07:03 AM

Quote:

Originally Posted by WorldCraft (Post 2398592)
Can't access it

https://vborg.vbsupport.ru/external/2013/01/25.png

WorldCraft 01-22-2013 11:46 PM

Hmm. Try something like this in additional.css

HTML Code:

/*This will remove the cutoff*/
#membersblock ul.blockrow li
{
width: auto;
}

/*This will allow the thumbs to center*/
.memberlist a.avatar
{
float: none;
width: auto;
}


Amaury 01-23-2013 12:48 AM

Quote:

Originally Posted by WorldCraft (Post 2398843)
Hmm. Try something like this in additional.css

HTML Code:

/*This will remove the cutoff*/
#membersblock ul.blockrow li
{
width: auto;
}

/*This will allow the thumbs to center*/
.memberlist a.avatar
{
float: none;
width: auto;
}


Hm. Seems to have created some excess spacing within the border.

http://www.kh-mediaflare.net/group.php?groupid=11

Use these to see it:
User: Test Account
Password: account@test

WorldCraft 01-23-2013 01:18 AM

Figured it'd look like that, sorry.

Under '#membersblock ul.blockrow li' add text-align:center;

Under '.memberlist a.avatar' replace width:auto; with display:inline-block;

Amaury 01-23-2013 01:28 AM

Quote:

Originally Posted by WorldCraft (Post 2398857)
Figured it'd look like that, sorry.

Under '#membersblock ul.blockrow li' add text-align:center;

Under '.memberlist a.avatar' replace width:auto; with display:inline-block;

Odd.

If you take a look, it didn't affect the Members block of the group, but it did affect the main group listings (Community -> Groups).

I did get a new idea, though, that'll probably work better. Is it possible to just have it list names and not avatars in a bullet list format?
  • Name 1
  • Name 2

Or maybe even remove the Members block since you can click on the number link under Members in the information area to see all members.

WorldCraft 01-23-2013 01:35 AM

You must have made a mistake somewhere, the display:inline-block; did not get accepted.

It should look like this:

HTML Code:

/*This will remove the cutoff*/
#membersblock ul.blockrow li
{
width: auto;
text-align: center;
}

/*This will allow the thumbs to center*/
.memberlist a.avatar
{
float: none;
display: inline-block;
}


Amaury 01-23-2013 01:50 AM

Quote:

Originally Posted by WorldCraft (Post 2398861)
You must have made a mistake somewhere, the display:inline-block; did not get accepted.

It should look like this:

HTML Code:

/*This will remove the cutoff*/
#membersblock ul.blockrow li
{
width: auto;
text-align: center;
}

/*This will allow the thumbs to center*/
.memberlist a.avatar
{
float: none;
display: inline-block;
}


Yup, I did. However, check my last reply again. I edited it with better ideas.

Also, while we're here, I noticed that the body area for "Group Discussions" goes past the header and isn't aligned with it on the left, the Moderation Tools button in the group areas is fatter / thicker than when viewing a forum, and in a group discussion, the Moderator Tools choices text is too close to the selector circles.

In all these cases, I'm thinking padding adjustments?

WorldCraft 01-23-2013 02:18 AM

For the Group Page, add this to additional.css
HTML Code:

#group_discussion_inlinemod_form .blockhead
{
margin-left: -2px;
}

As for the button, I'm completely eyeballing this, but:
HTML Code:

#group_discussion_inlinemod_form #inlinemod_formctrls .popupctrl
{
padding: 1px 0 1px 1px;
}


For the Moderator Tools being close to the radio buttons, I'm not too sure about, by default they do not look like that, there is probably a conflict in the CSS somewhere. If you provide me with temporary mod permissions I'll Firebug it and take a look for you. For security reasons, remove the user and pass you have provided me from your previous post.

Amaury 01-23-2013 02:28 AM

Quote:

Originally Posted by WorldCraft (Post 2398869)
For the Group Page, add this to additional.css
HTML Code:

#group_discussion_inlinemod_form .blockhead
{
margin-left: -2px;
}

As for the button, I'm completely eyeballing this, but:
HTML Code:

#group_discussion_inlinemod_form #inlinemod_formctrls .popupctrl
{
padding: 1px 0 1px 1px;
}


For the Moderator Tools being close to the radio buttons, I'm not too sure about, by default they do not look like that, there is probably a conflict in the CSS somewhere. If you provide me with temporary mod permissions I'll Firebug it and take a look for you. For security reasons, remove the user and pass you have provided me from your previous post.

In the second screenshot, if you take a look at a text piece (e.g., Delete Message) look how close it is to the selector circle compared to elsewhere:

http://i101.photobucket.com/albums/m...ps4e99c55a.png

Also, if you could change your password to something strong first, then I can do it. I don't want people hijacking a staff account with the password I already provided you. Alternatively, you could register yourself, and I could promote you. Up to you. :)

WorldCraft 01-23-2013 02:43 AM

I changed the password. And yes, I understand how it should look, which makes me think there is something conflicting in the CSS.

Amaury 01-23-2013 02:50 AM

Quote:

Originally Posted by WorldCraft (Post 2398875)
I changed the password. And yes, I understand how it should look, which makes me think there is something conflicting in the CSS.

Promoted.

Gave you permissions for styles, but let me know if you need any other permissions.

WorldCraft 01-23-2013 03:14 AM

Ok, I guess I was looking at the wrong page on my forum, they do appear a bit close when on that page. Anyway, I added this to your additional.css templates to space them.

#postlist #inlinemod_formctrls label input
{
margin-right: 3px;
}

Would you still like me to try what you wanted here?

Amaury 01-23-2013 03:16 AM

Quote:

Originally Posted by WorldCraft (Post 2398879)
Ok, I guess I was looking at the wrong page on my forum, they do appear a bit close when on that page. Anyway, I added this to your additional.css templates to space them.

#postlist #inlinemod_formctrls label input
{
margin-right: 3px;
}

Would you still like me to try what you wanted here?

Sure.

Additionally, if you want to make a test style to make sure everything works right before applying it to the live parent style, feel free.

WorldCraft 01-23-2013 03:52 AM

How does this look? I can remove the bullets if you do not want them.

https://vborg.vbsupport.ru/external/2013/01/21.png

Amaury 01-23-2013 03:56 AM

Quote:

Originally Posted by WorldCraft (Post 2398884)
How does this look? I can remove the bullets if you do not want them.

https://vborg.vbsupport.ru/external/2013/01/21.png

That's perfect. (I wanted the bullets.)

Now that I think about it, could the same be done for the Friends block on profiles?

EDIT: Odd. Bullets aren't showing for me.

WorldCraft 01-23-2013 04:22 AM

You should be all set now. I've put a few comments in /*Like this*/ To show that there are two blocks of CSS. One for the groups pages, one for the profile pages.

Amaury 01-23-2013 04:30 AM

Quote:

Originally Posted by WorldCraft (Post 2398888)
You should be all set now. I've put a few comments in /*Like this*/ To show that there are two blocks of CSS. One for the groups pages, one for the profile pages.

Thanks.

Was all this done via additional.css? Also, I'm still not seeing bullets for the group one.

For profiles, though, I don't think it makes much sense, now that I think about it. Is it possible to remove the Friends block and just have the Friends tab?

I tried to remove it once before, but the code I took out did nothing.

WorldCraft 01-23-2013 04:42 AM

Yes this was all added to additional.css. The bullets should be there, they appear for me. Perhaps you should delete your browser's internet cache to see if they will appear.

You can remove the friends block....but it'll leave behind an extra divider bar as it isn't designed for that (you'd need to find the adequate template to remove it). But you'd add
HTML Code:

div.friends_mini
{
display:none;
}

I like to be as helpful as I can, but I really recommend you try to learn how to do these type of edits. They really are not that difficult if you understand HTML/CSS and how to properly use your browser's web developer tools (Firebug for example if you use Firefox). It's much more beneficial for yourself and your community to learn basic web development skills. This site is great for tutorials and information: http://www.w3schools.com/html/default.asp

Amaury 01-23-2013 04:50 AM

Quote:

Originally Posted by WorldCraft (Post 2398895)
Yes this was all added to additional.css. The bullets should be there, they appear for me. Perhaps you should delete your browser's internet cache to see if they will appear.

You can remove the friends block....but it'll leave behind an extra divider bar as it isn't designed for that (you'd need to find the adequate template to remove it). But you'd add
HTML Code:

div.friends_mini
{
display:none;
}

I like to be as helpful as I can, but I really recommend you try to learn how to do these type of edits. They really are not that difficult if you understand HTML/CSS and how to properly use your browser's web developer tools (Firebug for example if you use Firefox). It's much more beneficial for yourself and your community to learn basic web development skills. This site is great for tutorials and information: http://www.w3schools.com/html/default.asp

Thank you. I've visited that site before via Lynne's signature. :)

And I do apologize. I know I seem really noob-ish. A lot of the stuff you saw in additional.css, though, were things I figured out.

WorldCraft 01-23-2013 04:54 AM

Hmm well the bullets do not appear on Google Chrome for some reason, maybe that is why you could not see them. I'll take a closer look at that and see if I can figure that out.

Edit: This should now be resolved.

Amaury 01-23-2013 05:01 AM

Quote:

Originally Posted by WorldCraft (Post 2398897)
Hmm well the bullets do not appear on Google Chrome for some reason, maybe that is why you could not see them. I'll take a closer look at that and see if I can figure that out.

Yeah, Google Chrome doesn't seem to like some things. XD

For example, this.

And thanks.


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01329 seconds
  • Memory Usage 1,821KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_html_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete