Redirects the user to a given url instead of displaying the logout message after successfull logout. You may specify the URL to redirect to by adding a new line (withouth the \) to
your settings.php
$Configuration[\'SIGNOUT_REDIRECT_URL\'] = \'target\'
where target is an absolute URL starting with http or a pagename like index.php, categories.php, ... The default is to redirect to index.php.
Other Requirements (if any):
Should work with at least Vanilla 1.1.5 as included library/People/People.Control.Leave.php was last changed in this update. May work with older versions too. But this is untested.
aerocapture I've been waiting for this extension since the first day I used Vanilla, over two years ago. Thanks!
Hmmm.. I seem to be having a bit of trouble. First off, my settings.php file doesn't have:
$Configuration[\'SIGNOUT_REDIRECT_URL\'] = \'target\'
...in the code anywhere. The closest thing I could find is:'
if (!$Allowed) {
Redirect(GetUrl($Configuration, 'index.php'));
...which I then changed to:
if (!$Allowed) {
Redirect(GetUrl($Configuration, 'http://domainname.com/'));
...but after activating the extension in the forum, then uploading the new settings.php file it brings me to the same ol' Vanilla sign in page with this URL:
http://domainname.com/forum/people.php?PageAction=SignOutNow&ReturnUrl=http%3A%2F%2Fdomainname.com%2Fforum%2F
Also, I'm on Vanilla 1.1.6 - I don't know if that's the problem? Any help would be appreciated. Thanks.
Remember to add a ";" after the code above and remove the back-slashes, or it won't work.
Hi people. Has anyone got this working? Where shall we insert the line in the settings.php??
Thanks
Just add a the line at the end of your settings.php.
Addons are custom features that you can add to your Vanilla forum. Addons are created by our community of developers and people like you!
We review addons to make sure they are safe and don't cause bugs. An addon is considered to be "Vanilla Approved" once our review process is complete.