Closed (won't fix)
Project:
Login Destination
Version:
6.x-2.5
Component:
Miscellaneous
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2007 at 16:32 UTC
Updated:
19 Mar 2010 at 20:01 UTC
I am a newbie and really lost. I have several roles setup for users and I want to create a redirect page after login so that different splash pages are displayed depending on user role. What is the best way to make this happen?
Comments
Comment #1
ardas commentedGreetings,
The snippet will look like this:
Comment #2
ardas commentedComment #3
sander-martijn commentedHi,
since this is probably the most logical way to use this module (role based over user based is always more maintainable unless each of your users have to do something completely different) it would be great to add this snippet to the main page.
Comment #4
wintervanilla commentedI dont write PHP but I'd like to achieve the following functionality for a homepage:
- Logged in users with an account are forwarded to a dashboard-style page /user/dashboard
- Users without an account, or not logged in, are sent to the normal homepage.
- In the future, I may like to forward each role to a different url.
Can someone suggest a lower-brow module to achieve this. Or perhaps supply me with the snippets I need to achieve this with Login Destination?
Thanks!
Comment #5
wintervanilla commentedI dont write PHP but I'd like to achieve the following functionality for a homepage:
- Logged in users with an account are forwarded to a dashboard-style page /user/dashboard
- Users without an account, or not logged in, are sent to the normal homepage.
- In the future, I may like to forward each role to a different url.
Can someone suggest a lower-brow module to achieve this. Or perhaps supply me with the snippets I need to achieve this with Login Destination?
Thanks!
Comment #6
iimitk commentedI couldn't agree more with the post above.
This is what I've downloaded this module for, and role-based login redirection is by far more important & useful than user-based redirection.
I, too, suggest that role-based redirection be built as the core functionality of this module. Particularly, the module's interface should be revised so as to populate the roles programmatically and enable admins to assign pages to them, instead of the PHP snippet method, which might confuse non-coders admins.
Edit: I'm sorry, just noticed this an old thread from an year ago. My suggestion is still viable though, as I'm using the latest D6 version and the functionality I've described applies to this newest version as well. :)
Comment #7
kenorb commentedThere is 'front' module as well for set front page per role, but it's not working properly for me (tested on 6.x), but you can try it, you don't need to put any PHP code.
Comment #8
jimmb commented+1
Comment #9
jimmb commentedIt sure would be nice (and I assumed it was the case until installing/enabling it) that there would be checkboxes for each role, and you could choose which roles would experience the redirect when logging in.
Jim
p.s. - sorry for the double-post. I was trying to update it with my current version, 6.x-2.5.
Comment #10
rsvelko commentedComment #11
wallbay1 commentedsubscribing
Comment #12
3cwebdev commentedI personally don't see a need for a user roles UI in the admin. You can easily add a PHP snippet in the condition and destination boxes to achieve this with a great deal of flexibility.
Comment #13
3cwebdev commented