WEBSITE_LOGIN_POST_LOGOFF_URL
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 21, 2010 (RSS)
By aev - June 20, 2010
Hi,
Inside the Website Membership plugin I'm trying to set the logoff redirect url using a setting from the "General Settings" section, like this:
But I'm getting this error:
Shouldn't this be possible? It would certainly be convenient :)
-aev-
Inside the Website Membership plugin I'm trying to set the logoff redirect url using a setting from the "General Settings" section, like this:
$GLOBALS['WEBSITE_LOGIN_POST_LOGOFF_URL'] = $SETTINGS['websiteUrl']; // user gets redirected here after logoff
But I'm getting this error:
Notice: Undefined variable: SETTINGS in /home/users/clientname/www/cmsAdmin/plugins/websiteMembership.php on line 17
Shouldn't this be possible? It would certainly be convenient :)
-aev-
Re: [aev] WEBSITE_LOGIN_POST_LOGOFF_URL
By Jason - June 21, 2010
Hi,
This is definitely possible. All you need to do is get a copy of the global variable $SETTINGS.
In your websiteMembership.php, just above the line that says:
// UPDATE THESE VALUES
try this code:
This will allow you to use the $SETTINGS variable on that page.
Hope this helps.
This is definitely possible. All you need to do is get a copy of the global variable $SETTINGS.
In your websiteMembership.php, just above the line that says:
// UPDATE THESE VALUES
try this code:
global $SETTINGS;
This will allow you to use the $SETTINGS variable on that page.
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/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/