• Resolved geofeedz

    (@geofeedz)


    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)
  • Thread Starter geofeedz

    (@geofeedz)

    Can anyone please help me what this?
    I really need help.

    How about the support team from where you purchased the plugin?

    Thread Starter geofeedz

    (@geofeedz)

    They have the plugins I need but, their support is the worst in the world. I have posted this exact same issue in their forum, but have yet to receive a reply. They do not help by email, and their live chat is only 3 days per week and for only one hour. I plan to give them one more day until I give them a piece of my mind.

    Please if you know anything that might help just post the link. I am trying to learn php so I will do the work to figure it out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I need help with this. Please’ is closed to new replies.