vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   resizing Avatar in Postbit (https://vborg.vbsupport.ru/showthread.php?t=327422)

scottkoz20 07-31-2019 12:36 PM

resizing Avatar in Postbit
 
is there a clean/quick way to reduce the size of the user avatar in Postbit? I am testing with a responsive style and some of my users avatar images are just "large"

MarkFL 07-31-2019 01:56 PM

I would add a class selector in the "additional.css" template for a quick/easy way to change their size.

scottkoz20 07-31-2019 02:26 PM

Just adding the following did nothing for me

Code:

.avatar {
  width: 10%;
  height: auto;
}

Not sure I am calling the right item. Also, I would only want to do this in postbit not postbit legacy.

MarkFL 07-31-2019 02:58 PM

Can you inspect the DOM using your browser's dev tools? As far as applying it to postbit, but not postbit legacy, you would have to check to see if different classes are used, and if not use a plugin instead to add the CSS, or modify the templates directly. I'd rather use a plugin than hack the templates.

scottkoz20 07-31-2019 03:41 PM

Quote:

Originally Posted by MarkFL (Post 2600080)
Can you inspect the DOM using your browser's dev tools? As far as applying it to postbit, but not postbit legacy, you would have to check to see if different classes are used, and if not use a plugin instead to add the CSS, or modify the templates directly. I'd rather use a plugin than hack the templates.

i'll need to look at this further when I have a bit more time to understand this further.

MarkFL 07-31-2019 04:03 PM

If you can post a link to your site, on a page with avatars you want resized, I can help you come up with something. :)

final kaoss 07-31-2019 08:57 PM

Hey there, here's a link to one of his active threads, not many avatars though.
https://www.sportscardforum.com/show...e66?styleid=23

MarkFL 08-01-2019 12:48 AM

Right-click is disabled for guests, and I'm not going to go through the effort of circumventing that. :)

final kaoss 08-01-2019 01:49 AM

Quote:

Originally Posted by MarkFL (Post 2600086)
Right-click is disabled for guests, and I'm not going to go through the effort of circumventing that. :)

If you use firefox, it will ask you if you want to prevent this page from creating additional dialogs. All you have to do is right click twice and bam it will ask you and then, you get the regular right click menus.

In Omnibus 08-01-2019 03:49 AM

Quote:

Originally Posted by final kaoss (Post 2600085)
Hey there, here's a link to one of his active threads, not many avatars though.
https://www.sportscardforum.com/show...e66?styleid=23

That URL has a user rank, not an avatar. Inspecting it did no good since it gives the classes for postbit userranks instead of postbit avatars. Without the ability to see the existing CSS there is no way to know what changes need to be made. The logical solution would be to use media queries on a "responsive" theme but that requires knowing the existing breakpoints of the theme. It does us no good to guess since we could end up doing more harm than good.

If it had been as simple as inspecting the existing CSS I would have posted a solution hours ago.


All times are GMT. The time now is 11:08 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.05242 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete