This topic has 18 replies, 4 voices, and was last updated 10 years by Abe.

  • Author
  • #8565
     Bada
    Participant

    Great theme, keep up the good work!

    Have a question; is it possible to only make profiles and groups visible to logged on users? So that when not being logged on, and one clicks on a profile or group on the home page (or one manually enters a profile URL), the registration pop-up shows (or one is directed to the registration page)?

    Thanks!

    #8627
     Abe
    Keymaster

    Hi,
    That can be restricted using Paid memberships pro plugin. After the install you will have a Memberships submenu under Sweetdate menu. You can check there what you want to restrict

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #8637
     Bada
    Participant

    Great, thx!

    #9009
     studiblog
    Participant

    I checked the option to see profile pages only for logged in users. But if a user is not logged in, he is seeing only a white page instead sth. like please register to see that page. is it possible to do sth. like that?

    #9059
     hdanny83
    Participant

    Same question with studiblog.
    When non logged in person views pages there is only white pages.
    I want to redirect to register page or at least mention that the person should register or log in.

    http://www.Talentree.net

    #9109
     Abe
    Keymaster

    Hi @studiblog and @hdanny83
    The normal behaviour is to get redirected to the Membership levels page. You are encountering an error if you see a blank page. To show the errors in that page please enable debugging in wordpress by settings WP_DEBUG to TRUE in wp-config.php

    I tested this and can’t reproduce this problem. Give us the errors that appear. Also make sure you have the latest theme installed

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9165
     studiblog
    Participant

    Thanks Abe,

    i set a “free” membership level and yes, you are right. if a user is not logged in it is redirected to membership levels page. but i don’t want that. i want, that a logged out user is redirected to the main page to the opened “Sign up” form that is on the top/right corner of the main page.
    (i don’t want to make my users insecure, thats the reason i don’t want to show them the membership levels page. i have only one membership level “free” that is set automatically if a user signs up )

    thanks for help

    #9220
     hdanny83
    Participant
    This reply has been set as private.
    #9223
     studiblog
    Participant

    Hdanny83 your repy was marked as private. Tell me pls. If you know a Solution 🙂 THx a Lot

    #9236
     hdanny83
    Participant

    This is what appeared when I changed WP_DEBUG to TRUE.

    Notice: Use of undefined constant BPRP_ROOT_PATH – assumed ‘BPRP_ROOT_PATH’ in /home/hosting_users/talentree/www/wp-content/plugins/bp-resume-page/bp-resume-page.php on line 11 Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/hosting_users/talentree/www/wp-includes/functions.php on line 3049 Notice: Undefined variable: where in /home/hosting_users/talentree/www/wp-content/plugins/bp-user-profile-map/upm.php on line 343 Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/hosting_users/talentree/www/wp-includes/functions.php on line 3049 Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘bp_activity_tags_register’ not found or invalid function name in /home/hosting_users/talentree/www/wp-includes/plugin.php on line 429 Notice: Undefined property: stdClass::$id in /home/hosting_users/talentree/www/wp-content/plugins/bp-album/includes/bpa.core.php on line 303 Notice: Undefined property: stdClass::$id in /home/hosting_users/talentree/www/wp-content/plugins/bp-album/includes/bpa.core.php on line 304 Notice: Undefined property: stdClass::$id in /home/hosting_users/talentree/www/wp-content/plugins/bp-resume-page/bp-resume-page.php on line 26

    #9246
     Abe
    Keymaster

    Hi @studiblog
    you can redirect users to the registration page by adding this code to sweetdate-child/functions.php and manipulate the redirect

    COPY CODE
    
    // redirect to registration page instead of membership levels page
    add_filter('kleo_pmpro_url_redirect', 'my_custom_redirect');
    
    function my_custom_redirect() {
    	if (is_user_logged_in()) {
    		return pmpro_url("levels");
    	} else {
    		return bp_get_signup_page();
    	}
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9247
     Abe
    Keymaster

    Hi
    Could be a problem with bp-user-profile-map or bp-resume-page plugins. Try to disable them to see if anything changes

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9250
     studiblog
    Participant

    yes, you got it nearly, but it doesn’t work, look: http://spottedfriends.de/members/antonia
    white page with: spottedfriends.de/register (written, not in the URL)

    #9289
     Abe
    Keymaster

    oh.. my bad. I edited the code above because it was echo-ing the register url instead of passing it to the function.
    If it is still the white page please set WP_DEBUG to TRUE in wp-config.php and let me know to take a look

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9290
     studiblog
    Participant

    great everything is working! thx a lot

    #9344
     hdanny83
    Participant

    I did as below.

    1.
    // redirect to registration page instead of membership levels page
    add_filter(‘kleo_pmpro_url_redirect’, ‘my_custom_redirect’);

    function my_custom_redirect() {
    if (is_user_logged_in()) {
    return pmpro_url(“levels”);
    } else {
    return bp_get_signup_page();
    }
    }

    2.set WP_DEBUG to TRUE in wp-config.php

    3. disabled map and resume plugin

    4. it shows
    Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/hosting_users/talentree/www/wp-includes/functions.php on line 3049 // redirect to registration page instead of membership levels page add_filter(‘kleo_pmpro_url_redirect’, ‘my_custom_redirect’); function my_custom_redirect() { if (is_user_logged_in()) { return pmpro_url(“levels”); } else { return bp_get_signup_page(); } } Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/hosting_users/talentree/www/wp-includes/functions.php on line 3049 Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘bp_activity_tags_register’ not found or invalid function name in /home/hosting_users/talentree/www/wp-includes/plugin.php on line 429 Notice: Undefined property: stdClass::$id in /home/hosting_users/talentree/www/wp-content/plugins/bp-album/includes/bpa.core.php on line 303 Notice: Undefined property: stdClass::$id in /home/hosting_users/talentree/www/wp-content/plugins/bp-album/includes/bpa.core.php on line 304

    #9425
     Abe
    Keymaster

    1. How did you add this code? It should be in sweetdate-child/functions.php at the end of the file just before the ?> line

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9428
     hdanny83
    Participant

    It works now!!!
    Thank you very much for your support!!!

    #9501
     Abe
    Keymaster

    Great 🙂
    Don’t forget to rate the theme if you like our work. thanks

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 19 posts - 1 through 19 (of 19 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?