vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Ranks Without Usergroups (https://vborg.vbsupport.ru/showthread.php?t=321645)

MarkFL 01-28-2016 10:00 PM

Ranks Without Usergroups
 
1 Attachment(s)
Overview

This product allows you to define ranks that can be assigned to individual users without having to create usergroups with which to associate them. These ranks will then display beneath ranks defined in the "User rank Manager" in postbits and profile pages. All of the settings are self-explanatory.

In postbit:

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

In profile:

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

Updates:

Version 1.1:
  • Fixed problem arising on some sites where only last user shows rank.

Version 1.2:
  • Removed case sensitivity of usernames.

Compatibility:

Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

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

Support for this product can be found here:

Xarwin 02-17-2016 08:58 PM

Looks nice!

Is there a way to make users select their own ranks?
That would make the plugin even more useful to me :-).

MarkFL 02-17-2016 10:14 PM

Quote:

Originally Posted by Xarwin (Post 2565145)
Looks nice!

Is there a way to make users select their own ranks?
That would make the plugin even more useful to me :-).

No, this product, as it stands, allows you as an admin to define the HTML/CSS for ranks and then apply them to users. The way I see it, such a rank is earned though contributions to the site, rather than simply chosen by users.

For example, one of our global moderators puts in a great deal of time helping me beta test mods on our dev site, and so I gave her a small icon to denote her role as a beta tester. It was something I felt she deserved

However, I realize not everyone will have the same use for any particular mod, and so when I get time (currently working on a bear of a mod), I will see if I can do something useful with your suggestion. :)

BadgerDog 02-18-2016 11:43 AM

Downloaded and installed with thanks...

Immediately noticed there is no CSS code as shown in the pic, to use as a template for those of us who aren't experienced as coders?

Is it supposed to be there?

Regards,
Doug

MarkFL 02-18-2016 02:12 PM

Quote:

Originally Posted by BadgerDog (Post 2565170)
Downloaded and installed with thanks...

Immediately noticed there is no CSS code as shown in the pic, to use as a template for those of us who aren't experienced as coders?

Is it supposed to be there?

Regards,
Doug

Hey Doug,

You have to add your own CSS when you define your ranks badges. The CSS isn't really necessary unless you are going to define more than one badge that uses the same CSS...this lets you be more efficient.

The screenshot just shows an example of CSS classes being defined.

BadgerDog 02-19-2016 08:39 AM

1 Attachment(s)
Ok, tried it and still nothing appears using vBullletin 4.1.3PL8 as a rank for the user named Badger. (see attached)

Most likely mod is not compatible with 4.1 series... just a guess?

Regards,
Doug

BadgerDog 02-22-2016 08:43 AM

Mark...

In order to save my old brain a lot of time and possible mistakes, could you copy the text versions of the code you show in your graphic pic of your mod into a post here?

Thanks .. appreciate it..

Regards,
Doug

MarkFL 02-23-2016 05:43 PM

Quote:

Originally Posted by BadgerDog (Post 2565414)
Mark...

In order to save my old brain a lot of time and possible mistakes, could you copy the text versions of the code you show in your graphic pic of your mod into a post here?

Thanks .. appreciate it..

Regards,
Doug

The CSS you see in the screenshot is just what I used for the screenshots. It is not meant to be a part of the product itself. I just used it so the screenshots would be pretty. It is nearly identical to the HTML/CSS badges I designed for the site I help admin, and I would rather not make them available to the public, as I want them to be somewhat unique to that site.

It is up to you to design your own badges to fit your site...the same knowledge required to use vBulletin's intrinsic "Ranks Manager" is also required for this product. This product just allows you to assign such badges to individual users without having to create usergroups for those users.

Stratis 02-24-2016 09:26 AM

1 Attachment(s)
Thanks Mark very nice mod.

A little extra help for code i made in testing condition for my self.
Mark has a good point there for his code and we must respect this.

Attachment 154244

CSS Classes/Selectors
HTML Code:

.badge_rank {
position: relative;
top: 0px;
left: 0px;
width: 178px;
height: 20px;
vertical-align: middle;
border: solid 2px;
color: #F4FFFF;
border-color: #5D5B4E;
border-radius: 5px;
font-family: Georgia;
font-weight: 600;
font-size: 12pt;
text-align: center;
background-color: transparent;
box-shadow: 4px 4px 5px #8E7B7B;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: -moz-linear-gradient(top, #D42121 10%, #EF5656 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(10%,#D42121), color-stop(100%,#EF5656));
background: -webkit-linear-gradient(top, #D42121 10%,#EF5656 100%);
background: -o-linear-gradient(top, #D42121 10%,#EF5656 100%);
background: linear-gradient(to bottom, #D42121 10%,#EF5656 100%);
}

Ranks Definitions
HTML Code:

Test1|<div class="badge_rank">Nice Rank</div>
Assign Ranks To Users
HTML Code:

Stratis|Test1
Don't forget to change Stratis with your name users

You can play around adding or changing with your needs. :)

BadgerDog 02-24-2016 09:46 AM

1 Attachment(s)
Thank you Stratis .. :)

This makes the mod very useful to non coders... appreciate it..

How would I make the background a nice shade of blue instead of red?

Regards,
Doug

Edit: As soon as more then 1 username is added to the list, the rank stops showing up in forums. If you just use a single username, it works for that user. (see attached)


All times are GMT. The time now is 11:00 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.01256 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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