Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: senyorito on March 08, 2008, 10:19:03 PM

Title: Colorized Membergroups
Post by: senyorito on March 08, 2008, 10:19:03 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1117)


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:

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 (http://www.adrevenueshare.com/parser)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Special Thanks to bro JohnyB for helping and fixing the codes.
Title: Re: Colorized Membergroups
Post by: Apllicmz on March 09, 2008, 10:18:28 AM
Good Work
Nice Mod
Title: Re: Colorized Membergroups
Post by: senyorito on March 09, 2008, 11:24:44 AM
Quote from: joomlamz on March 09, 2008, 10:18:28 AM
Good Work
Nice Mod

Thank you for using this mod. :)
Title: Re: Colorized Membergroups
Post by: Bulakbol on March 09, 2008, 12:42:16 PM
Congratz bro!  8)
Title: Re: Colorized Membergroups
Post by: jossanaijr on March 09, 2008, 12:55:02 PM
Thanks!
Title: Re: Colorized Membergroups
Post by: senyorito on March 09, 2008, 01:19:39 PM
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. :)
Title: Re: Colorized Membergroups
Post by: D.S on March 09, 2008, 01:41:37 PM
thank u ,ur mod give me great effot

Title: Re: Colorized Membergroups
Post by: senyorito on March 09, 2008, 02:02:21 PM
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. :)
Title: Re: Colorized Membergroups
Post by: palang on April 09, 2008, 01:33:47 AM
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.
Title: Re: Colorized Membergroups
Post by: Bulakbol on April 12, 2008, 01:38:29 PM
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.
Title: Re: Colorized Membergroups
Post by: popomovies on May 09, 2008, 10:46:26 PM
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.
Title: Re: Colorized Membergroups
Post by: Bulakbol on May 20, 2008, 04:01:39 PM
This mod will not change the color of your post. It only color the membergroups page. Check the posted picture.
Title: Re: Colorized Membergroups
Post by: gemigene on August 01, 2008, 08:14:26 PM
Great mod but it sure would be nice to see the membergroups colors on the Member's page also.

Cheers,
Gene
Title: Re: Colorized Membergroups
Post by: Bulakbol on August 02, 2008, 01:35:37 PM
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>',
Title: Re: Colorized Membergroups
Post by: Shark-Time on July 20, 2009, 12:11:55 PM
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

(http://i341.photobucket.com/albums/o377/pakistanihaider/colored.jpg)

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

(http://i341.photobucket.com/albums/o377/pakistanihaider/fff.jpg)

can any one explain me the prob here..
Title: Re: Colorized Membergroups
Post by: Shark-Time on July 20, 2009, 04:02:05 PM
is any one going to reply or what?? im waiting
Title: Re: Colorized Membergroups
Post by: LHW 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.
Title: Re: Colorized Membergroups
Post by: Shark-Time on July 20, 2009, 05:24:52 PM
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?
Title: Re: Colorized Membergroups
Post by: LHW on July 20, 2009, 05:35:47 PM
Oh.  My mistake.  Try the Member Color Link (http://custom.simplemachines.org/mods/index.php?mod=111) Mod, and see if that's what you're looking for.
Title: Re: Colorized Membergroups
Post by: Shark-Time on July 21, 2009, 11:53:23 AM
Quote from: Lord High Warlock on July 20, 2009, 05:35:47 PM
Oh.  My mistake.  Try the Member Color Link (http://custom.simplemachines.org/mods/index.php?mod=111) Mod, and see if that's what you're looking for.

Thanks mate...its now working fine with the mod u said..
Title: Re: Colorized Membergroups
Post by: LHW on July 21, 2009, 11:55:22 AM
Glad I could help.  ;D
Title: Re: Colorized Membergroups
Post by: LOVELORD on September 01, 2009, 08:12:39 PM
I have earlier mod 2.16. Can I install now 3.0.7 on smf 1.1.10,becouse I start to rebilt script again, Is this two uses a same table from database? Can I install new mod on new forum script and use old database?