vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   userrank images help (https://vborg.vbsupport.ru/showthread.php?t=283041)

MegaManSec 05-17-2012 05:43 AM

userrank images help
 
I've been trying to set up my user-rank images into CSS sprites.. and I've worked out so far this code: in additional.css:

#ranks li {
background: url(https://data.bugabuse.net/images/spr...ank-sprite.png) no-repeat top left;
}
.sprite-admin{ background-position: 0 0; width: 157px; height: 44px; }
.sprite-banned{ background-position: -207px 0; width: 157px; height: 44px; }
.sprite-bugabuser{ background-position: -414px 0; width: 157px; height: 44px; }
.sprite-coder{ background-position: -621px 0; width: 157px; height: 44px; }
.sprite-donator{ background-position: -828px 0; width: 157px; height: 44px; }
.sprite-exdonator{ background-position: -1035px 0; width: 157px; height: 44px; }
.sprite-hondonator{ background-position: -1242px 0; width: 157px; height: 44px; }
.sprite-legdonator{ background-position: -1449px 0; width: 157px; height: 44px; }
.sprite-member{ background-position: -1656px 0; width: 157px; height: 44px; }
.sprite-middleman{ background-position: -1863px 0; width: 157px; height: 44px; }
.sprite-moderator{ background-position: 0 -94px; width: 157px; height: 44px; }
.sprite-mudkip{ background-position: -207px -94px; width: 150px; height: 50px; }
.sprite-newcomer{ background-position: -407px -94px; width: 157px; height: 44px; }
.sprite-pikachu{ background-position: -614px -94px; width: 150px; height: 50px; }
.sprite-recoverer{ background-position: -814px -94px; width: 157px; height: 44px; }
.sprite-robot{ background-position: -1021px -94px; width: 150px; height: 50px; }
.sprite-snorlax{ background-position: -1221px -94px; width: 150px; height: 50px; }
.sprite-superdonator{ background-position: -1421px -94px; width: 157px; height: 44px; }
.sprite-unicorn{ background-position: -1628px -94px; width: 300px; height: 100px; }

for the actual rank:

But it doesn't work.. it always displays the .sprite-admin{ background-position: 0 0; width: 157px; height: 44px; } one.. which also is the top left one.

Have I done something wrong? Or does it sound like something to do with vBulletin?

Thanks


EDIT: Nvm, had to add #ranks to the begining.


All times are GMT. The time now is 01:19 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.01026 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)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