Help Edit Code

This topic contains 2 reply and 2 voices, and was last updated by ronilagin 10 years, 12 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
May 1, 2013 at 5:27 am 3049
ronilagin Hello, How can I edit this code to not only check for 0 credits but expired ones as well? <?php $post_count = get_user_meta( get_current_user_id(), 'wpuf_sub_pcount', true ); $post_count = $post_count ? intval( $post_count ) : 0; if ( $post_count ) { include (TEMPLATEPATH . '/search-check-boxes.php'); } else { include (TEMPLATEPATH . '/no-credits.php'); } ?>
May 1, 2013 at 6:15 am 3050
Tareq Hasan Tareq Hasan

[php]
if( WPUF_Subscription::has_user_error() ) {
include (TEMPLATEPATH . ‘/no-credits.php’);
} else {
include (TEMPLATEPATH . ‘/search-check-boxes.php’);
}
[/php]

May 1, 2013 at 2:01 pm 3055
ronilagin ronilagin

Thanks!

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