Custom redirect after login

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm
Location: Calgary, Alberta, Canada

Custom redirect after login

Post by tophers »

We've built an extranet for a client, and now they've requested a new feature - highlights from various modules on the login page, hoping to entice their employees to login and view the site. The login isn't the default page - the home page checks to see if you're logged in, and if not you are redirected to a login page.

My question is - can I have a non-logged in user click on an article on the login screen (say News, Calendar or Blog), capture the link to that article, trigger a modal window to prompt them to log in, then upon successful login direct them to the article they clicked on?

I'm running CMSMS 1.11.7, but we can upgrade if this functionality requires it.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Custom redirect after login

Post by calguy1000 »

You'd prolly have to do it via a combination of javascript, a cookie or custom url parameter, and some smarty magic.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm
Location: Calgary, Alberta, Canada

Re: Custom redirect after login

Post by tophers »

That's what we were thinking - at this point though I'm not sure where to start. Anyone out there tackled something similar?
Post Reply

Return to “Modules/Add-Ons”