|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
return to January on add/edit
Ok, I'm still working on figuring this out, but hopefully someone has already done it to save me some time...
When I add/edit an event, after opening to the default month (January), logging in, and moving to another month, say, February, after I submit the entry or edit, it flops back to the current month. Is there any way to get the calendar to stay on the month you're working on, instead of automatically returning to the current month after each action? I do want it to default to current initially; I just don't want users to have to constantly flop months while adding their events. Thanks! |
|
#2
|
|||
|
|||
|
RE: return to January on add/edit
Ok, I just realized this is on the wish list.
Any news on how it's coming? I LOVE this calendar, but I can't use it unless I can get it to stop bouncing back to January (or the current month) after each action... I swear I've tried everything...help! |
|
#3
|
|||
|
|||
|
RE: return to January on add/edit
I made these changes a while ago to my calendar to fix the problem you describe. I think this is all I had to do, although it was some time ago and the old memory is not what it use to be. Give it a try... In ltweventmgr.php: Line 208 jsClosePopupReloadMain($this->php_self."?display=".$this->returnto); change to $this->rYear = sprintf('%04.4d',$_POST['sYear']); $this->rMonth = sprintf('%04.4d',$_POST['sMonth']); jsClosePopupReloadMain($this->php_self."?display=".$this->returnto."&month=".$this->rMonth."&year=".$this->rYear); Line 252 jsClosePopupReloadMain($this->php_self."?display=".$this->returnto); change to $this->rYear = date("Y",strtotime($this->event->event_date)); $this->rMonth = date("m",strtotime($this->event->event_date)); jsClosePopupReloadMain($this->php_self."?display=".$this->returnto."&month=".$this->rMonth."&year=".$this->rYear); Line 590 jsClosePopupReloadMain($this->php_self."?display=".$this->returnto); change to $this->rYear = sprintf('%04.4d',$_POST['sYear']); $this->rMonth = sprintf('%04.4d',$_POST['sMonth']); jsClosePopupReloadMain($this->php_self."?display=".$this->returnto."&month=".$this->rMonth."&year=".$this->rYear); |
|
#4
|
|||
|
|||
|
RE: return to January on add/edit
Thanks so much, I'll give it a shot and let you know if it works!
I can't TELL you how much I appreciate your help! |
|
#5
|
|||
|
|||
|
RE: return to January on add/edit
Worked like a charm, thanks!
|
|
#6
|
|||
|
|||
|
RE: return to January on add/edit
Yes, It's a bug. I'll fix this next release.
|
|
#7
|
|||
|
|||
|
RE: return to January on add/edit
You guys are the best
|
|
#8
|
|||
|
|||
|
RE: return to January on add/edit
What ver is this for cause mine is not like this, not even close.
|
|
#9
|
|||
|
|||
|
RE: return to January on add/edit
//////////////////////////////////////////////////////////
// if default start & end times were configured // set them up ////////////////////////////////////////////////////////// if ( $this->default_start_time != 0 ){ Thats line 205 - 213 not even close to the threads. Can any one help me get the cal to stay on the month I am editing please.. Thanks |
|
#10
|
|||
|
|||
|
RE: return to January on add/edit
The lines of code that you show in your post are at lines #103 - #107 of the ltweventmgr.php file in the current version 4.2.1.
At least the first modification shown in this thread exists in the latest version of the file (I did not check for them all being present) at lines #214 - #216. Perhaps post your version so someone will have a point of reference to help you. |
|
#11
|
|||
|
|||
|
RE: return to January on add/edit
For me say i go to july 2007 and then login it will go back to march 2007, same for if i add/edit an event
ahhhhhhhh is there a way to stop this and make it send you back where ou came from? |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > return to January on add/edit |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|