vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=259)
-   -   Mini Mods - Add avatars santa hat with CSS vB5 (https://vborg.vbsupport.ru/showthread.php?t=328441)

yilmaz 12-18-2020 10:00 PM

Add avatars santa hat with CSS vB5
 
1 Attachment(s)
Description:
The simple and easy way to add a santa hat to all avatars.


How to install:
  1. Download the zip file, put the svg file named santahat.svg in the images folder in the root
  2. If you add the following CSS code to the css_additional.css template of the style you are using, it will look like the screenshot.
HTML Code:

/* Add Avatara Santa Hat with CSS start */
.avatar,
.b-avatar,
.b-avatar--thread {
border: 0;
}

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

.avatar img,
.avatar:not(.medium) > img,
.b-avatar:not(.b-avatar--m) > img,
.b-avatar--thread > img,
.b-avatar--s > img,
.b-comment .b-avatar img,
.b-comp-menu-dropdown__trigger-avatar,
.profile-sidebar-widget .profileContainer .profile-photo-wrapper .profile-photo,
.b-avatar--pmchat,
.b-pmchat__participants-avatar,
img.avatar,
img.b-avatar {
border-radius: 100%;
}
.avatar,
.b-avatar,
.b-avatar--thread {
border: 0;
        position: relative !important;
    overflow: visible !important;
}
.b-avatar--thread img {
border: 1px solid #fff;
}
.avatar:before,
.b-avatar:before,
.b-avatar--thread:before {
    content: ' ';
        background-image: url(/images/santahat.svg) !important;
        background-size: contain !important;
    background-repeat: no-repeat !important;
    width: 75% !important;
    height: 75% !important;
    position: absolute !important;
    top: -11% !important;
    left: -8% !important;
}
/* Add Avatara Santa Hat with CSS end */

If you installed this mod and/or you want get support, please "Mark as Installed".

https://vborg.vbsupport.ru/attachmen...1&d=1608338386

ywwz 12-24-2020 03:30 AM

Great job!

ywwz 12-24-2020 03:32 AM

Is it possible to change the hat to another color or shape? (Didn't see a image file in the downloaded file)

Chicoynano 12-25-2020 12:55 PM

In version 5.6.4 the change is not displayed any suggestions. THANKS

Chicoynano 12-25-2020 01:31 PM

Solved you have to remove the /

background-image: url(/images/santahat.svg) !important;

background-image: url(images/santahat.svg) !important;


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