ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 29th, 2004, 06:34 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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!

Reply With Quote
  #2  
Old January 30th, 2004, 08:40 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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!

Reply With Quote
  #3  
Old January 30th, 2004, 09:30 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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);



Reply With Quote
  #4  
Old February 2nd, 2004, 04:56 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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!


Reply With Quote
  #5  
Old February 2nd, 2004, 08:44 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: return to January on add/edit

Worked like a charm, thanks!


Reply With Quote
  #6  
Old February 3rd, 2004, 11:37 AM
prrk47002 prrk47002 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 275 prrk47002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: return to January on add/edit

Yes, It's a bug. I'll fix this next release.

Reply With Quote
  #7  
Old February 24th, 2006, 10:42 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: return to January on add/edit

You guys are the best

Reply With Quote
  #8  
Old January 27th, 2007, 09:27 PM
fulmater fulmater is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rendon, Tx
Posts: 5 fulmater User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: return to January on add/edit

What ver is this for cause mine is not like this, not even close.

Reply With Quote
  #9  
Old January 27th, 2007, 09:29 PM
fulmater fulmater is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rendon, Tx
Posts: 5 fulmater User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #10  
Old February 1st, 2007, 03:38 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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.

Reply With Quote
  #11  
Old March 8th, 2007, 11:45 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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?

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > return to January on add/edit


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek