Can Frontendusers redirect based on login info?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Can Frontendusers redirect based on login info?

Post by jmcgin51 »

I have Frontendusers working on my .13 CMSMS install.  Here's what I want to, and I don't know if FEU can do it:

I have several website clients with sites that are currently in development in CMSMS.  I want to put a "Client Login" link on my own page, where my clients can go to see the development progress on their sites.  Can I use FEU to direct a user to a certain page based on his login information?  For example, John logs in and is automatically directed to his site, and Jane logs in and is directed to her site.  For privacy reasons, neither can see the others' site (or even know that it exists).

Thanks in advance.  I've been a hard-coder up to now, and I'm slowly getting the hang of CMS and CMSMS in particular.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Can Frontendusers redirect based on login info?

Post by calguy1000 »

Yes, it can be done with newer versions of frontend users
theck the bottom of the frontendusers preferences tab.

It should mention somthing about  a macro that can be substituted in the various page's to jump to, etc.
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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Can Frontendusers redirect based on login info?

Post by jmcgin51 »

Yup, I saw that, but I don't know how to use it.  Any chance for a brief tutorial on creating/using the macro feature?

Thanks
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Can Frontendusers redirect based on login info?

Post by calguy1000 »

this one's simple.  if you put the string  "X${username}Y" into the page/id alias to jump to after login field,
when user "Joe" tries to login, the system will try to redirect to a page with the alias  XJoeY
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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Can Frontendusers redirect based on login info?

Post by jmcgin51 »

ahhhhhh, very nice...  I'll give it a try - thanks, Calguy!!!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Can Frontendusers redirect based on login info?

Post by jmcgin51 »

looks to work perfectly...

However, I think this works only if there is only one username, because it has to match the page alias.  Any way to allow multiple usernames to access a given page?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Can Frontendusers redirect based on login info?

Post by calguy1000 »

Well you wanted to redirect Joe to his site once he logged in, and Jane to here's when she logged in, so using the examples below, you'd create two pages, one with page alias XJoeY and another with alias XJaneY and then when joe logged in he'd go to his page, and when jane logged in she'd go to her page.

Of course, I could do something with groups, etc, but I thought you wanted different pages for different people.
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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Can Frontendusers redirect based on login info?

Post by jmcgin51 »

no, you're exactly right, and what you said works perfectly.  I'm just picturing a scenario where I need to remove someone's access to view the site.  Under the current rule, I would have to issue a new username (or password) and give them to the people I still want to access the site.  If I could assign multiple usernames to the same redirect, then I could just delete or inactivate the desired username, and the rest of the people wouldn't have to change a thing...

thanks
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Can Frontendusers redirect based on login info?

Post by calguy1000 »

well then, I'm afraid you didn't explain your requirements well enough.  sorry.

What you want is to have a group of people redirect to the same page, and then one one accounts gets expired/deleted for whatever reassoon all of the other people in that group still get redirected.

This is (I think) do-able, but it isn't in the current code.  and I haven't looked into what's involved in changing it at this time.

if you have a scenario where user A get's re-directed to user A's page and user B get's re-directed to user B's page, then feusers will work (I hope) as is expected.

If you have a scenario where user A and B get directed to page AA, because they are a member of group AA, and user C, and D, get directed to page BB because they are both a member of group BB, then I can probably handle that.

what do you think?
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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Can Frontendusers redirect based on login info?

Post by jmcgin51 »

If you have a scenario where user A and B get directed to page AA, because they are a member of group AA, and user C, and D, get directed to page BB because they are both a member of group BB, then I can probably handle that.

Yes, this sounds like it would be an acceptable solution.
Post Reply

Return to “CMSMS Core”