latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

getting EOT to show in member profile widget

Home › Forums › Community Forum › getting EOT to show in member profile widget

This topic contains 2 replies, has 2 voices. Last updated by  Eduan 4 years, 5 months ago.

Topic Author Topic
Posted: Tuesday Aug 7th, 2012 at 1:18 pm #21385
lisa carr
Username: pageadmin

Hi –
i found an older post about displaying a member’s EOT time within their profile.

i added the code:

<?php
$s2member_auto_eot_time = get_user_field('s2member_auto_eot_time');
if (!empty($s2member_auto_eot_time)) 
	echo '<h6>Membership expires on ' . date('M-d-Y', $s2member_auto_eot_time) . '</h6>';
?>

to the s2 login widget area under the “when logged in” area in the Additional XHTML/PHP Code.
when i tested it on a test user with a EOT date of 03/31/2013, i get nothing in the profile….no “membership expires on….”

Am i doing something wrong?!

  • This topic was modified 4 years, 5 months ago by  lisa carr.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Tuesday Aug 7th, 2012 at 1:29 pm #21388
lisa carr
Username: pageadmin

i just found the problem…..the import didn’t add the EOT date – so i manually put it in and it worked.

Posted: Tuesday Aug 7th, 2012 at 9:14 pm #21448
Eduan
Username: Eduan
Moderator

Hello Lisa,

Thanks for the update, glad you got it working. :)

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.