• I would like to integrate wordpress with my members only section of my site. (members.webscapia.com). I’ve tried to do this by using the code in wp-admin/admin.php. But I cannot get the wp-login.php file to redirect back to members.webscapia.com and keep the user authenticated to the site without having to re-login on every page refresh. Does anyone know how I can do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Since no one knows what software you use in the members-only section, nobody can tell you how to integrate it with WordPress. Generally, though, one of the two products will have to be modified to work with the other. Either you have to modify your members-only section to conform to WordPress’ authentication or vice versa. You may also be able to write a bridge application that would take care of interoperability.

    Thread Starter michaelmuggler

    (@michaelmuggler)

    Sorry, I realized I was not being clear. I have no software for my members only section. Basically it is a php script I programmed my self. But, I’m having trouble modifying my script to conform to WordPress’ authentication service properly. Basically if a non-logged in member goes to the URL then they are redirected to /wp-login.php and then there is a query string that tells it to redirect back to the previous url, but it does not do that. Instead, it redirects to /wp-admin/.

    michaelmuggler,

    there is a query string that tells it to redirect back to the previous url, but it does not do that.

    This is something that needs to be looked at in code. Without looking at the actual code, it’s very hard to say what might have gone wrong.

    Here’s how I once did it inside a theme:

    global $user_ID;
    get_currentuserinfo();
    if ($user_ID == '') {
      header('Location: ' .
        get_bloginfo('wpurl') .
        '/wp-login.php?redirect_to=' .
        rawurlencode($_SERVER["REDIRECT_URL"]));
      die();
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question about site integration’ is closed to new replies.