Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-01T05:06:03-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15332 2011-10-01T05:06:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15332&p=42056#p42056 <![CDATA[Re: Time Expire Fix [HELP]]]> WP Admin -> s2Member -> API / Scripting -> Advanced/PHP Conditionals

Code:
if (current_user_is('s2member_level0')) { 
   echo 
'No Time Added';
}
 

Statistics: Posted by Cristián Lávaque — October 1st, 2011, 5:06 am


]]>
2011-09-29T23:43:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15332&p=41951#p41951 <![CDATA[Re: Time Expire Fix [HELP]]]> Statistics: Posted by bakinblack — September 29th, 2011, 11:43 pm


]]>
2011-09-29T23:33:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15332&p=41950#p41950 <![CDATA[Re: Time Expire Fix [HELP]]]> Statistics: Posted by Cristián Lávaque — September 29th, 2011, 11:33 pm


]]>
2011-09-27T18:34:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15332&p=41718#p41718 <![CDATA[Time Expire Fix [HELP]]]>
this is the code I am using

Code:
<?php  if (is_user_logged_in()) {
          $user = wp_get_current_user();
          echo ' <strong>'.$user->display_name.'</strong>, ';
                        } else { ?>
                 Please <strong>
                  <?php wp_loginout(); ?>
                  </strong>
                 or <a href="<?php echo get_option('home'); ?>/wp-login.php?action=register"><strong>Register</strong></a>
                 <?php } ?>
                 </strong></font>
                
                 <font size="3" face="arial" color="black">You're time will expire on:</font> <br />
                
                 <font size="3" face="arial" color="black"><?php echo date('l F jS, Y', get_user_option('wp_s2member_auto_eot_time', $user_id));  ?></font>
               


This will echo to the user....

Billy, You're time will expire on:
Thursday January 1st, 1970

Users that have unlimted time see the "Thursday January 1st, 1970" I want that to be replaced with text just saying "Unlimited"


It would be so great if I can get some help on this. Thanks

Statistics: Posted by bakinblack — September 27th, 2011, 6:34 pm


]]>