Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

How to edit the comment count option under every discussion link on home page ?

MaddoxMaddox newb
edited June 2012 in Questions

Hello all. I want to edit the comment count option under every discussion link on home page. As of now under every discussion link on home page, it read 'x comment/comments' where x is the number of comments on that discussion. I want to change the 'comment' label to 'post' so that it will read 'x post/posts'. How can I do it ? On which file I need to edit the code ? I'm unable to find the code to edit.

Best Answers

  • peregrineperegrine MVP
    edited June 2012 Answer ✓
    $Definition['%s comment']='%s post';
    $Definition['%s comments']='%s posts';
    

    see the documentation on locales and themes as well as the wiki. http://vanillaforums.org/docs/localization

    most likely your definition.php in your theme.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    Answer ✓

    @Maddox

    Use Firebug or another element inspector to find out what the element is called, and then in your custom.css file set it to

    display:none
    Maddox
  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    use

    $Definition['%s comment']='';
    $Definition['%s comments']='';
    

    then post an image with what you want to remove circled. I can't understand what you are talking about. The above should remove comment count period - permanently.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    Maddox

Answers

Sign In or Register to comment.