The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vB PHP Counter Script - almost ready
Hello,
I use the following script to show a counter in FORUMHOME or wherever I want: PHP Code:
Just one thing: The numbers are shown like this: 21458754 without a "." to mark a thousand - how can I change this? Thanks, -Tom |
#2
|
|||
|
|||
$daily_hits = vb_number_format($daily_hits); should do the trick.
|
#3
|
||||
|
||||
Hmm, now it get's reset when it reaches 1000
The data is stored in the datastore table, which is of type 'mediumtext', if this is any help... |
#4
|
|||
|
|||
It only reaches a maximum of 1000 in your datastore table?
|
#5
|
||||
|
||||
Only if I place the a.m. code
PHP Code:
|
#6
|
|||
|
|||
Are you placing that code before or after your update queries?
|
#7
|
||||
|
||||
Ah - I see what you mean.
Now I placed the line at the very end and it works like a charm. Good one - many thanks, that's great |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|