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.

Need weird PHP help (2.1.5)

ZhaanZhaan Professional fool ✭✭
edited November 2014 in Vanilla 2.0 - 2.8

So.. I'm currently styling the "comment count" and "view count" for my new theme, but I need to make it display two zeros before each singular number. Like this:

Discussion (001 comments)

instead of

Discusion (1 comments)

..however, I do not want discussions with 3 or more digits to be affected.

I know it might sound silly, but this would help me achieve the weirdo style I'm going for. :)

Looking into the code.. I found this in views>discussions>helper_functions, and thought maybe it could be edited:

               '%s  html', '%s  html', '%s ', '%s '),
               BigPlural($Discussion->CountComments, '%s '));

What do you think? I'd appreacite any help here. :)

Best Answer


Sign In or Register to comment.