01-22-2019, 01:22 PM
(01-22-2019, 01:17 PM)LBC Wrote:(01-22-2019, 01:11 PM)mudmin Wrote: Nope. That's fine.
if($user->data()->membership == '5cc'){
$length = 6;
}elseif($user->data()->membership =='10cc'){
$length = 6;
}
if(isset($length)){
echo date('Y-m-d', strtotime("+".$length." months", strtotime($user->data()->validity)));
}
I think that will do it.
So this is going to show the length for the logged in user. Does your account have a membership and validity set?