Thread: Miscellaneous Hacks - Ranks Without Usergroups
View Single Post
  #32  
Old 09-15-2016, 12:53 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by X-or View Post
could you kindly provide your own css code?
will test if issue is specific to the css
Okay, in the "CSS Classes/Selectors" field, enter:

Code:
.rank_wrapper_EP {
	position: relative;
	top: 0px;
	left: 0px;
	width: 180px;
	height: 24px;
	margin: 2px 0px;
	padding: 1px;
	border-radius: 6px;
	background-color: #FFFFFF;
	font-family: Tahoma, Verdana, Geneva, sans-serif;
	font-weight: bold;
	font-size: 11px;
	text-align: center;
	line-height: 1.8em;
	white-space: nowrap;
	box-shadow: inset 0 -3px 3px 1px rgba(192,192,192,0.5), inset 0 3px 3px 1px rgba(64,64,64,0.5);
}

.rank_badge_EP {
	position: relative;
	top: 1px;
	left: 1px;
	width: 178px;
	height: 22px;
	display: table-cell;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}

.badge_siteowner_EP {
	background: #0080ff; /* Old browsers */
	background: -moz-linear-gradient(top, #0080ff 0%, #0050a0 75%, #004080 100%); /* FF3.6-15 */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0080ff), color-stop(75%,#0050a0), color-stop(100%,#004080)); /* Chrome4-9,Safari4-5 */
	background: -webkit-linear-gradient(top, #0080ff 0%,#0050a0 75%,#004080 100%); /* Chrome10-25,Safari5.1-6 */
	background: -o-linear-gradient(top, #0080ff 0%,#0050a0 75%,#004080 100%); /* Opera 11.10-11.50 */
	background: -ms-linear-gradient(top, #0080ff 0%,#0050a0 75%,#004080 100%); /* IE10 preview */
	background: linear-gradient(to bottom, #0080ff 0%,#0050a0 75%,#004080 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0080ff', endColorstr='#004080',GradientType=0 ); /* IE6-9 */
	color: #FFFFFF;
}
And in the "Ranks Definitions" field enter:

Code:
test_badge|<div class="rank_wrapper_EP"><div class="rank_badge_EP badge_siteowner_EP">Test Badge</div></div>
And then in the "Assign Ranks To Users" field, choose a user to test this on, and enter:

Code:
username|test_badge
where "username" is replaced by the username of the user on whom you are testing this.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01246 seconds
  • Memory Usage 1,770KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete