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 ] Post Backgrounds; for each individual user
Topic Started: Jul 23 2011, 02:56 PM (198 Views)
BlazingSol
Member Avatar
Member
[ * ]
Board Address: Private
Board Software: ZB
Description:
What I'm looking for is a script (not a CSS change) that can change the post background, either through Hex or an image, of a specific user. This should affect all of their posts as well, not just topic starters.

Thanks in advance.
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">
function addBg(username, color) {
$("td.c_username:contains(" + username + ")").parent().next().find("td.c_post").css("background", "" + color + "");
}

addBg("USERNAME", "COLOR");
</script>
Replace 'USERNAME' and 'COLOR'. Keep repeating that line for more users.
Offline Profile Goto Top
 
BlazingSol
Member Avatar
Member
[ * ]
Works perfectly! Thanks a ton!

This can be locked as well.
Offline Profile Goto Top
 
Leonardo
Member Avatar
Hakuna Matata
[ *  *  *  *  *  *  * ]
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