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 ] Username Color in Forum Index
Topic Started: Aug 11 2015, 05:10 PM (278 Views)
FB92
Member Avatar
Member
[ *  * ]
Board Address: http://ahsfans.xyz/index/
Board Software: Zetaboards
Description: I would like to display the username color in the forum index. So where it show the last post, it should have the color of the username.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
To color a users name there you would have to manually style all usernames individually with CSS by profile ID.
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
Do you know of a code?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You do understand it can't be done automatically and only manually and you are fine with that?
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
Well it would depend where the code would show. The most users will be default so it will only be staff and VIPs to be edited.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Javascripts
Code:
 
<style type="text/css">
td.c_last a[href*="/profile/USER_ID/"] {
color: #HEX;
}
</style>
Edit the capitalized text as necessary.

You can add more selectors to style additional usernames as necessary:
Code:
 
<style type="text/css">
td.c_last a[href*="/profile/USER_ID/"] {
color: #HEX;
}

td.c_last a[href*="/profile/USER_ID/"] {
color: #HEX;
}
</style>
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
That's great, any code for the forums topic list page too?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
For the 'Topic Starter' and 'Topic Info' columns?
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
Yes please.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Combined into one selector:
Code:
 
<style type="text/css">
td.c_last a[href*="/profile/USER_ID/"], table.posts a[href*="/profile/USER_ID/"] {
color: #HEX;
}
</style>
Offline Profile Goto Top
 
Roby
Member Avatar
#27

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