Membership Plugin Redirect Glitch

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.

Re: [zip222] Membership Plugin Redirect Glitch

By Jason - August 19, 2010

Hi,

I'm glad that's working for you now. I think that will be the best way to handle this issue for pages inside the members folder.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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