User Module and Return Path
Posted: 21 May 2008 03:19 AM   [ Ignore ]
Newbie
Rank
Total Posts:  4
Joined  2007-12-03

Is it possible to use the return= parameter in order to send a notification email to a site administrator when a user updates their profile? How might this be done?

Profile
 
 
Posted: 21 May 2008 08:18 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

I apologize bluebloc, I’m not quite sure what you’re asking smile

The return parameter only controls which template the user redirects to once they finish editing their profile.
As for notifications to be sent to Admin’s when a profile is updated, this is currently not possible, though it is on the Feature Request list wink

 Signature 
Profile
 
 
Posted: 09 June 2008 10:49 PM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

I’m having some issues with the return parameter..

To my knowledge, it works like any other path, so it would be “template group/template”, however, based on what I’ve been trying on 1.6.3, it seems to append this on top of the template group where the form is placed.

So if I had a template group named “signup” and the index is used as the registration page, upon completion of the form, it would bring me to “sitename.com/index.php/signup/signup/welcome” rather than “sitename.com/index.php/signup/welcome”.

It seems that I’m the only one whose had this problem so far as I haven’t found much information about it. Was wondering if you guys had any ideas?

Profile
 
 
Posted: 09 June 2008 11:30 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  14
Joined  2008-04-24

Hey mr_dimsum....are you using it like this:

return="signup/welcome"

or this:

return="{path=signup/welcome}"

I have found that the first one works best for me.

Profile
 
 
Posted: 09 June 2008 11:32 PM   [ Ignore ]   [ # 4 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

Using it as the first one, consistent to what was in the documentation.. So you are having some issues with it as well?

Profile
 
 
Posted: 09 June 2008 11:38 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  14
Joined  2008-04-24

Nah...not having an issue, just wanted to know which one you are using.

Another question...in your site CP, what are the “Admin › System Preferences › General Configuration”...do you have a stray “signup” somewhere in there?  I am pretty sure that if you use:

return="signup/welcome"

It returns “URL to the root directory of your site” / “Name of your site’s index page” / “return value”

Profile
 
 
Posted: 09 June 2008 11:41 PM   [ Ignore ]   [ # 6 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

Nope.. That’s a good idea though.. I’ll have to play with this a bit more to figure out if there are any issues, but I can’t seem to figure this one out.. >.<

Profile
 
 
Posted: 10 June 2008 07:10 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

agun, thanks for the help smile

Mr Dimsum,

This is actually behaving correctly. For whatever reason I don’t quite understand, LOL Mitchell decided he wanted the return parameter to work this way (he’s probably right though, haha).
You have two options here:

return="/signup/welcome"

or this:

return="{path=signup/welcome}"

Let me know if those don’t work for you wink

 Signature 
Profile