2018-06-04, 10:16 PM
2018-06-05, 06:23 AM
Not quite shore if I understand your question right. But do you mean a own filed where users can put in they're years of service? Example: 5 years of service as a doctor?
If so, in admin, configuration, Custom profile fields, ad new profile fields
If so, in admin, configuration, Custom profile fields, ad new profile fields
2018-06-05, 07:16 AM
Ah I know what you mean. You can use Template Conditionals to do this. Set a variable in the postbit and then do an if statement based on the joined date and what you want the variable to say.
2018-06-05, 09:04 AM
(2018-06-05, 07:16 AM)Wires Wrote: [ -> ]Ah I know what you mean. You can use Template Conditionals to do this. Set a variable in the postbit and then do an if statement based on the joined date and what you want the variable to say.
Well it works fine in the postbit templates.
<if $post['regdate']+(60*60*24*1460) <= TIME_NOW then><span>Four Years of Service</span> <elseif $post['regdate']+(60*60*24*1095) <= TIME_NOW then><span>Three Years of Service</span>
However I want it to work under member_profile template.
2018-11-06, 03:53 PM
try this change $post['regdate'] to $memprofile['regdate']
<if $memprofile['regdate']+(60*60*24*1460) <= TIME_NOW then><span>Four Years of Service</span> <else if $memprofile['regdate']+(60*60*24*1095) <= TIME_NOW then><span>Three Years of Service</span>
<if $memprofile['regdate']+(60*60*24*1460) <= TIME_NOW then><span>Four Years of Service</span> <else if $memprofile['regdate']+(60*60*24*1095) <= TIME_NOW then><span>Three Years of Service</span>