I’m using Discussion Forum v2.1.1.
I’m trying to customize my forum template code to have alternating bg colors for individual posts within a thread so that the first post’s bg color is light, the following reply post has a dark bg, then the next a light, and so on.
I’ve seen some stuff around the forum and tried a few things but I can’t get it to work and I don’t understand it. I’ve seen how it’s used outside of the forum, where it goes in a {exp:search:search_results switch="odd|even"} tag, but there’s no tag like that in the discussion forum templates. Further more, are these “odd” and “even” classes hard-coded into the EE system or can we use any name we choose… like “light” and “dark”?
I’m just really lost on how to achieve this effect on the forum templates, can anyone help?
-Chris