hmm...somehow it doesn't want to update the date of the validity column any more.
No idea why... It did before
I'll try to fix that, your code will probably work then.
I have entered the date manually into the validity column of that user. It shows up in the form now...but no expiry date is displayed I'm afraid.
After removing the entire bit you posted on pastebin....I can update the validity column again. Isn't that weird?
It does work with the old code though. This one:
<?php
if($user->data()->membership == '5cc'){
$length = 6;
}elseif($user->data()->membership =='10cc'){
$length = 12;
}
if(isset($length)){
echo date('Y-m-d', strtotime("+".$length." months", strtotime($user->data()->validity)));
}
?>
It just does not seem to work inside a label. Hah! Who knew!
No idea why... It did before

I'll try to fix that, your code will probably work then.
I have entered the date manually into the validity column of that user. It shows up in the form now...but no expiry date is displayed I'm afraid.
(01-22-2019, 02:12 PM)LBC Wrote: hmm...somehow it doesn't want to update the date of the validity column any more.
No idea why... It did before
I'll try to fix that, your code will probably work then.
I have entered the date manually into the validity column of that user. It shows up in the form now...but no expiry date is displayed I'm afraid.
After removing the entire bit you posted on pastebin....I can update the validity column again. Isn't that weird?
It does work with the old code though. This one:
<?php
if($user->data()->membership == '5cc'){
$length = 6;
}elseif($user->data()->membership =='10cc'){
$length = 12;
}
if(isset($length)){
echo date('Y-m-d', strtotime("+".$length." months", strtotime($user->data()->validity)));
}
?>
It just does not seem to work inside a label. Hah! Who knew!
