The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

A 2nd Set of Groups

View previous topic View next topic Go down

In progress A 2nd Set of Groups

Post by Anzo on November 18th 2014, 8:11 pm

Hello,

Is it possible to have two separated set of groups/legends? For instance, Legend #1 would be "Red", "Yellow", Blue", "Violet". While Legend #2 (beneath it) consist of: "White", "Black", "Crimson", "Cyan" - colors are only an example.

For instance, my forum currently have 9 groups, they're under "Legend". I'd like to know whether It's possible to have a 2nd set of groups beneath it, separated, where members whom assigned to these groups will have an icon near their name instead of a different color. For instance, for "white" you're presume that member's name would be white, but instead, it want to have like a white block 3x3 px (again, only an example) instead of a different color.

I want to host an event where members will temporarily will be assigned to different groups, It's a role-play event, and the groups will be representing different teams. However, at the same time, I'd still like them to maintain their original group's colors.

Is it possible?

Anzo
Forumember

Posts : 303
Reputation : 6
Language : English/Arabic
Location : Baghdad - Iraq

http://www.duelacademy.net/forum

Back to top Go down

In progress Re: A 2nd Set of Groups

Post by Ramdaman on November 18th 2014, 10:14 pm

The only way would be to code fake groups into the template, then use the "colorize usernames" script to change their color. These fake groups would just be words with color.


Last edited by Ramdaman on November 19th 2014, 12:27 am; edited 1 time in total (Reason for editing : word was missing)

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 96
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

In progress Re: A 2nd Set of Groups

Post by Ange Tuteur on November 19th 2014, 12:20 am

Hello Anzo,

From what I know, only one group color can be applied to a member at a time. The color the takes precedence over the other depends on its order number. So, the members in the icon groups would need to be done by hand with CSS.

As for separating the groups ? You could use a break tag to set the groups onto a new line. For example :

Placing the groups after chatmods onto a new line
Code:
$(function() {
  $('#onlinelist').html($('#onlinelist').html().replace(/(\[ <b><a style="color: #1A9169" class="gensmall" href="\/g129-chat-moderators">Chat Moderators<\/a><\/b> \])/,'$1 <br>'));
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: A 2nd Set of Groups

Post by Anzo on November 19th 2014, 12:49 pm

@Ange: So If I want to place the group after the 'Slifer Red' - lower group in the forum - I should use that code and replace the "\/g129-chat-moderators" with "\/g10-slifer-red"? That way all other groups after this group will show below it?


Anzo
Forumember

Posts : 303
Reputation : 6
Language : English/Arabic
Location : Baghdad - Iraq

http://www.duelacademy.net/forum

Back to top Go down

In progress Re: A 2nd Set of Groups

Post by Ange Tuteur on November 19th 2014, 11:46 pm

Yep Smile

Here is the script for that :
Code:
$(function() {
  $('#onlinelist').html($('#onlinelist').html().replace(/(\[ <b><a style="color: #DE0000" class="gensmall" href="\/g10-slifer-red">Slifer Red<\/a><\/b> \])/,'$1 <br>'));
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum