Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2015, 05:11 PM
jkotlowski jkotlowski is offline
 
Join Date: May 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Larger Avatars In Postbit?

Hi, I've been trying (unsuccessfully) to increase the size of avatars as shown in a topic. I'm running vB Cloud, so I don't have access to most of the CSS, unfortunately. I just have a small "CSS Editor" in the styles section. Right now I'm using this code;

Code:
.thread-view .b-avatar--m {
    height: 130px;
    width: 130px;
}
.thread-view .b-avatar--m > img {
    max-height: 130px;
    max-width: 130px !important;
}
And it's working, but I can't make the images any larger than 130 pixels or else it becomes uncentered in the postbit, and if I make it too much larger it actually runs into the post area and gets cut off. I guess I'm looking for a way to widen the postbit some so that images can be larger. My members want avatars with a max width of 200 and a height of 250 or 300.

Is there any way to do this with CSS edits? Or am I SoL?

Thanks in advance. And I hope I put this in the right area... ^_^;
Reply With Quote
  #2  
Old 05-21-2015, 06:27 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Making the avatars any larger than 100 - 130px really screws up the responsive design. It can be done with CSS, but the system is really stubborn to let go of the default values since they are already using !important on some of them. The background of the postbit is pretty tricky too. It would be a lot easier to do with template edits but since you are on cloud, that's not an option. All I have to offer is good luck, I gave up on it.
Reply With Quote
  #3  
Old 05-21-2015, 11:11 PM
jkotlowski jkotlowski is offline
 
Join Date: May 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the help, regardless. I'll keep tinkering, maybe I can figure something out.
Reply With Quote
  #4  
Old 06-27-2015, 05:27 AM
jkotlowski jkotlowski is offline
 
Join Date: May 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've upgraded to a full version of vBulletin 5 now, running 5.1.7, if anyone has a method to increase the sizes.
Reply With Quote
  #5  
Old 06-29-2015, 06:35 PM
jkotlowski jkotlowski is offline
 
Join Date: May 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried a handful of codes that I've found across the forums but none of them expand the postbit's size, so avatars larger than 130 pixels in width always seem to but cut off. Pretty annoying, not entirely sure why vBulletin would take out such an important feature as custom avatar sizes. Seems counter-productive... (though a lot of things in VB5 seem this way...)
Reply With Quote
  #6  
Old 08-05-2015, 01:09 AM
Cichlidgeek Cichlidgeek is offline
 
Join Date: Aug 2015
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As a sidenote, how do you like not being on the Cloud?
I'm still on it, but some things are really making me want to upgrade.
Reply With Quote
  #7  
Old 02-12-2016, 07:17 PM
Aros12 Aros12 is offline
 
Join Date: Jan 2016
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure this applies but I am on vB5.2 and with Replicant's help I got my avatars to increase while maintaining responsive integrity.

This is in the additional.css...

Code:
/* start custom avatar size */

.l-col__flex-3, .l-row__fixed--left > .l-col__flex-3 {
margin-left: 240px!important;
}
.b-userinfo__details {
width: 240px;
margin-left: -20px;
}
.l-desktop .b-userinfo {
width: 210px;
}
.b-avatar--m {
height: 125px!important;
width: 125px!important;
}

.b-avatar--m > img {
max-height: 125px!important;
max-width: 125px !important;
height: 125px!important;
width: 125px!important;
}
@media only screen and (max-width: 783px) {
.l-col__flex-3, .l-row__fixed--left > .l-col__flex-3 {
margin-left:0px!important;
float:none!important;
}
.b-userinfo__details {
margin-left: 0;
display:none;
}

.b-avatar--m {
height: 60px!important;
width: 60px!important;
}

.b-avatar--m > img {
max-height: 60px!important;
max-width: 60px !important;
height: 60px!important;
width: 60px!important;
}}
I also increased the width of the postbit itself to accommodate the larger avatar size and user info...(Change colors, etc to taste)

