Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

[Solved] Comment Count

422422 Developer MVP
edited April 2012 in Vanilla 2.0 - 2.8
< span class="CommentCount"><? php printf(Plural($Discussion->CountComments, '%s comment', '%s comments'), $Discussion->CountComments); ? ></ span>

Ok so the above renders like this: 5 comments

I want to wrap the number in one span, and the word comments in another span.

So its like:

< span class="number">5</ span>< span class="word">comments</ span>

There was an error rendering this rich post.

Best Answer

  • Options
    422422 Developer MVP
    Answer ✓

    hmm perhaps it was ??

    < span class="number">%s</ span> < span class="word">comment</ span>', '< span class="number">%s</ span> < span class="word">comments</ span>
    

    There was an error rendering this rich post.

Answers

  • Options
    422422 Developer MVP
    edited April 2012

    fmd im such a knob, it was staring me right in the face lol

    Strike that, it wasnt lol !

    There was an error rendering this rich post.

  • Options
    422422 Developer MVP
    Answer ✓

    hmm perhaps it was ??

    < span class="number">%s</ span> < span class="word">comment</ span>', '< span class="number">%s</ span> < span class="word">comments</ span>
    

    There was an error rendering this rich post.

  • Options
    peregrineperegrine MVP
    edited April 2012

    It's not clear to me what you want to do as far as the result.

    Can you elaborate?

    what happens with this

    422 said:
    hmm perhaps it was ??

    < span class="number">%s</ span> < span class="word">comment</ span>', '< span class="number">%s</ span> < span class="word">comments</ span>
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    422422 Developer MVP

    My 3rd post was the fix :)

    be prepared for tons of lies today, im on a mission :)

    There was an error rendering this rich post.

  • Options

    Ooooh, I see a new theme coming up in the near near future!

    There was an error rendering this rich post.

  • Options
    422422 Developer MVP

    Yep, been five months since we last made a theme.

    This one is pretty slick, no frills but responsive and clean...

    Mind you, we still get about five sales a day of our other themes.. So pays for my time, i reckon this should take 60 hrs to complete..

    There was an error rendering this rich post.

Sign In or Register to comment.