![]() |
Show how many days registered for a user
Hi
I'm trying to display how many days users have in postbit, but after trying a lot of thing I have failed, so any help will be appreciate. Thanks |
A "fast" way to do it is the following (no plugins or addons etc):
Open template "postbit_legacy" and place the following code: HTML Code:
<dt>Registration Days</dt> <dd><vb:if condition="$post[sc_joindays] = floor(abs((TIMENOW - $post[joindateline])/60/60/24))"></vb:if>{vb:raw post.sc_joindays}</dd> I have not test it much, just I wrote it fast for now. :) |
Thank you, I will test it and let you know the result :)
--------------- Added [DATE]1462149935[/DATE] at [TIME]1462149935[/TIME] --------------- It works like a charm, thank you too much :) |
I'm new to all this and really don't know what I'm doing but do I delete the code that is there now or just add this code in somewhere? Thanks
|
Quote:
HTML Code:
<dl class="userinfo_extra"> |
ok, wasn't sure and didn't want to accidentally delete it all lol Thanks!
--------------- Added [DATE]1462574693[/DATE] at [TIME]1462574693[/TIME] --------------- lol yup damn new guys...I thought it was in wrong place so clicked back instead of just continue. looks good! ty |
All times are GMT. The time now is 01:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|