Membership Plugin Redirect Glitch

By zip222 - August 19, 2010

I have found a minor glitch in the membership plugin that I think is related to the . i have a section of a site that is using the plugin, and all of the files live in a single folder... /members/

If I not currently logged in and I try to load the section by typing the URL "http://www.domain.com/members/" without including "index.php" at the end, it redirects me back one folder level to this url: http://www.domain.com/login.php?loginRequired=1

But if I include "index.php" it works fine. And without the membership plugin the index file loads as it should.

My Global URLs are set like this:
$GLOBALS['WEBSITE_LOGIN_LOGIN_FORM_URL'] = 'login.php';
$GLOBALS['WEBSITE_LOGIN_SIGNUP_URL'] = 'signup.php';
$GLOBALS['WEBSITE_LOGIN_REMINDER_URL'] = 'reminder.php';
$GLOBALS['WEBSITE_LOGIN_PROFILE_URL'] = 'profile.php';
$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] = 'index.php';
$GLOBALS['WEBSITE_LOGIN_POST_LOGOFF_URL'] = 'login.php';

Re: [zip222] Membership Plugin Redirect Glitch

By Jason - August 19, 2010

Hi,

Does members/index.php require you to login before you can view it? Where do you want the redirection to go?


Let me know and I'll see what we can figure out.

thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Membership Plugin Redirect Glitch

By zip222 - August 19, 2010 - edited: August 19, 2010

yes, members/index.php requires login
the redirect for a non-logged in user should go to members/login.php

there is a wrinkle, which is that I can't include "/members/" in the global urls because I am using the plugin for another directory as well.

Re: [zip222] Membership Plugin Redirect Glitch

By Jason - August 19, 2010

Hi,

You could try replacing the website membership redirect on your members/index.php page to this:

<?php if(!$CURRENT_USER){
redirectBrowserToURL("login.php");
exit;
}
?>


This should redirect you to the login.php that's in the members folder and not the one outside of it.

Give that a try. Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Membership Plugin Redirect Glitch

By zip222 - August 19, 2010

That's not working. It's still forcing me out a level. But if I include the "members/" or "/members/" it works.