Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Directing User Back To Default Calendar after Event Edit

 
Post new topic   Reply to topic     Forum Index -> Hacking Thyme
View previous topic :: View next topic  
Author Message
JennK



Joined: 16 Jun 2006
Posts: 108

PostPosted: Sat Jun 24, 2006 1:33 am    Post subject: Directing User Back To Default Calendar after Event Edit Reply with quote

I want to direct the user back to the default calendar after adding an event. What file handles this?
Thanks,
Jenn
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Sat Jun 24, 2006 4:25 am    Post subject: Reply with quote

include/events.php search for return_url
Back to top
View user's profile Send private message Visit poster's website
JennK



Joined: 16 Jun 2006
Posts: 108

PostPosted: Sat Jun 24, 2006 11:44 pm    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
JennK



Joined: 16 Jun 2006
Posts: 108

PostPosted: Tue Jun 27, 2006 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Tue Jun 27, 2006 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JennK



Joined: 16 Jun 2006
Posts: 108

PostPosted: Wed Jun 28, 2006 8:52 pm    Post subject: Reply with quote

Thanks Ian!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Hacking Thyme All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.