Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[OzzModz] Usergroup Color Legend Details »»
[OzzModz] Usergroup Color Legend
Version: 1.1.2, by ozzy47 ozzy47 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.x.x Rating:
Released: 10-12-2013 Last Update: 12-30-2013 Installs: 108
Uses Plugins Auto-Templates
Translations  
No support by the author.

Another mod brought to you by,


Here is a small modification you can use to show a usergroup color legend various places on forum home.

It is a simple installation, just import the product XML, product-ozzmodz_usergroup_legend

Make sure you disable or uninstall any other usergroup legend mods you have running.

You can edit the options under the settings, OzzModz: Usergroup Legend Settings

Complete Feature List
  • Option to disable the mod completely.
  • Option to show which usergroups to show in the legend.
  • Option to center the legend.
  • Option to select which usergroups can see the legend.
  • Option to select from six icons to separate the usergroups.
    • None
    • ?
    • ~
    • -
    • /
    • |
  • Option to choose from eight different locations on the forum home.
    • Above Usernames In WGO
    • Below Usernames In WGO
    • Below Welcome Newest Member In WGO
    • Below Icon Legend In WGO
    • Forumhome Above Forums
    • Forumhome Below Forums
    • Above Currently Active Users In WGO
    • Forumhome Below NavBar
The locations, Forumhome Above Forums, Forumhome Below Forums, and Forumhome Below NavBar, will be blocks, that look like the rest of the blocks on your forum home. The remaining five locations integrate into the, What's Going On section.

Frequently Asked Questions.

Q. Why are all the groups / users are the same color?

A. For those of you not familiar with, or have issue with html markup, here is a quick guide.


Username HTML Markup. ACP --> Usergroups --> Usergroup Manager edit each usergroup, you will need to add the html to the two input fields found in the setting, Username HTML Markup.

NOTE: Your field boxes won't be as wide as the ones in the image, I over-sized them for illustration purposes.


The first field is the opening tag. The second field is the closing tag. These tags will be inserted around the user's username like this:

Code:
[opening tag]username[closing tag]
Some HTML tags you might want to use here include:

Code:
<span style="font-weight: bold;"> </span> 
<span style="text-decoration: line-through; font-weight:bold;">  </span>
<span style="font-style: italic;"> </span> 
<span style="text-decoration: underline;"> </span>
<span style="color: red;"> </span>
Example 1

First field
Code:
<span style="color: Red;">
Second field

Code:
</span>
Example 2

First field

Code:
<span style="color: Blue; font-weight: bold;">
Second field

Code:
</span>
You can also do combinations by using more than one attribute in the style property.

Q. Wait, I have different colored styles, it is very difficult to choose a color to work on them all, what can I do?

A. Well then you should use this solution. It will take time to set up for each usergroup, but it's worth it.

First off add this code to your additional.css templates for all your styles.
In each style you can define a different color for each group.
You can add more groups or change the names as you wish.

Code:
.admin 
{
        color: #FF0000;
        font-weight: bold;
}

.moderator 
{
        color: #0000ff;
        font-weight: bold; 
}

.supermod 
{
        color: #32CD32;
        font-weight: bold; 
}

.registered 
{
        color: #802A2A;
        font-weight: bold; 
}

.banned
{
        color: #000000;
        text-decoration: line-through;
        font-weight: bold; 
}

.group1 
{
        color: #FF8000;
        font-weight: bold;  
}

.group2 
{
        color: #A020F0;
        font-weight: bold; 
}

.group3 
{
        color: #FFC0CB;
        font-weight: bold; 
}
Then for each usergroups html markup do like this.

Example 1

First field
Code:
<span class="admin">
Second field

Code:
</span>
Example 2

First field

Code:
<span class="moderator">
Second field

Code:
</span>
Remember to change the class to the usergroup you are working with.

You can get a good list of colors here, Color Codes

The first screenshot is of the settings in the acp.
The second screenshot is of the legend in the What's Going On area.
The third screenshot is of the legend, when it is displayed in the locations, Forumhome Above Forums, Forumhome Below Forums, and Forumhome Below NavBar.

-------------------------------------------------------------------------------------------

If you like this mod please hit the button to the right ---->

Please remember to click the, button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vBulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

v1.0.0 Initial release.

v1.1.0 Fixed a issue where on some installs the product would fail, due to non ASCII character format.

v1.1.1 Fixed a issue with a uncached template.

v1.1.2 Fixed a issue with the collapse not working, and added some padding.

-------------------------------------------------------------------------------------------

Translations
Romanian translation available, here
Arabic translation available, here
Spanish translation available, here

-------------------------------------------------------------------------------------------

Contributions Received (members who clicked on, and followed through with the Support Developer button)

bazookajoe

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 11-22-2013, 01:50 AM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Glad it finally installed right for you.

I'll look into the padding when I get a chance.
It was interesting though. When reimporting I actually ended up with 2 instances of of two of the three plugins associated with the mod. I deleted the duplicates and all seems to be running fine now.

As for the padding I just edited the template and added a margin-bottom:

Code:
style="margin-left:20px; margin-right:5px; margin-bottom:8px;" 
<vb:else /> 
style="margin-left:-25px; margin-right:5px; margin-bottom:8px;"
It appears to look fine for all the options it is associated with.
Reply With Quote
Благодарность от:
ozzy47
  #43  
Old 11-22-2013, 11:09 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a strange one, the latest XML, should have fixed issues like that.
Reply With Quote
  #44  
Old 12-03-2013, 05:07 PM
Teascu Dorin Teascu Dorin is offline
 
Join Date: Nov 2009
Location: Sibiu, Romania
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the Romanian translation for this mod:

Support and Updates: https://www.rostyles.com/forum/f11/%...r-legend-2597/
Reply With Quote
Благодарность от:
ozzy47
  #45  
Old 12-04-2013, 12:15 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the translation.
Reply With Quote
  #46  
Old 12-04-2013, 04:35 AM
Teascu Dorin Teascu Dorin is offline
 
Join Date: Nov 2009
Location: Sibiu, Romania
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Thanks for the translation.
Welcome.
Reply With Quote
  #47  
Old 12-07-2013, 08:33 AM
BT7 BT7 is offline
 
Join Date: Jan 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks I added to my new forum
Reply With Quote
  #48  
Old 12-07-2013, 10:39 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BT7 View Post
thanks I added to my new forum
Don't forget to mark as installed.
Reply With Quote
  #49  
Old 12-07-2013, 10:46 AM
BT7 BT7 is offline
 
Join Date: Jan 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Don't forget to mark as installed.
forgot that Now Done sir
Reply With Quote
Благодарность от:
ozzy47
  #50  
Old 12-07-2013, 10:51 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.
Reply With Quote
  #51  
Old 12-07-2013, 12:21 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<u>v1.1.1</u> Is available.

Fixed a issue with a uncached template.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06020 seconds
  • Memory Usage 2,335KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete