Membership Plugin Redirect Glitch
6 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: August 19, 2010 (RSS)
By zip222 - August 19, 2010
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
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
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
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
Re: [zip222] Membership Plugin Redirect Glitch
By Jason - August 19, 2010
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/