View Full Version : Simple Request
this should be simple for you guys.... but i'm not a php expert.
you see (right under the avatars) where it says Registered: (registration date). how would i change it from when a person registered to the number of days since he/she registered?
Overgrow
17 May 2001, 17:06
Didn't test this, may not work the first time :D
find in showthread:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
change to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
actually.... i cant find that in showthread.... are you sure it's there?
Overgrow
17 May 2001, 17:47
It may be slightly different depending on what version you are running. Just search for $userjoindate and that should be the only place you find it.
There was a mistake in that first code, instead replace it with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Still not tested though, just saw an error.
i'm using rc3 and i still cant find it.
tubedogg
17 May 2001, 19:37
try $post[joindate] instead ;)
Overgrow
17 May 2001, 20:24
Oops forgot my standard disclaimer:
I don't run 2.x, I doubt I will ever run 2.x, I just own the code for reference. Sorry, seems that variable changed in RC3 which I haven't downloaded yet.
thanks td
thanks for the help..... but how would i use $post[joindate]
never mind... i've found an alternative. i'v change in post bits
registered: $joindate.........
to
registered: $jointime
i then edited showthread from
$jointime = (time() - $post[joindate]) / 86400;
to
$jointime = round ((time() - $post[joindate]) / 86400, 0);
method84
30 May 2001, 14:17
I am new to PHP...where would I edit this info? what file? Thanks.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.