Code:
/* widen postbit to 200px*/
col__flex-3, .l-row__fixed--left > .l-col__flex-3 {
    margin-left: 200px;
}
.l-col__fixed-3, .l-row__fixed--left > .l-col__fixed-3 {
    width: 200px;
 
}

/*make width mod responsive*/
@media screen and (max-width: 784px){
 col__flex-3, .l-row__fixed--left > .l-col__flex-3 {
    margin-left: 0px;
    }

}

.sb-dialog.ui-dialog-content.ui-widget-content a, {
   font-size: 12px;
    color: #000;
    text-decoration: underline;
}
  
.sb-dialog.ui-dialog-content.ui-widget-content a:active, {
   font-size: 12px;
    color: #4871c3;
    text-decoration: underline;
}
  
.sb-dialog.ui-dialog-content.ui-widget-content a:visited {
   font-size: 12px;
    color: #4871c3;
}

.conversation-list.stream-view.stream-view-full-width .list-item {padding: 10px 10px 10px 10px; }

.view-mode .widget-no-border .widget-header {margin-top:15px;}

.b-photo-count .b-photo-count__count {
    font-size: 12px;
    color: #000;
}
.b-userinfo__details .author a {color: #FFFFFF !important;}

.b-userinfo__details .author a:hover {color: #FF9600 !important;}

.b-userinfo__details {
    font-size: 12px;
    color: #90b9fd;
}
.b-userinfo__details a {
    font-size: 14px;
}
.b-post {
    background: #28428c;
}
.b-icon__status--green:after {
    content: '';
    border: 10px solid #6e9d00; /* green, change as needed */
    background: transparent;
    border-radius: 40px;
    height: 40px;
    width: 40px;    
    position: absolute;
    top: -24px; /* you may have to tweak this if you move it from the default position */
    left: -22px; /* you may have to tweak this if you move it from the default position */
    z-index: 1;
    opacity: 0;
    -webkit-animation: glow 3s ease-out infinite;
    animation: glow 3s ease-out infinite;
}

@-webkit-keyframes glow {
    0% {
        -webkit-transform: scale(0);
        opacity: 0.0;
    }

    25% {
        -webkit-transform: scale(0);
        opacity: 0.1;
    }

    50% {
        -webkit-transform: scale(0.1);
        opacity: 0.3;
    }

    75% {
        -webkit-transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        -webkit-transform: scale(1);
        opacity: 0.0;
    }
}

@keyframes glow {
    0% {
        transform: scale(0);
        opacity: 0.0;
    }

    25% {
        transform: scale(0);
        opacity: 0.1;
    }

    50% {
        transform: scale(0.1);
        opacity: 0.3
    }

    75% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.0;
    }
  .l-col__flex-3, .l-row__fixed--left > .l-col__flex-3 {
margin-left: 240px!important;
}
.b-userinfo__details {
width: 240px;
margin-left: -20px;
}
.l-desktop .b-userinfo {
width: 210px;
}
.b-avatar--m {
height: 125px!important;
width: 125px!important;
}

.b-avatar--m > img {
max-height: 125px!important;
max-width: 125px !important;
height: 125px!important;
width: 125px!important;
}
media only screen and (max-width: 783px) {
.l-col__flex-3, .l-row__fixed--left > .l-col__flex-3 {
margin-left:0px!important;
float:none!important;
}
.b-userinfo__details {
margin-left: 0;
display:none;
}

.b-avatar--m {
height: 60px!important;
width: 60px!important;
}

.b-avatar--m > img {
max-height: 60px!important;
max-width: 60px !important;
height: 60px!important;
width: 60px!important;
}}
Reply With Quote
  #8  
Old 03-25-2019, 07:13 PM
slowstreamer slowstreamer is offline
 
Join Date: Oct 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was giving the above css code a go, but when I save the code to increase postbit width, I get a Template compile error.

Anyone else experience any problems ?

p.s. I'm running vB 5.4.5
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:29 AM.


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.04009 seconds
  • Memory Usage 2,241KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete