The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How can i add under the post count of each user the number of days they have been registered on my forum ?
i.e. [b]Username]/b] User title: Registered: Location: Post count: Days since registration: XXX where XXX is the number of days they have been registered.. i'd like to have this available in beta 4 where it can be added with some varibale like $daysregistered so that it can be used as an alternative or additional to the post count. easy to do ? |
#2
|
|||
|
|||
$jointime
But it displays a little bit long number. |
#3
|
|||
|
|||
i see it displays something like
113.63356481481 hmmm so is it possible ? |
#4
|
|||
|
|||
Find in showthread.php:
PHP Code:
PHP Code:
|
#5
|
|||
|
|||
thanks but it came out the same length ?
how would you round it to 2 decimal places i.e. 113.65 |
#6
|
|||
|
|||
ah there are two instances of
Code:
$jointime = (time() - $post[joindate]) / 86400; // Days Joined i put the extra line after each of the 2 instances and it works |
#7
|
|||
|
|||
Find in showthread.php:
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
thanks that worked
|
#9
|
|||
|
|||
I needed this too, so I used:
PHP Code:
|
#10
|
|||
|
|||
how would you do this for version 2.2.0 ?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|