Welcome Guest [Log In] [Register]
Welcome to Andzz. 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:
Add Reply
Forum Page: Background Colors for Topic Creators; Official
Topic Started: Mar 31 2013, 08:01 PM (184 Views)
Andzz
Administrator
Code Name: Forum Page: Background Colors for Topic Creators

Description: On specified (or all) forum pages, topics created by specified users will be emphasized a different background color than the others.

Preview: http://w11.zetaboards.com/Andzz/forum/3690029/

Installation: Place Below the Board or Above the Copyright


Code
 
<script type="text/javascript">
// Forum Page: Background Colors for Topic Creators
// Andzz, http://w11.zetaboards.com/Andzz/index/

forums = [3690029,3724312];

users = [];
users[users.length] = [3548909,"#CEE3F6"];
users[users.length] = [3539184,"#CF33A2"];


if(location.href.match("/forum/")){
if(forums.length == 0) go = true;
for(w=0;w<forums.length;w++){
if(location.href.split("/")[5] == forums[w]) go = true;
}
if(go){
for(x=0;x<users.length;x++){
$("td.c_cat-starter a").each(function(){
if(this.href.match("/"+users[x][0]+"/")) $(this).parent().parent().children().css("background",users[x][1]);
});
}
}
}
</script>


Blue
[FORUM1,FORUM2,FORUM3]
These numbers are for the forums you want the code to work in. Example (the number is bolded): http://w11.zetaboards.com/Andzz/forum/3690029/
If you want it to work in all forums, leave it blank. It should say: forums = [];

Red
users[users.length] = [USER1,"COLOR1"];
users[users.length] = [USER2,"COLOR2"];

Each line is for a different user. Just copy and paste the line directly underneath it to add more users.
The USER number is the user ID. It can be found on each user's profile page in the bolded section of the url ex: http://w11.zetaboards.com/Andzz/profile/3548909/
The COLOR is the color you want the background to be. MAKE SURE IT IS IN QUOTES.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes/Modifications · Next Topic »
Add Reply