This topic has 6 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #57173
     epinks
    Participant

    I keep getting people who simply create a registration account (I assume trying to gain access to my community features, but never sign up for a paid-membership level. I want them to sign-up for one of the paid membership levels I have created not matter what. I have no intention of allowing them to use the site’s community features without paying for a membership first. How do I ensure this happens, either by directly going to the membership levels page directly and signing up, or by automatically being sent there right after they happen to create a registration account?

    I saw your post about automatic redirect after creating a registration account. I used your code snippet, but I’m not sure if the raw code is all that is needed, or if I have to modify the code someway after it is placed in the Kleo child-theme. Please instruct me. My website is http://www.ultimateproacademy.com

    I’m also not sure how to get rid of the language that shows around the registration fields. This seems distracting to me and I assume the user too. Please help!

    Thank you!

    #57307
     sharmstr
    Moderator

    This is the code you need to redirect after registration: https://archived.seventhqueen.com/forums/topic/how-redirect-after-signup#post-52888 All you need to do is change the url to your levels page.

    To keep people out until they have purchased access, go into Theme Options > Memberships and only allow access to the level you’ve created.

    I dont know what language you’re talking about around the registration fields. Please be more specific.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #57332
     epinks
    Participant

    Is this the code you are referring to? If so, where exactly do I place my website URL? Is it where I see the language http://framevents.com/test/? If not, where exactly. I need your help on this to be sure!

    Also will this code only work for FB integration, regular registration (without FB integration), or both? I ask because it seems to specifically mention ‘fb’.

    COPY CODE
    add_filter('kleo_fb_register_redirect','my_fb_reg_redirect');
    function my_fb_reg_redirect() {	
    	return ' http://framevents.com/test/';
    }

    Lastly, I am referring to the language such as “This field can be seen by: Everyone” that surrounds each entry field. Is this supposed to show during registration process. If not, how do I make sure it does not show? I am ok with entry fields being designated as “required” though.

    Thank you!

    #57333
     epinks
    Participant

    You also mention the following:

    “To keep people out until they have purchased access, go into Theme Options > Memberships and only allow access to the level you’ve created.”

    Currently I have left my three paid levels unchecked, and everything else is checked including “not logged in”; “not members”; etc. Is this the correct way to do this?

    #57335
     sharmstr
    Moderator

    Yes, the code is for FB. You said you had the other code. The code I gave you goes in your childs functions.php file. In the code I gave you, yes, replace the only url in that code with your url to your levels page.

    Yes, that’s how you block access to the Buddypress sections of the website.

    Yes, that language is supposed to show.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #57363
     epinks
    Participant

    This is the code below that I was referring to that I already had, and will put on my Kleo child’s functions.php file. I got it from the following thread https://archived.seventhqueen.com/forums/topic/integrate-registration-and-membership-creation. Is this the correct one?

    If so, are there any specific modification (similar to the FB registration redirect snippet) necessary for it to work properly, or do I simply copy and paste it? If modification is necessary, please be very specific.

    Also, am I correct in assuming that if I want to redirect both regular and Facebook registrations to my Membership Levels page, I should use both of these snippets in my Kleo child’s functions.php file? Is there a proper amount of space necessary between each snippet on the functions.php file for them to function properly?

    I would be very thankful if you can embed the code for both with separate instructions for modifications for each. As you can tell I’m not very familiar with this. So sorry!

    Thank you!

    COPY CODE
    /* Redirect user to levels page until he subscribes for a membership */
    add_action( 'template_redirect', 'my_membersip_restrict' );
     
    function my_membersip_restrict() {
    	global $pmpro_pages, $post;
     
        if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) {
    		if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) {
    			wp_redirect( pmpro_url() );
    		}
        }
    }
    #57393
     sharmstr
    Moderator

    Yes, that code will direct people to the levels page after they log in. Its different than the FB registration but will work as is. Why dont you try it? The worse that will happen is that it wont work and you’ll have to remove it. Dont be afraid. 🙂

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?