| View previous topic :: View next topic |
| Author |
Message |
JennK
Joined: 16 Jun 2006 Posts: 108
|
Posted: Sat Jun 24, 2006 1:33 am Post subject: Directing User Back To Default Calendar after Event Edit |
|
|
I want to direct the user back to the default calendar after adding an event. What file handles this?
Thanks,
Jenn |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Sat Jun 24, 2006 4:25 am Post subject: |
|
|
| include/events.php search for return_url |
|
| Back to top |
|
 |
JennK
Joined: 16 Jun 2006 Posts: 108
|
Posted: Sat Jun 24, 2006 11:44 pm Post subject: |
|
|
| Thanks! |
|
| Back to top |
|
 |
JennK
Joined: 16 Jun 2006 Posts: 108
|
Posted: Tue Jun 27, 2006 4:09 am Post subject: |
|
|
Hi Ian,
I am still having trouble getting this to work ... I can find return_url and _return_url ... do I just assign them a string value for the URL I want them to go to ...
or could I somehow specify return_url = the default calendar
The reason I am doing it this way is that my client wants to mainly be in the default view which shows all the calendars ... so whenever they schedule on their own calendar they can avoid conflict with other groups. You might want to consider adding as a feature for future release the option to return users to the default calendar upon saving or canceling an event. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Tue Jun 27, 2006 11:17 am Post subject: |
|
|
Yep, just assign it a string. The next line under where $_return_url first appears, do this:
| Code: |
| $_return_url = _CAL_BASE_URL_.'index.php?calendar='.$_cal_user->options->default_cal; |
That should get you what you want |
|
| Back to top |
|
 |
JennK
Joined: 16 Jun 2006 Posts: 108
|
Posted: Wed Jun 28, 2006 8:52 pm Post subject: |
|
|
| Thanks Ian! |
|
| Back to top |
|
 |
|