We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] color of members of groups shown throughout the board
Topic Started: Jul 29 2010, 05:05 PM (802 Views)
jesschen
Member Avatar
Member
[ * ]
Board Address: Private
Board Software: Zetaboards
Description: It's only in posts that the color of members (who are in groups) actually show, but is there a way where it can be shown everywhere, like for example, my name is in italics and bold (but I didn't assign a color), and in the index after the Moderated by, it's normal, same with the last topic posted in and who posted, it's normal (and same with inside each forum). is there a way where that'll change to what it should be?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
So basically, you want to add specific text styles in specific places to specific groups?
Offline Profile Goto Top
 
jesschen
Member Avatar
Member
[ * ]
yeah pretty much like that...
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
http://resources.zetaboards.com/topic/5066857/1/
Offline Profile Goto Top
 
jesschen
Member Avatar
Member
[ * ]
the group I'm in, Founder, does not have a color but it uses italics and bold. How do I put that in the code?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Quote:
 
colorname('<strong><em>USERNAME2</em></strong>','green');
colorgroup('<strong><em>GROUP1</em></strong>','red');
Simply add the HTML tags around the user or group name. Orange text is bold, green text is italic.
Offline Profile Goto Top
 
jesschen
Member Avatar
Member
[ * ]
doesn't seem to be working. did I do it right?

Code:
 
<script name="C.M.G.N." type="text/javascript" src="http://z3.ifrm.com/1/22/0/p131/zetacolors.ibf"></script>
<script type="text/javascript">
// Change Member & Group Colors (By Mwr247)

// Add Names
colorname('<strong><em>Jessica</em></strong>','');

// Default Name Color
defaultname('');

// Add Groups
colorgroup('<strong><em>Founder</em></strong>','');
colorgroup('<em>Super Mods</em>','#0099FF');
colorgroup('<em>Math Teachers</em>','purple');
colorgroup('<em>Science Teachers</em>','red');
colorgroup('<em>English Teachers</em>','#ff7f00');
colorgroup('<em>Language Teachers</em>','#ff007f');
colorgroup('Students','#339900');
colorgroup('<s>Banned</s>','');
</script>
Edited by jesschen, Aug 1 2010, 03:00 PM.
Offline Profile Goto Top
 
Pescao6-ZNR
Member
[ * ]
You could always add prefixes and suffixes to every group like:
Posted Image

On the Admin CP -> Users & Groups -> Groups -> Edit Group:[GROUPNAME]

It's simple bb code; I'm sure you could figure that out.
Code:
 
[i] for italics, [b] for bold, [color=#??????] for color
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
That code won't work the way you want it to and there really isn't an efficient way of styling users by group so it would have to be done individually.
This however will allow you to add regular HTML tags to style your names.
Code:
 
<script type='text/javascript'>
/* <![CDATA[ */
function styleUsers(id,ostyle,cstyle) {
$('a[href*=profile]').each(function() {
if (this.href.indexOf(id) !==-1) {
this.innerHTML = this.innerHTML.replace(this.innerHTML, ostyle + this.innerHTML + cstyle)
}
});
}
styleUsers('USER_ID', 'OPENING_TAGS', 'CLOSING_TAGS');
/* ]]> */
</script>

USER_ID = The id of the user. For example if you hover over your username you'll see in the link that you have a number at the end of the url (yours on this board is 2068589).
OPENING_TAGS = The opening tags; <b> for example.
CLOSING_TAGS = The closing tags; </b> for example.

All you need to is keep adding that line as you did with that other code. Here is an example of what one would look like:
Code:
 
styleUsers('1234567', '<u><em><strong>', '</strong></em></u>');
Offline Profile Goto Top
 
.awd (R)
Member Avatar
Member
[ *  *  * ]
Two things:

1. If that is not what the prefix and suffix things are there for what are they there for?
2. Do I need to do that for EVERY MEMBER I HAVE?

EDIT: Never mind, the thing with the prefix and suffix works I just used it
Edited by .awd, Aug 11 2010, 12:09 PM.
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic