vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Pre-Sales Questions (https://vborg.vbsupport.ru/forumdisplay.php?f=26)
-   -   Scheduled Task - Rebuild Avatar? (https://vborg.vbsupport.ru/showthread.php?t=328055)

DylanMateo 05-25-2020 10:17 AM

Scheduled Task - Rebuild Avatar?
 
Hi,

I am trying to make a scheduled task that rebuilds the avatar thumbnails, due to a workaround to make avatars larger in the postbit, however this ends up https://speedtest.vet/ https://vidmate.bid/ making fresh avatars look badly compressed.

I don't really understand how to write a Scheduled Task, and I have no idea where to start. So any help would be appreciated!

Tinsley1H 01-11-2023 03:56 AM

Hello, DylanMateo
You can do this in CSS. However, you'll be resizing a smaller image so there can be some artifacting. Browsers aren't the best at resizing images.

Visit your site. Turn on Edit Site. Click Style in the Site Builder Menu. Then select the CSS Editor tab. Enter in the code below, adjust as needed.

Code:
.b-userinfo .b-avatar, .b-userinfo .b-avatar img {
max-height: 128px;
max-width: 128px !important;
width: 128px;
height: 128px;
}


All times are GMT. The time now is 02:31 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.00946 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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