Announcement
Collapse
No announcement yet.
Visitors in the Last X Hours Module
Collapse
This is a sticky topic.
X
X
-
The code here has been obsolete. Please refer to the latest CSS code in the first post.
- Top
- Translate
- Bottom
-
If you are using the Profile Preview Tooltip mod, then you need to add extra CSS code. Please refer to the updated first post.
- Top
- Translate
- Bottom
-
I also added the same code here. Take a look at this module on homepage.
- Top
- Translate
- Bottom
-
I updated the first post with this code.
- Top
- Translate
- Bottom
-
Originally posted by glennrocksvb View PostAvatar Size, Border-Radius, Border & Username
By default, the avatars in this module have the same size, border-radius and border as the avatars on other parts of the site (except for the size on topic pages and the main profile picture on Profile page). So if you've made custom CSS to change the style of those avatars, it will also be applied to the same in this module. But if you want to make the avatar style different in this module, you can add these custom CSS in css_additional template:
Code:.vbmodsthatrocks-last-visitors-widget .b-avatar { width: 100px; height: 100px; } .vbmodsthatrocks-last-visitors-widget .b-avatar img { width: 100px; height: 100px; max-width: none !important; max-height: none !important; border-radius: 100%; border: 1px solid #ccc; }
For displaying username, add this CSS:
Code:.vbmodsthatrocks-last-visitors-widget li { margin-bottom: 15px; } .vbmodsthatrocks-last-visitors-widget .b-avatar:after { content: attr(title); display: block; text-align: center; }
Did you mean this Profile Preview Tooltip which is similar to the new Name Card tooltip?
Note: I made those CSS code on the fly. So it's not fully tested. Let me know if it's not working.
Code:/* Last Visitors Module Avatars with Username - START */ .vbmodsthatrocks-last-visitors-widget .display-avatar { --lastVisitorAvatarSize: 100px; /* Avatar width and height on desktop */ --lastVisitorAvatarColumnGapSize: 40px; /* Gaps between Avatar columns on desktop */ --lastVisitorAvatarRowGapSize: 20px; /* Gaps between Avatar rows on desktop */ --lastVisitorAvatarBorderRadius: 100%; /* Avatar border-radius on desktop and mobile */ margin: 0 !important; } .l-small .vbmodsthatrocks-last-visitors-widget .display-avatar { --lastVisitorAvatarSize: 80px; /* Avatar width and height on mobile */ --lastVisitorAvatarColumnGapSize: 20px; /* Gaps between Avatar columns on mobile */ --lastVisitorAvatarRowGapSize: 10px; /* Gaps between Avatar rows on mobile */ } .vbmodsthatrocks-last-visitors-widget .display-avatar .last-visitor-list { display: grid; grid-template-columns: repeat(auto-fill, var(--lastVisitorAvatarSize)); justify-content: center; grid-column-gap: var(--lastVisitorAvatarColumnGapSize); grid-row-gap: var(--lastVisitorAvatarRowGapSize); } .vbmodsthatrocks-last-visitors-widget .display-avatar li { margin: 0; float: none; } .vbmodsthatrocks-last-visitors-widget .display-avatar .b-avatar { width: var(--lastVisitorAvatarSize); height: var(--lastVisitorAvatarSize); border-radius: var(--lastVisitorAvatarBorderRadius); margin: 0 !important; } .vbmodsthatrocks-last-visitors-widget .display-avatar .b-avatar:after { content: attr(title); display: block; text-align: center; word-break: break-word; width: calc(100% + var(--lastVisitorAvatarColumnGapSize)); margin-left: calc(-1 * (var(--lastVisitorAvatarColumnGapSize)/2)); } .vbmodsthatrocks-last-visitors-widget .display-avatar .b-avatar img { width: var(--lastVisitorAvatarSize); height: var(--lastVisitorAvatarSize); max-width: none !important; max-height: none !important; transform: none !important; } /* Last Visitors Module Avatars with Username - END */
Last edited by glennrocksvb; 02-04-2022, 11:49 AM.
- Top
- Translate
- Bottom
- Likes 1
-
Note that username has no fixed length, some are long, some are short. So you may see overlapping usernames. You can add ellipsis (...) to prevent username to go beyond its container by adding these CSS properties inside the .vbmodsthatrocks-last-visitors-widget .b-avatar:after CSS rule block.
Code:overflow: hidden; text-overflow: ellipsis;
- Top
- Translate
- Bottom
Leave a comment:
-
Avatar Size, Border-Radius, Border & Username
By default, the avatars in this module have the same size, border-radius and border as the avatars on other parts of the site (except for the size on topic pages and the main profile picture on Profile page). So if you've made custom CSS to change the style of those avatars, it will also be applied to the same in this module. But if you want to make the avatar style different in this module, you can add these custom CSS in css_additional template:
Code:.vbmodsthatrocks-last-visitors-widget .b-avatar { width: 100px; height: 100px; } .vbmodsthatrocks-last-visitors-widget .b-avatar img { width: 100px; height: 100px; max-width: none !important; max-height: none !important; border-radius: 100%; border: 1px solid #ccc; }
For displaying username, add this CSS:
Code:.vbmodsthatrocks-last-visitors-widget li { margin-bottom: 15px; } .vbmodsthatrocks-last-visitors-widget .b-avatar:after { content: attr(title); display: block; text-align: center; }
Did you mean this Profile Preview Tooltip which is similar to the new Name Card tooltip?
Note: I made those CSS code on the fly. So it's not fully tested. Let me know if it's not working.
- Top
- Translate
- Bottom
Leave a comment:
-
avatar custom size with username , radius or border and users online details
- Top
- Translate
- Bottom
Leave a comment:
-
Question: users who have chosen to remain invisible won't be displayed in the module, except to admins? vB 5.6.1
- Top
- Translate
- Bottom
Leave a comment:
-
Yes this is branding free. When there's no branded version mentioned in the first post, then it's branding-free. I didn't make branded versions when I first started creating mods and only did it later. This mod was one of my initial mods.
- Top
- Translate
- Bottom
- Likes 1
-
Just FYI. The slow performance was not caused by the mod but by the MySQL Packet Size being too small. It was changed from 4MB to 256MB and rhe issue was solved.
- Top
- Translate
- Bottom
Leave a comment:
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
Get Affordable and Fast VPS for vBulletin -
by weiindIf the topic title in the thread is a large size it messes up. Same size is showing up in sidebar.Today, 05:03 AM
-
Reply to Quick Topic Moderationby glennrocksvbNice workaround darkboy245!
You can also accomplish this in a more proper way via PHP Hook using the hookFrontendContentAfterAdd hook. This...04-30-2024, 10:18 PM
Leave a comment: