vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - [OzzModz] Usergroup Color Legend (https://vborg.vbsupport.ru/showthread.php?t=303341)

ozzy47 10-12-2013 10:00 PM

[OzzModz] Usergroup Color Legend
 
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

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.
https://vborg.vbsupport.ru/external/2013/12/30.png

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 https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png 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

ozzy47 10-13-2013 01:05 PM

Reserved.

Nirjonadda 10-13-2013 01:15 PM

Please can you add option Spiders Display on Forumhome and Who's Online

I am use this one : https://vborg.vbsupport.ru/showthread.php?t=259806

ozzy47 10-13-2013 01:23 PM

Spiders display has nothing to do with a usergroup color legend.

UncleGrundle 10-18-2013 06:33 PM

I know this has been done before, I was using the following mod:

https://vborg.vbsupport.ru/showthrea...group+Color+Ba

But I really like this version the best because it has many user friendly adjustable options and you have provided EXCELLENT instructions for changing the user color/styles.

Well done and thank you for making this!

Nominated as well.

ozzy47 10-18-2013 06:40 PM

Thanks, glad ya like it, and thanks for marking as installed. :)

Skyrider 10-19-2013 10:50 AM

Installed it, set the usergroups that allows to see it and used multiple Location Of Legend options, yet regardless what option I use, I don't see it on any style I use. And yes, product is active as I've set it to yes as well.

ozzy47 10-19-2013 12:31 PM

That does not make any sense, if yo want me to look into it, pm me a admin account for your site and I will see what I can do.

blackberry 10-19-2013 01:43 PM

woow thank you.. :)

ozzy47 10-19-2013 02:06 PM

Glad ya like it, and thanks for marking as installed. :)

ticoen 10-25-2013 09:38 AM

perfect...
tnx ;)

ozzy47 10-25-2013 09:48 AM

Quote:

Originally Posted by ticoen (Post 2456076)
perfect...
tnx ;)

Thanks, don't forget to mark as installed if you are using the mod.:)

Faskis 10-27-2013 10:48 PM

One thing I've wanted to see on one of these mods is how a similar mod for IP.Board (2.3.6) had setup. You had a bit more of a graphical display of which groups were displayed and could also sort them. Here's how it looked:

https://vborg.vbsupport.ru/external/2013/10/6.png



Also, perhaps add the option to link to the usergroup if you have leadership over it (via memberlist.php?usergroupid=<usergroup id>)?

ozzy47 10-27-2013 10:50 PM

Is that how the list would look on the forumhome?

Faskis 10-27-2013 11:05 PM

Quote:

Originally Posted by ozzy47 (Post 2456726)
Is that how the list would look on the forumhome?

It would be in that order, if that's what you mean. The image itself is from that mod I was talking about for IP.Board 2.3.6 (been about 6-7 years). I was thinking if you wanted to conform to how vB normally handles sortable items, list each group and then allow Admins to input the sort number it'd be (ie: 10, 20, 30, etc.) and then let 0 mean the group isn't listed, but that method can be a PITA if you have many usergroups to go through.

ozzy47 10-27-2013 11:09 PM

Yeah that would require quite a bit of coding, and probably some info added to the DB, IMO it is just to much for something that is not seen by the public, and is only for admin control.

Faskis 10-27-2013 11:15 PM

Quote:

Originally Posted by ozzy47 (Post 2456732)
Yeah that would require quite a bit of coding, and probably some info added to the DB, IMO it is just to much for something that is not seen by the public, and is only for admin control.

I wouldn't think it would require as much work as you're giving it off as. I mean, you already have ways of displaying all of the usergroups and then throwing in some text fields to input the sort order has also been done (ie: forum sort). I just find the current method to be an even bigger PITA because I have to go back and forth between the usergroups and the mod settings to figure out where each group should go.

ozzy47 10-27-2013 11:17 PM

True, but how many times do you change the settings once they are set up?

Faskis 10-29-2013 04:03 AM

Quote:

Originally Posted by ozzy47 (Post 2456735)
True, but how many times do you change the settings once they are set up?

For my community personally, we add and remove usergroups (staff and public) fairly often, so I wouldn't say it's necessarily uncommon.

john7911 10-29-2013 12:10 PM

Thank you ;)
How can i hide de default one, as you can see in the picture:
http://imageshack.us/a/img7/9816/3hpm.png

ozzy47 10-29-2013 12:19 PM

I don't believe that is from vB default, there has to be a mod that is adding that. What mods do you have installed?

john7911 10-29-2013 12:25 PM

Quote:

Originally Posted by ozzy47 (Post 2457022)
I don't believe that is from vB default, there has to be a mod that is adding that. What mods do you have installed?

I'm new it's a bit difficult to say , i need time to look :o

john7911 10-29-2013 12:31 PM

That is what i have
http://imageshack.us/a/img542/9029/pli1.pngxx

ozzy47 10-29-2013 12:49 PM

I am at work right now so I can't look, but maybe it is fr the fake visitors mod.

john7911 10-29-2013 01:06 PM

Ok, it was the: VSa - Visitors in Last X Hours but i need to show last visitor, any idea?
Thank you ;)

ozzy47 10-29-2013 02:32 PM

Ok, I'll check it out when I get home from work.

john7911 10-30-2013 08:06 PM

Is it possible to change the order, for example Admin first , moderator second , visitor third...
Thank you :)

ozzy47 10-30-2013 11:13 PM

Did you read the setting?

Usergroups To Show In The Legend

Select which usergroups to show in the legend.

Put the usergroups in the order you wish to see them appear in the legend.

john7911 10-31-2013 06:20 AM

Quote:

Originally Posted by ozzy47 (Post 2457358)
Did you read the setting?

Usergroups To Show In The Legend

Select which usergroups to show in the legend.

Put the usergroups in the order you wish to see them appear in the legend.

Thank you it's ok now ;)

ozzy47 10-31-2013 10:38 AM

Not a problem, glad it's sorted. :)

tenizmenu 11-11-2013 01:28 PM

Hi, i install this plugin but it doesn`t work. Can you help me?

ozzy47 11-11-2013 01:30 PM

Describe doesn't work.

tenizmenu 11-11-2013 01:44 PM

The plugin its active, but he didn`t show me any legend color, not even the "supermoderator" , "administrator" usergroups.

ozzy47 11-11-2013 01:48 PM

Have you set up all the settings in, OzzModz: Usergroup Legend Settings

tenizmenu 11-11-2013 02:08 PM

Yes, I do all the settings...

ozzy47 11-11-2013 02:09 PM

Ok PM me a link to your site, and a full admin account, and I can try and figure what is going on for you.

tenizmenu 11-11-2013 02:14 PM

One more thing: I can`t select any usergroup separator because I have only "none"... why ?

ozzy47 11-11-2013 02:54 PM

New Version Available!

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

bzcomputers 11-20-2013 12:42 PM

[S]Getting this error when trying to save settings:

Code:

Warning: trim() expects parameter 1 to be string, array given in [path]/includes/adminfunctions_options.php on line 1032
When the error appears (which for me is about 90% of the time when trying to save new settings), the "Usergroups Allowed To See The Legend" options don't save.
[/S]

Edit: After reimporting (twice) I am no longer seeing this issue.
----------------
Also could use an option for padding underneath the legend to match the look of other WGO sections.

ozzy47 11-22-2013 01:04 AM

Glad it finally installed right for you.

I'll look into the padding when I get a chance.


All times are GMT. The time now is 07:14 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.01352 seconds
  • Memory Usage 1,831KB
  • 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
  • (12)bbcode_code_printable
  • (6)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
  • (40)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