Welcome, Guest. Please Login or Register.
March 29, 2024, 09:17:06 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] Member Group Color « previous next »
Pages: [1] 2 3 4 Reply Ignore Print
Author Topic: [Done 1.5.1] Member Group Color  (Read 173423 times)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

[Done 1.5.1] Member Group Color
« on: March 03, 2003, 05:24:01 AM »
Reply with quote

ID: Member Group Color Mod

Version: 1.2a

Mod Info:
Yes, it's another color mod by me :P
This mod will enable admin to set colors for each member groups. The settings are in a new page called "Set Member Groups Color" in Admin Center/Section. This mod also has options for admin to enable coloring to show in profile page or post display page and to show color info in board index or SSI whosOnline(). The mod also allow admins to modify the look of Color Info shown in BI and SSI.php

Available Translations:
• German: .lng file - thx to RogerP
• Dutch: .lng file - thx to onsforum (BiErLeEuW)

Download:
BoardMod file
• YaBBPak: http://www.monkey-pirate.com/ysepak

BoardIndex Screenshot:



Mod Settings Screenshot:


BoardMod Installation Instructions:
1. Run this .mod file under BoardMod
2. Upload and execute "group_dbmod.php"
3. Upload all the changed files (7 files) into their directories and a new file, "ColorMemberGroups.php", into Sources directory

What's new:
Ver 1.2a:
- added dutch translations, thx to onsforum (BiErLeEuW)
Ver 1.2:
- made compatible for 1.5.1 final
- added german translations, thx to RogerP
Ver 1.1:
- fixed custom membergroup not showing properly on BoardIndex and Post display

Note:
I haven't add the adminhelp thingy, a bit too lazy right now. The mod is pretty easy to figure out anyway ;)
If you can't find where the mod settings are, it's in a new page. The link to the settings page, called Set Member Groups Color, is under Edit Member groups link in Admin Center
« Last Edit: January 26, 2004, 08:33:20 PM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #1 on: March 05, 2003, 08:32:39 AM »
Reply with quote

Because I don't use boardmod or yabbpak I install al the mods on my board manually.. I have to upload and execute "usercolor_dbmod.php", but I can't find this file anywhere.. the only file that comes near is group_dbmod.php.. is this is just a little mistyping from your side or a misreading from my side?  
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1 RC1] Member Group Color
« Reply #2 on: March 05, 2003, 08:35:25 AM »
Reply with quote

I think he meant group_dbmod.php.  It's not a big difference.

-[Unknown]
Logged
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #3 on: March 05, 2003, 08:39:03 AM »
Reply with quote

Quote from: [Unknown] on March 05, 2003, 08:35:25 AM
I think he meant group_dbmod.php.  It's not a big difference.

-[Unknown]

ok.. I'm just scared to screw up my board (again)
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #4 on: March 05, 2003, 08:19:57 PM »
Reply with quote

my mistake :P
i copied and pasted the instruction from my other mod (user color), but forgot to change that part
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #5 on: March 11, 2003, 02:57:42 PM »
Reply with quote

Ok, I've got the mod working, but I have some little problems.. I'm working with additional member groups (called xxx group) but I don't wan to color them, I want color the post member groups.. from noob till elite member.. but it looks like my selfe made xxx group is overruling the other colors... so I can change what I want, the names stay blue.. and an other strange thing is that I can change the color of the global moderators but I can't change the colors of the admins... someone got the solution?

edit: eg I changed the color for the admins in green.. I can't see it on the index, but when I click my profile I can see my name green..
« Last Edit: March 11, 2003, 08:55:18 PM by Walhalla » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #6 on: March 11, 2003, 09:14:39 PM »
Reply with quote

thats weird
everything is fine in the demo site, u can see it for yourself
if u dont want to color a certain membergroup, just leave it empty
can i have a link to your forum?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #7 on: March 11, 2003, 09:31:55 PM »
Reply with quote

Quote from: Spaceman-Spiff on March 11, 2003, 09:14:39 PM
thats weird
everything is fine in the demo site, u can see it for yourself
if u dont want to color a certain membergroup, just leave it empty
can i have a link to your forum?

I will reinstall the mod, if I got the same problem again I will post a screenshot.. can't give you the link  :)
Logged
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #8 on: March 11, 2003, 11:20:40 PM »
Reply with quote

Ok, I think I know the mod don't work properly... I changed the names of my membergroups, I only used Global Moderator as standard.. for the admins I used Uber Admin, when I changed it in the standard administrator the mod works for the admin group.. so I think when I change all membergroups to the standard names the mod will work totally..

