Results 1 to 4 of 4

Thread: Restrict website

  1. #1
    Thread Starter
    Veteran sssdornier's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    473
    Thanks
    10
    Thanked 12 Times in 11 Posts

    Restrict website

    Hello

    1) what is tooltip in forms.

    2) how many fields can be inserted in form

    3) How to remove the big image under menu in homepage.

    4) How to make entire website restricted such as no one can see any page and if a page is clicked, the user is redirected to login page. Only logged in user can access the contents. I want to restrict entire site. I tried plugins such as "restricted site access" and also used these codes on function.php but everytime browser was saying error too many redirects , this page has redirect loop-

    add_action( 'wp', 'member_only_site' );
    function member_only_site( ) {
    if ( ! is_user_logged_in( ) ) {
    auth_redirect();
    }
    }

    function redi() {global $pagenow;if (!is_user_logged_in() && $pagenow != 'wp-login.php') {wp_redirect('wp-login.php?action=register');}} add_action('template_redirect', 'redi');
    global $pagenow; $accessible_pages = array('wp-login.php'); if ( !is_user_logged_in() && !in_array($pagenow, $accessible_pages) && !is_admin() ) { auth_redirect();}

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,956
    Thanks
    169
    Thanked 3,405 Times in 3,276 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Veteran sssdornier's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    473
    Thanks
    10
    Thanked 12 Times in 11 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,956
    Thanks
    169
    Thanked 3,405 Times in 3,276 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Restrict Job Listers
    By garethlermagh in forum Help Using JobRoller
    Replies: 3
    Last Post: November 19th, 2016, 10:43 AM
  2. Restrict posting into my website to a certain state residents
    By nxhamo in forum Help Using ClassiPress
    Replies: 2
    Last Post: June 20th, 2012, 10:11 PM
  3. Restrict one dropdown from another
    By mijmu in forum WordPress General Discussion
    Replies: 3
    Last Post: August 2nd, 2011, 09:22 PM
  4. [MOD NEEDED] How can I restrict post ad ...
    By maurixius in forum ClassiPress General Discussion
    Replies: 6
    Last Post: January 17th, 2011, 02:48 PM