Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: I want calendar "day" to show 6 am to midnight?

  1. #1
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default I want calendar "day" to show 6 am to midnight?

    How can I configure the calendar "day" to show from 6am to midnight? All it shows now is 8 am until 6 pm. I looked all over for that setting and can't find it.

    Thanks.
    Al

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by al3
    How can I configure the calendar "day" to show from 6am to midnight? All it shows now is 8 am until 6 pm. I looked all over for that setting and can't find it.

    Thanks.
    Al
    It is set in Calendar.php

    Look at
    function get_start_slice_idx() & function get_end_slice_idx()
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  3. #3
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by al3
    How can I configure the calendar "day" to show from 6am to midnight? All it shows now is 8 am until 6 pm. I looked all over for that setting and can't find it.

    Thanks.
    Al
    Those default settings are in <sugar-root>/modules/Calendar/Calendar.php with the variables $start_at and $end_at.
    What do you think the cookie monster eats ?

  4. #4
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by DragonflyMaster
    Those default settings are in <sugar-root>/modules/Calendar/Calendar.php with the variables $start_at and $end_at.
    Correct me if I'm wrong but the next update will wipe out any changes I make to calendar.php, right?

    Thanks,

    Al

  5. #5
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by al3
    Correct me if I'm wrong but the next update will wipe out any changes I make to calendar.php, right?

    Thanks,

    Al
    Yes, that's correct.
    ...Unless you find an upgrade-safe way to override these settings.
    What do you think the cookie monster eats ?

  6. #6
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by al3
    Correct me if I'm wrong but the next update will wipe out any changes I make to calendar.php, right?

    Thanks,

    Al
    not necessarily

    It depends if changes have been made to calendar.php

    I keep a document with all changes I make to core files

    Then when upgrading check if any of my files have been overwritten - not perfect but it works
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  7. #7
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by mikesolomon
    not necessarily

    It depends if changes have been made to calendar.php

    I keep a document with all changes I make to core files

    Then when upgrading check if any of my files have been overwritten - not perfect but it works
    That's a good method, but not one I want to follow. The correct "fix" is to make this a config option on the admin screen. Is there a way to ask for new things like this?

    A

  8. #8
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by al3
    The correct "fix" is to make this a config option on the admin screen. Is there a way to ask for new things like this?
    I think you have already found the right place to ask this, in Feature Requests forum.
    What do you think the cookie monster eats ?

  9. #9
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: I want calendar "day" to show 6 am to midnight?

    Couldn't this be set up in a logic hook that sets/overrides the start end variables? As in using the after-retrieve?

    This would make it upgrade safe as the logic hook is int he custom directory.

    Paris

  10. #10
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: I want calendar "day" to show 6 am to midnight?

    Quote Originally Posted by ptemplin7
    Couldn't this be set up in a logic hook that sets/overrides the start end variables? As in using the after-retrieve?

    This would make it upgrade safe as the logic hook is int he custom directory.

    Paris
    Hi Paris,
    could you explain better your idea?
    What do you think the cookie monster eats ?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Show Birthday-Data from Contacts in Calendar
    By calandacomp in forum Help
    Replies: 4
    Last Post: 2009-05-11, 04:31 PM
  2. how to show time in popup calendar in SugarCRM
    By devasis in forum Developer Help
    Replies: 1
    Last Post: 2007-07-25, 03:14 PM
  3. Can tasks show up on shared calendar
    By kparker in forum Help
    Replies: 0
    Last Post: 2006-04-25, 08:33 PM
  4. Replies: 4
    Last Post: 2005-07-25, 10:36 PM
  5. Replies: 0
    Last Post: 2005-04-08, 06:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •