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.
How could I ad a "class" to the li of the first comment?
This discussion has been closed.
Comments
What you need first is to break the strings to have separate instructions for the different <li></li> that you want to invert. Then have a try yourself!!! I think it can be as simple as:
if ( it's the first ) {$CommentList.='<li>...1...</li>';$CommentList.='<li>...2...</li>';} else {$CommentList.='<li>...2...</li>';$CommentList.='<li>...1...</li>';}
That could basically be replicated with this idea: changing the first comment in the discussion to look different. Its the same thing for Swell's comment page: http://lussumo.com/swell/169/Vanilla-114-Package-Problem/#Comments
I'm just saying with this concept: changing the look of the first comment, vanilla could very well be extended outside the realm of forums and into other types of CMS.
Also, you'll have to excuse me. It was 2am when I wrote that and I was falling asleep mid-type.
I don't know how to say in in English, but "forgive to you I give".