does anyone know how I do that.. or am I forced to change the names into the standards before the mod will work?
« Last Edit: March 11, 2003, 11:23:41 PM by Walhalla » Logged
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #9 on: March 11, 2003, 11:58:52 PM »
Reply with quote

Checked it on a test forum, and I'm having the same problem... the mod can't handle modified group names  :-\
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #10 on: March 12, 2003, 01:56:54 AM »
Reply with quote

u're right, i'll take a look at the problem...
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
DJTommyC
Jr. Member
**
Posts: 81


Passion for Music

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #11 on: March 12, 2003, 02:06:45 PM »
Reply with quote

I've installed the mod and seems fine but the colours are not shown..all members have the default colour..
I think the foult is in this piece of code but don't know for sure..
if ($tmp['realName'] != '')
      {
         if ($tmp['memberGroup'] != '')
         {
            $request_color = mysql_query("SELECT color FROM {$db_prefix}membergroups WHERE membergroup='$tmp[memberGroup]' AND color!='' LIMIT 1;");
            if (mysql_num_rows($request_color) > 0)
            {
               $tmp_color = mysql_fetch_row($request_color);
               $tmpusers[] = '<a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '"><font color="' . $tmp_color[0] . '">' . $tmp[realName] . '</font></a>';
            }
            else
               $tmpusers[] = '<a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $tmp[realName] . '</a>';
         }
         else
            $tmpusers[] = '<a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $tmp[realName] . '</a>';
      }
      else
         $guests ++;
   }
   if ($modSettings['colorMemberGroup_showInfo'] == 1)
   {
      $request_color = mysql_query("SELECT membergroup, color FROM {$db_prefix}membergroups WHERE color!='';");
      $color_info = $modSettings['colorMemberGroup_start'];
      $color_total = mysql_num_rows($request_color);
      $color_counter = 0;
      while ($tmp_color = mysql_fetch_row($request_color))
      {
         $color_info .= '<font color="' . $tmp_color[1] . '">' . $tmp_color[0] . '</font>';
         $color_counter++;
         if ($color_counter < $color_total)
            $color_info .= $modSettings['colorMemberGroup_between'];
      }
      $color_info .= $modSettings['colorMemberGroup_end'];
   }

What tot do?
Logged
devilrazor
Noobie
*
Posts: 10


I'm a devil!

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #12 on: March 14, 2003, 04:56:44 AM »
Reply with quote

cool mod  ;) ;)
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1 RC1] Member Group Color
« Reply #13 on: March 14, 2003, 09:10:39 AM »
Reply with quote

updated to 1.1, should fix the color not showing properly if using custom membergroup name
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
-AOA-Zeus
Noobie
*
Posts: 36


Helfen Sie mir bitte über die Strasse!

WWW
Re:[Done 1.5.1 RC1] Member Group Color
« Reply #14 on: March 14, 2003, 02:47:29 PM »
Reply with quote

u can hardcode the colours yourself in the boardindex.php.
small howto!
search for "red" and u´ll find the right line. look how it is written. insert a new line like the others are (copy-paste) and rename the usergroup. thats all.
curr. version: 1.5.1-45.
http://forum.armyops.at

---demo---
if ($tmp['memberGroup'] == 'Administrator')
                               $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><i><u><font color=\"red\">$tmp[realName]</font></i></u></a>";
                       elseif ($tmp['memberGroup'] == 'Global Moderator')
                               $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"blue\">$tmp[realName]</font></a>";
                       elseif ($tmp['memberGroup'] == 'Special-Soldier (Elite)')
                               $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"green\">$tmp[realName]</font></a>";
                       elseif ($tmp['memberGroup'] == 'Squadleader')
                               $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"orange\">$tmp[realName]</font></a>";
                       elseif ($tmp['memberGroup'] == 'Fireteam')
                               $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"yellow\">$tmp[realName]</font></a>";
                       elseif ($tmp['memberGroup'] == 'Cheerleader')
                               $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"pink\">$tmp[realName]</font></a>";
                       else
                               $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$tmp[realName]</a>";
               }
               else
                       $guests ++;
---end---

-zeus-
« Last Edit: March 14, 2003, 02:49:09 PM by -AOA-Zeus » Logged

Intelligenz ist die einzig wirklich gerecht verteilte Sache auf der
Welt, da ein jeder glaubt, er haette genug davon.
Pages: [1] 2 3 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] Member Group Color « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.017 seconds with 19 queries.