News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Colorized Membergroups

Started by senyorito, March 08, 2008, 10:19:03 PM

Previous topic - Next topic

senyorito

Link to Mod


Colorized Membergroups v1.0
By senyorito



Compatibility

For SMF 1.1.x (I haven't tested this on SMF 2.x.x beta)

Introduction

Majority of us, we assign different colors to each of our membergroups.  We do this because this help us to determine the online users (Forum Index/Info Center/Users Online) which membergroup a member belongs.  But in Admin Control Panel, specially in Membergroups and Permissions pages, our membergroups text color is using the themes default text color.  It is not colorized even if we had already assigned a particular color to a membergroups.

With this Mod, this will colorize your membergroups (Post count based groups and Non-post count based groups) in Admin Control Panel as you can see on the screenshots above.

Installation

The following files will be modified by this Mod:


  • Sources/ManageMembergroups.php
  • Themes/Default/ManageMembergroups.template.php
  • Themes/Default/ManagePermissions.template.php
  • Themes/Default/ManageCalendar.template.php
Install the package and this will install to the SMF Default Theme -- Core.  This will also works in any themes.

Note:  If a "Test Failed" occured when you applied the Mod, don't continue with the installation and you need to manually install this modification.

Useful Links

SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Special Thanks to bro JohnyB for helping and fixing the codes.

Apllicmz




senyorito


Bulakbol

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

jossanaijr


senyorito

Quote from: JohnyB on March 09, 2008, 12:42:16 PM
Congratz bro!  8)
And to you too bro... for your hard work in helping me on this.   Heheh.

Quote from: jossanaijr on March 09, 2008, 12:55:02 PM
Thanks!
You're welcome and thank you for using this mod. :)

D.S

thank u ,ur mod give me great effot


senyorito

Quote from: D.S on March 09, 2008, 01:41:37 PM
thank u ,ur mod give me great effot


You're welcome D.S and thank you for using this mod. :)

palang

Great mod!  Had a question.  Is there a way I can have post count member group color overide the regular membergroup color?  I currently have members in a non-post count based group called "Employee".  Then those employees also belong to a post count based member groups (Newbie, Jr, Sr, etc.)    Currently the mod seems to take the color of the "Employee" group regardless of whether the members are Newbies, Jr, Sr, etc.

Thanks.

Bulakbol

Hi Palang. The mod author is I guess on vacation. Good for him.  :D

I don't think you can override color of another group using other group's color. I think this mod will take the color of a group and use it.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

popomovies

How is it that when I go to a forum where I posted a thread, I don't see "Administrator" colored red? I set it red in the permissions.

Bulakbol

This mod will not change the color of your post. It only color the membergroups page. Check the posted picture.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

gemigene

Great mod but it sure would be nice to see the membergroups colors on the Member's page also.

Cheers,
Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

Bulakbol

It is a link but you can do it yourself. Here's how. Edit your Sources/Load.php and look for
// What a monstrous array...
and on top of it, add this line
$user_color = !empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color'];
then find
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
replace with
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '" style="color:' . $user_color . ';">' . $profile['realName'] . '</a>',
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Shark-Time

How to set colors?? i cant set up the colors?

i mean the colors should change over all forum but the color only changed here



and look here the color is not changed. see the admin and mod..



can any one explain me the prob here..


Providing Cheapest Offshore Hosting as low as 5$/year.
MoneyBookers | AlertPay
Pm Me

Shark-Time

is any one going to reply or what?? im waiting


Providing Cheapest Offshore Hosting as low as 5$/year.
MoneyBookers | AlertPay
Pm Me

LHW

You can always just edit the Group Name from:

Name-of-Group

to

<font color=#xxxxxx>Name-of-Group</font>

We've been using that for years, and the MemberGroup Names show up in color everywhere, including the Admin CP.


Shark-Time

Quote from: Lord High Warlock on July 20, 2009, 05:16:06 PM
You can always just edit the Group Name from:

Name-of-Group

to

<font color=#xxxxxx>Name-of-Group</font>

We've been using that for years, and the MemberGroup Names show up in color everywhere, including the Admin CP.


No i mean that u can see the name pakistanihaider (Admin) and asas(GM) should b colored according to their primary groups.. the  name pakistanihaider should be in Red and asas shoud be in green as colors provided to them..but both of them are in orange color like regular members


is there any way to do so in SMF?


Providing Cheapest Offshore Hosting as low as 5$/year.
MoneyBookers | AlertPay
Pm Me

LHW

Oh.  My mistake.  Try the Member Color Link Mod, and see if that's what you're looking for.


Shark-Time

Quote from: Lord High Warlock on July 20, 2009, 05:35:47 PM
Oh.  My mistake.  Try the Member Color Link Mod, and see if that's what you're looking for.

Thanks mate...its now working fine with the mod u said..


Providing Cheapest Offshore Hosting as low as 5$/year.
MoneyBookers | AlertPay
Pm Me

Advertisement: