Ok, so far everythings going well... Now i need to do something to the firstcomment a little more complicated, just not sure how to do it... I want to move the comment header to the bottom for just the first comment. how might i go about this one??? All i can figure is in the comments.php file we're gonna ad one or two "if thens"...
I guess you're right, everything is in the comments.php file, and you'll need a 'if', but no 'then' . 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>';}
Now looking at the rest of the Vanilla areas here, with this kind of concept, you could basically build an "Addon"esque vanilla install. Same for Swell. I think you could do a lot with this very concept.
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.
:oP "Grahack" you're really helping me to learn even more about vanilla and php :) thank you so much... Hopefully i'll have alot of people wanting to use the theme i'm building here :)
wayne
I would totally use it. Especially to learn off to put into different needs that I have that this could totally work for. Its a great idea. Keep rolling with it.
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".