Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • ivarzLV
    Participant

    @ivarzlv

    There’s no actually need any plugins, you can easily do this by adding these lines to your themes function.php file:

    `<?php

    add_action( ‘wp’, ‘custom_private_area’, 3 );
    function custom_private_area(){
    global $wp;
    if (!is_user_logged_in()){
    if ( bp_is_activation_page()
    || bp_is_register_page()
    || is_page_template( ‘wp-login.php’ )
    || ( in_array( $GLOBALS[‘pagenow’], array( ‘wp-login.php’ )))
    )
    return;
    bp_core_redirect(get_option(‘siteurl’) . “/wp-login.php”);
    exit;
    }
    }

    ?>


    ivarzLV
    Participant

    @ivarzlv

    Hi,

    You need to disable activity tab on profile page? Please give more detailed information what you are trying to do.


    ivarzLV
    Participant

    @ivarzlv

    True, but how to create “Login with…” button who have feature that allows ONLY already registered site members log in with social profiles?

    Main idea – there is button for registration (will sent e-mails with invite links also), after registration site moderator will check and accept/decline. After that registered and approved user will have possibility to log in into website with his/her Facebook and Twitter profile but if user is not approved by moderator, user cannot log in with social profile.

    How to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar