Home Forums WordPress Plugins Coming Soon How to Find Site

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • envecreative
    Participant

    I installed the plugin and it works and looks great, but how do I see the look of the actual site while I’m in “Under Construction” mode? My client and I will need to be able to still the the actual site, even though it’s hidden using your plugin. Which URL do I use?

    Max
    Keymaster

    Hi,

    when you log in in the wp-admin you are able to see the site. This is the only way. Give the username and password to your client and then he/she would be able to see the site.

    Let me know if you need more assistance.

    envecreative
    Participant

    OK, thanks. Problem is that I don’t want my client to have admin-level access to the backend of the site. So is there a way to add an additional user level (preferably something very limited like Subscriber) to those who can view the site without granting access to the entire backend structure? I’d really rather not have to worry about clients fiddling with the content.

    Thanks!

    Max
    Keymaster

    Hi,

    open the tf_maintenance-maintenance-plugin.php and find there this code:

    public function check_user_capability()
    {
    if ( is_super_admin() || current_user_can('manage_options') ) return true;

    return false;
    }

    and replace it with this one:

    public function check_user_capability()
    {
    if ( is_super_admin() || is_author() || current_user_can('manage_options') ) return true;

    return false;
    }

    Then create a new user from users menu and give author rights to that user. This user wouldn’t be able to edit anything but would be able to view the site when would login to dashboard.

    Max
    Keymaster

    The user logged in to wp-admin?

    envecreative
    Participant

    Yes, he was logged into his account, and he has been changed to an author. His login info is below so you can test it out. Thanks!

    Max
    Keymaster

    Hi,

    sorry for a late response. I’ve found the solution for all users. The user can be even subscriber. Just find this code in tf_maintenance-maintenance-plugin.php :

    public function check_user_capability()

    {

    if ( is_super_admin() || current_user_can(‘manage_options’) ) return true;

    return false;

    }

    and replace it with this one:

    public function check_user_capability()

    {

    if ( is_super_admin() || is_user_logged_in() || current_user_can(‘manage_options’) ) return true;

    return false;

    }

    The site would be visible for all users that are logged in. I’ve tested and is work.

    Max
    Keymaster

    I’ve already made the changes for you and it works.

    WaxLily
    Participant

    Need same thing. Not comfortable giving client access to full back-end, just want him to be able to log in & view the site – he is a difficult man and would most likely try to mess it up! Didn’t expect it to be this difficult to show client the site for proof. I see the code above ; I’m trying to override w/

    public function check_user_capability()

    {

    if ( is_super_admin() || is_user_logged_in() || current_user_can(‘manage_options’) ) return true;

    return false;

    }

    But the plugin editor won’t let me override the file; It’s giving me an error of “this file doesn’t exist” .. Even though it does, because I have it opened in front of me.

    Max
    Keymaster

    Hi,

    just connect to your ftp account and edit files from there and it would work for sure.

    Cheers,

    Max.

    WaxLily
    Participant

    OK I will try it. Just don’t want to break the php — unfamiliar territory!

    WaxLily
    Participant

    OK my whole site is broken. Gone. I broke it .. NOOO! I tried putting back original code, but I must’ve screwed something up — can’t even log in to my WP dashboard!!!!

    PLEASE HELP. This should have been easier :(

    WaxLily
    Participant

    What is the point in using your Maintenance Mode plugin if this is how difficult it is? I could have simply put up my own “coming soon” page w/ a redirect & this would not be happening. I can’t even work on my site now!!

    Max
    Keymaster

    Please provide ftp details and I would fix. The plugin is not hard to use at all.

    WaxLily
    Participant

    I just uploaded the original copy of the plugin I had backed up & everything seems fine now.

    Yes, the plugin is very simple and convenient, but in the future it would be nice to see the capability to add clients as subscribers so they can view progress w/o having full access to the dashboard. Seems obvious to me! Thanks for your response.

Viewing 15 posts - 1 through 15 (of 16 total)