Format the display name depending on membergroup.

Started by angelofwisdom, April 29, 2007, 12:39:41 AM

Previous topic - Next topic

angelofwisdom

I hope the title was explicit enough :)

So, what I need is basically this:
The Administrators are shown like this: Administrator
The Global Moderators are shown like this: Global Moderator
The Moderators are shown like this: Moderator

Suspended members are shown like this: Suspended
Banned members are shown like this: Banned

All the other membergroups have the same format.

Is there any mod, can somebody write a mod, or how can I do this? Basically, when editing a group, I'd like to be able to format the display names of the members that belong to that group the way I'd like. I know it's possible in vBulletin, for sure.

It would be good, specially because it's really easy to understand who's what just by watching the displayed name.

Sorry for my bad english :-\

I hope someone can help me with this :)

ディン1031

Hi

With the MemberColorLink you can add the color to Member Names. The Mod can change the Color of the Guest names to, but not the banned one, i never thought on this, hmmm i think this will be a nice new option for the mod.

The formating is also possible, but for this you need to change something in the db, because the color field is to short to insert more css styles (and you need to install the MemberColorLink to make it work).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

angelofwisdom

Actually, I already have MemberColorLink in the forum :) It's good for now, but it's not good enough. Make it perfect! ;D

About the banned names, well I could make a new membergroup with no privileges named "Banned". The problem is that it won't see the message stating he's banned :-\ but that would be something I'd put my mind on later.

Thank you for your reply :)

ディン1031

#3
You can made you nicknames bold and so on but for this is a change in the db necessary because the color field in the db is to small to add all informations for a css change. ;)

The change for this is very simple, go to your phpmyadmin panel and insert in the SQL field.

ALTER TABLE `YOURDBPREFIX_membergroups` CHANGE `onlineColor` `onlineColor` VARCHAR( 100 ) NOT NULL

YOURDBPREIX_ = you prefix that you use in you forum installation ;).
(If you need more than 100 letters for it, use instead of 100 -> 255 this is the maximum for this field).

after you made this you can user follow trick to made the nickname bold or other things.

Example Admin: red; font-style:italic

Imported is first the color and a ";" than you can write any other css thing after it.


Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

angelofwisdom

LOL

I tried that (except the DB change), because it was a logical thing to do. However, it didn't work.
NOW I know what to change :D via phpMyAdmin, I read your command and tried to do it myself. The response was the following command:
ALTER TABLE `fruesj_membergroups` CHANGE `onlineColor` `onlineColor` VARCHAR( 100 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL
I think it's this :)

Thank you! If I have any more problems, I'll come back.

angelofwisdom

#5
I still think you should change your mod :)

I think that was an excellent approach. Things weren't making any sense, and now I know why.

It works now exactly like I expected. That small change (on the DB) was the only thing I didn't knew.

Geez ... I haven't felt this excited for a long time, now ;D


Thank you very much :)

Advertisement: