Membership Plugin Qtn

2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 1, 2010   (RSS)

By (Deleted User) - June 1, 2010

Hello, I am integrating the membership plug-in into a website. It is a great bit of script and I can already see I will have many many uses.

My question?

I have a little bit of javascript that pops up a login panel so the visitor can log in - this is built into the navigation on all pages - how can I set it so that once it logs in it remains on the page that they are currently on?

Thanks Jono

Re: [jonoc73] Membership Plugin Qtn

By Jason - June 1, 2010

Hi Jono,

You have to update your post login url variable in your plugin. If you set it to blank, the user will stay on their current page after logging in:

$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] = ''; // user gets redirected here after login

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/