The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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. |
Благодарность от: | ||
MarkFL |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
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
|
#5
|
||||
|
||||
Quote:
HTML Code:
<dl class="userinfo_extra"> <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if> <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if> <vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if> <dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd> {vb:raw template_hook.postbit_userinfo_right_after_posts} </dl> |
#6
|
|||
|
|||
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 |
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|