Results 1 to 5 of 5

Thread: shared calendar

  1. #1
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    472

    Default shared calendar

    Hi everyone, I just integrated bugs records with calendar, buth no with shared calendar...
    Looking at the code, I think I should edit the function calendar->add_activities , right?
    Thanks in advance, Daniel
    Creación de páginas web
    http://www.barataweb.es/

  2. #2
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    472

    Default Re: shared calendar

    Solved!!
    I edited the function template_echo_slice_activities_shared from the file templates_calendar.php.
    Best regards, Daniel
    Creación de páginas web
    http://www.barataweb.es/

  3. #3
    mminnie's Avatar
    mminnie is offline Sugar Community Member
    Join Date
    May 2005
    Location
    Sacramento, CA
    Posts
    97

    Default Re: shared calendar

    Quote Originally Posted by garciasanchezdaniel View Post
    Solved!!
    I edited the function template_echo_slice_activities_shared from the file templates_calendar.php.
    Best regards, Daniel
    Any code snippets you would like to share with everyone?


    If I'm stubborn enough, I just might figure it out myself.
    SugarCRM Version 6.5.9 (Build 8653)
    System: Linux 3.2.0-32-generic Ubuntu 12.04 LTS
    PHP Version 5.3.10-1ubuntu3.4
    MySQL Version 5.5.24

  4. #4
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    472

    Default Re: shared calendar

    Yes, in the file templates_calendar.php, I added this code inside the function template_echo_slice_activities_shared:

    PHP Code:
    function template_echo_slice_activities_shared(& $args) {
            global 
    $app_list_strings;
            global 
    $image_path;
            global 
    $shared_user$timedate;
            
    $count 0;        
            
            
    // Dani - 13/12/2012 - code added in order to show bugs - the start
            
            
    global $db;
            
    $query="select * from bugs where deleted=0 and resolucion='abierta'"//select records which are active and opened - not deleted records
            
    $result=$db->query($query);
                while(
    $row=$db->fetchByAssoc($result)){
                    
                    
    //select records which are active and opened - not deleted records - from cstm table - the START
                    
    $query2='select * from bugs_cstm where id_c = "'.$row['id'].'"'
                    
    $result2=$db->query($query2);                
                    
                    
    $caldate$args['slice']->start_time->day."-".$args['slice']->start_time->zmonth."-".$args['slice']->start_time->year;
                    
    $fechadate('d/m/Y',strtotime($row['fecha_real']));
                    while(
    $row2=$db->fetchByAssoc($result2)){    
                        
    $showstring="<span style='color:red'>INCIDENCIA ID.".$row2['idincidencia_c'].":</span><br>-<span style='color:black'> ".$row['name']." - <br>(".$row['otros_datos']." )</span>";
                    }
                    
    //select records which are active and opened - not deleted records - from cstm table - the FINISH
                    
                    
    if($_REQUEST['view']=='shared'){  //if the user wants to see the shared calendar...
                        
    if(strtotime($caldate) == strtotime($row['fecha_real']) && ($shared_user->id == $row['assigned_user_id2'])){
                            echo 
    "<br><a  href=\"index.php?module=Bugs&action=DetailView&record=$row[id]\" >";    echo $showstring;  echo "</a>";
                            echo 
    "<br>";
                        }
                    }
                }
            
            
    // Dani - 13/12/2012 - code added in order to show bugs - the finish 

    I'm working with sugar version 5.2.0c, so the code may change in other versions.
    But here's my solution.
    Best regards, Daniel
    Creación de páginas web
    http://www.barataweb.es/

  5. #5
    manishy@leosys.in Guest

    Default Re: shared calendar

    Hi,
    I have to convert calendar module present in sugarcrm into persian look.Today's persian date is '02/30/1392' (m/d/Y) format.I am tried for my best but i don't get any solution for it.Is this possible in sugarcrm?Please help me,if you have any idea about that functionality.

    Please help me!!!

    Thanks,
    Manish

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. View Daily calendar for shared calendar
    By itx in forum Developer Help
    Replies: 2
    Last Post: 2011-02-07, 05:15 PM
  2. Pb with Shared Calendar
    By cedtfc in forum Help
    Replies: 3
    Last Post: 2007-03-14, 08:54 PM
  3. Calendar error after install of Shared Calendar by Month
    By stikekar in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2006-11-30, 08:47 AM
  4. Shared Calendar
    By dach in forum Help
    Replies: 0
    Last Post: 2006-06-13, 10:47 AM
  5. Replies: 0
    Last Post: 2005-10-07, 04:15 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
  •