PDA

View Full Version : postbit template to show number of days registered ?


eva2000
22 Mar 2001, 08:19
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 ?

22 Mar 2001, 08:48
$jointime

But it displays a little bit long number. :)

22 Mar 2001, 08:53
i see it displays something like

113.63356481481


hmmm so is it possible ?

22 Mar 2001, 09:03
Find in showthread.php:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Directly below it place:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



It's not as accurate but really shorter. :)

22 Mar 2001, 09:12
thanks but it came out the same length ?


how would you round it to 2 decimal places
i.e.


113.65

22 Mar 2001, 09:16
ah there are two instances of


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



in showthread.php

i put the extra line after each of the 2 instances and it works

22 Mar 2001, 09:24
Find in showthread.php:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Directly below it place:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now it will be shown as x.xx

22 Mar 2001, 09:40
thanks that worked :)

30 Mar 2001, 21:03
I needed this too, so I used:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

obs
13 Dec 2001, 09:19
how would you do this for version 2.2.0 ?

Scott MacVicar
13 Dec 2001, 15:49
add the code within the getpostbit function in /admin/function.php