Troubles with Membership Plugin and Registration

Hi there,

I have searched the forums for this issue but can't find anything.

Just a little background on our project:

We are trying to build an online course system using a regular Wordpress install (not multi-site). We are using the Edublogs theme and are hoping to use the Membership plugin to handle registration and access control.

The idea is that there is a public front-end, then the user will sign up and register for one of several online courses. Important note: all courses are free. The courses are just a collection of pages/forums that users get access to via Membership.

We don't require buddypress functionality at this stage.

It seems that this theme and the membership plugin should have all the functionality that we need, but I am running into a bunch of problems. I'll just post the first and biggest here to keep things simple, then move on to the next once this is resolved.

So, problem the first: it seems that Membership is not fully taking over the registration functionality from Wordpress as it should.

For example, although I have turned off the regular wordpress registration in the Settings > General panel, the "Join here" and "Create a new account" links that appear on the Edublogs homepage (see screenshots) still link to the default "/register" URL instead of to the registration page specified in the Membership settings.

This means that people get a message about registration being disabled instead of seeing the actual registration page as intended.

I put a link to the actual registration page in the main nav and that does correctly take people to the registration form. I just don't know how to get the "built-in" registration links that are part of the Educblogs theme to get wise to the registration functionality of Membership.

Thank you in advance for the help!

  • Barry
    • DEV MAN’s Mascot

    For example, although I have turned off the regular wordpress registration in the Settings > General panel, the "Join here" and "Create a new account" links that appear on the Edublogs homepage (see screenshots) still link to the default "/register" URL instead of to the registration page specified in the Membership settings.

    Can you check and see if they are hardcoded into the theme?

  • Justin
    • WPMU DEV Initiate

    Hi Barry -- thanks for your response.

    I can't see any options in the admin interface to change this, so I assume that it's hard coded.

    My knowledge of PHP is too sketchy to be able to look at the theme files and easily tell.

    Is there a simple way to determine this?

    Thanks.

  • cherylennis
    • Flash Drive

    Good luck getting an adequate response on this. I have been dealing with a huge issue on my membership site since MAY 2. It still isn't fixed and I cannot get responses from anyone. Like you, I am not terribly technical and the suggestions they give to fix the problem are either over my head or are just grasping at straws to find an issue rather than fixing the code in their plug-in.

    Also like you, I was very nice and patient at first.....

  • Jonathan
    • The Incredible Code Injector

    Okay, downloaded the theme, and ran a search on it for the wp-signup.php

    Here are the results:

    \edu-clean\header.php (2 hits)
    	Line 173: <?php if( is_home() && str_replace("/","",$_SERVER['REQUEST_URI']) != 'wp-signup.php' && str_replace("/","",$_SERVER['REQUEST_URI']) != 'register' ) { ?>
    	Line 183: <div id="edublog-free"><h3><?php _e("Get started in seconds for free",TEMPLATE_DOMAIN); ?></h3><p><a href="<?php echo home_url(); ?>/<?php if( $bp_existed == 'true' ) { //check if bp existed ?>register/<?php } else { ?>wp-signup.php<?php } ?>" title="<?php _e("Get yourself a free blog",TEMPLATE_DOMAIN); ?>"><?php _e("Join Here!",TEMPLATE_DOMAIN); ?></a></p></div>
      \edu-clean\lib\templates\wp-template\profile.php (1 hits)
    	Line 24: <p class="chk"><a href="<?php echo site_url(); ?>/wp-signup.php" title="<?php _e("Sign up for a new account",TEMPLATE_DOMAIN); ?>"><?php _e('Create a new account',TEMPLATE_DOMAIN); ?></a></p><br />

    So in none geek.
    edu-clean/header.php on line 173
    edu-clean/lib/templates/wp-template/profile.php on line 24

    Both links are hardcoded so you will have to get them to change the theme, or you will have to manually change the links :wink:
    Oh, and there is a little present waiting for ya over here:
    https://premium.wpmudev.org/forums/topic/password-protect-subscription-levels
    Jonathan

  • Justin
    • WPMU DEV Initiate

    Thanks a lot again Jonathan for your help here.

    I was waiting to implement this until I could fix a problem with my child theme. Then I thought about it some more and just used a redirection plugin to send all the signup links to the page containing my membership short code. Done!

    I will still need to go in there to change some wording though, so this is super useful.

    Much appreciated.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.