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.
Alternate Discussion Colors
I'm working on a fairly heavily modified theme for Vanilla and there's something I really don't know enough about the framework to handle. Is it possible for an extension to alternate classes for discussion. Basically you'd have style1 and style2 (probably newstyle1 and newstyle2 for new posts) that would be applied back and forth on discussion. I'm more interested in the actual code to do this as I'll have to apply it differently anyway, but I think the extension would be awesome.
Sorry if I'm not explaining it well.
Sorry if I'm not explaining it well.
0
This discussion has been closed.
Comments
1st post is pink.
2nd post is blue
3rd post is pink
3th post is blue
Swap post for discussion if you want.
Is that what you mean?
$RowCount = 0; $Colour1 = 'ClassOne'; $Colour1 = 'ClassTwo'; $RowColour = ($RowCount % 2) ? $Colour1 : $Colour2; while(--Discussion while statement here--) { // Discussion Code Here $RowColour like: class="$RowColour". $RowCount++ }
I'll have a look into trying to implement it into Vanilla later.
Glad some smarter people are interested in this.
I don't believe an extension is possible.