Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Color Categories
Is there a way to to apply colors to categories? I'd like each discussion of the category to have it's own panel color, before and after being viewed. Hopefully these colors could appear in the full discussions list, and the categories list too.
I guess categories list would be seperate.
I'm not a code monkey and don't know where to start. Help please.
0
This discussion has been closed.
Comments
Category_1, Category_2, etc.
If you make your own folder in /themes, then copy one or both of those files into it, you can experiment with changing them. The file discussion.php determines how the discussions are listed out.
I'd guess you can pull the value of the CategoryID and apply it to the discussion list as a class, something along the lines of class="category_'.$Discussion->CategoryID.'" You can see how its employed in that file, for instance in generating the URL for the category.
You could then style .category_1 using CSS and in combination with NewComments and NoNewComments get your two states.
EDIT: Just perusing the HTML soruce of this page I can see that the categoryID is already passed into a class, e.g.
<li id="Discussion_2282" class="Discussion Read NewComments Category_10"> or <li id="Discussion_533" class="Discussion Closed Sticky Read NoNewComments NoReplies Category_16">
You should be able style Category_.. and NoNewComments / NewComments to get what you want