ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

To {hits} or not to {hits}? Best way to display (and format) number of times page has been viewed.

September 25, 2013 5:31pm

Subscribe [1]
  • #1 / Sep 25, 2013 5:31pm

    mikeymio

    3 posts

    I’ve been using a simple {hits} tag to display a count of visits on my homepage, but I cannot seem to format this number with necessary commas. (So I’m going for 92,000,000 not 92000000)

    I’ve tested out a few plugins, including “number-format”, “number-formatter” and the “price-format add on”, but it seems that the {hits} doesn’t parse when added to these plugin tags.

    Wondering if there is a better way to display and easily format the number of visitors to my EE site?

    Thank you for any help.


    Mike


    * I’ve checked out this post but I failed to get the two answers to work with the {hits} variable, http://ellislab.com/forums/viewthread/205037/

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases