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 ?
$jointime
But it displays a little bit long number. :)
i see it displays something like
113.63356481481
hmmm so is it possible ?
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. :)
thanks but it came out the same length ?
how would you round it to 2 decimal places
i.e.
113.65
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
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
I needed this too, so I used:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
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
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.