I need help with this. Please
-
I need help with this even if only to point me in a direction of something remotely close.
I am using the pay to blog plugin an I need to put this code in the theme of the main blog<?php $blog_expire = get_option('blog_expire'); if ( empty( $blog_expire ) || $blog_expire == '0' ) { $now = time(); $now = $now - 30; $blog_expire = $demo_period_days = get_site_option( "demo_period_days" ); $blog_expire = $blog_expire * 86400; $blog_expire = $now + $blog_expire; update_option('blog_expire', $blog_expire); } if ( time() > $blog_expire ) { echo "yes"; } else { echo "no"; } ?>
so i need it to get the expired blog by the current users blogId. I already know how to get the blog id of the current user, but I dont know how to write the code.
Example: $blog_expire = get_option(‘blog_expire->$user_blog->userblog_id’);or
$blog_expire = get_option(‘blog_expire’) == $user_blog->userblog_id;`I hope that made sense.
any help would be welcomed even a link to something you think might help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘I need help with this. Please’ is closed to new replies.