Results 1 to 5 of 5

Thread: Howto change calendar?

  1. #1
    samasama is offline Junior Member
    Join Date
    May 2007
    Posts
    2

    Default Howto change calendar?

    Hello,

    I need calendar to show whole day, from 10 to 22 (10am - 10pm) and the week start from monday. Tried to find everywhere but didnt find the right answer. So how to do it?

    Sugar version is 4.5.1

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Howto change calendar?

    Hi,

    In calendar.php there is somewhere further down this code (see below). I believe you can change it easily (NO GUARANTEES, I AM NOT A PROGRAMMER)...

    function get_start_slice_idx()
    {

    if ( $this->view == 'day' )
    {
    $start_at = 8;

    for($i=0;$i < 8; $i++)
    {
    if (count($this->slice_hash[$this->slices_arr[$i]]->acts_arr) > 0)
    {
    $start_at = $i;
    break;
    }
    }
    return $start_at;
    }
    else
    {
    return 0;
    }
    }
    function get_end_slice_idx()
    {
    if ( $this->view == 'month')
    {
    return $this->date_time->days_in_month - 1;
    }
    else if ( $this->view == 'week' || $this->view == 'shared')
    {
    return 6;
    }
    else if ( $this->view == 'day' )
    {
    $end_at = 22;

    for($i=$end_at;$i < 23; $i++)
    {
    if (count($this->slice_hash[$this->slices_arr[$i+1]]->acts_arr) > 0)
    {
    $end_at = $i + 1;
    }
    }


    return $end_at;
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    samasama is offline Junior Member
    Join Date
    May 2007
    Posts
    2

    Default Re: Howto change calendar?

    Does anyone have any further information?

  4. #4
    andreasw is offline Sugar Community Member
    Join Date
    Mar 2005
    Posts
    130

    Default Re: Howto change calendar?

    Hey there,

    I am also interested in a solution.
    Found two other threads: Thread 3739 and Thread 4086 but no working solution has been posted so far.

    Andreas
    Andreas Wilm

    Capsid - Agentur für LifeScience
    http://www.capsid.com/

    ***
    sugar os 4.5.1d
    mysql-5.0.18
    php-5.1.2
    SuSE Linux 10.1

  5. #5
    jfuller70 is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    55

    Default Re: Howto change calendar?

    We use sunbird with the ical patch and that works very well for us.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Howto Change Custom Field Data Type
    By andreasw in forum General Discussion
    Replies: 9
    Last Post: 2011-10-12, 04:07 PM
  2. Replies: 0
    Last Post: 2006-01-17, 07:33 PM
  3. change calendar view
    By groc in forum General Discussion
    Replies: 0
    Last Post: 2005-09-26, 06:58 PM
  4. Calendar day view time change
    By SuperFlies in forum Feature Requests
    Replies: 1
    Last Post: 2005-08-11, 07:30 PM
  5. Calendar - change starting day
    By aleksans in forum Help
    Replies: 0
    Last Post: 2005-07-06, 12:58 PM

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
  •