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 ] Change Color of Post
Topic Started: Jul 19 2011, 10:45 PM (990 Views)
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Board Address: http://s4.zetaboards.com/demonic_skillers
Board Software: (ZetaBoards
Description: (What you want your code to do)

I need a code that will change the post color of certain usergroups like how Runescape does it. Example: http://services.runescape.com/m=forum/forums.ws?13,14,903,62983508

Reason I am asking is because the codes that are in the database either don't work or don't look appealing so I'm hoping someone can help.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I see you've tried Minato's, have you tried this one as well? If so, what were the issues with both of them?
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
I believe that one didn't cover up the entire post bit?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Yes, it appears Viral's code only affects the posting area. Here's a few more versions:

http://resources.zetaboards.com/topic/5095516/
http://resources.zetaboards.com/topic/5094551/
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
That second one looks like it would work? Not sure, it kind of confused me as I'm terrible at the technical aspects of things.

Could you tell me what all I would need to do to install it?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$("tr[id|=post]").each(function() {
var groupClass = $(this).find(".c_username span[class]").attr("class");
if (groupClass != undefined) {
groupClass += "-post";
$(this).addClass(groupClass).next().addClass(groupClass).next().addClass(groupClass).next().addClass(groupClass);
}
});
</script>
Admin CP Posted Image Themes Posted Image Themes Posted Image Edit Theme Appearance
Code:
 
.GroupName-post td {
background: #HEX;
}
Admin CP Posted Image Users & Groups Posted Image Groups Posted Image Group Name

Prefix: [class=GroupName]
Suffix: [/class]

Replace 'GroupName' with the name of the group you use in the class BBCode, the CSS selector and the class BBCode must have the same name, case-sensitive. Replace 'HEX' with the hex color you wish to use for this group, all hex colors start with the number sign, or you can use a color name with no number sign.

Repeat steps 2 and 3 for each group.
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Is there anyway to edit that in the theme to where the font color is changed as well as automatically say bold all posts or change the font?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
.GroupName-post td {
background: #HEX;
font-family: "FONT", sans-serif;
font-weight: 700;
color: #HEX;
}
That will change the background color, change the font, bold the text and change the color of the text.
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Okay, so, I would just change "sans-serif" to whatever font I want, correct?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Change 'FONT' to the font you want to use.
Offline Profile Goto Top
 
Minato
Member Avatar
Let Me Be With You
[ *  *  *  *  * ]
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