PDA

View Full Version : Format photo count on index page


cferrero
28th of October 2006 (Sat), 14:04
On the index page, at the top, is a message:
xxxxx photo pages have been viewed on this site to date

What would I need to do to change the format of the total? I would like thousands to be separated by a comma, so the above would read:
xx,xxx photo pages have been viewed on this site to date

It seems that the $total_view_counter variable is set using SQL and I'm afraid my abilities don't extend that far...

blulegend
28th of October 2006 (Sat), 15:27
basecode/SCRIPT_common_items.php

Around line 82:
print number_format($total_view_counter);

MikeCaine
29th of October 2006 (Sun), 06:36
Didn't version 1.5 also show you how many times a photo had been viewed on each photo page?

I can't seem to find that in this version

cferrero
29th of October 2006 (Sun), 13:55
Marvellous. Thankyou blulegend