Menu

#1 Embedded Calendar UserId

closed
nobody
None
5
2006-11-09
2006-10-23
exondepot
No

Hi,

How do I specify the user to which the (mini) calendar
to be displayed belongs to.
Currently my application requests a UserId (and
password) to login. I would like to use the same
User/Pass to get the user events, appointments, etc.
and connect to the main calendar.
By the way, I´m far from a PHP programmer. I have
modified sources, but...UFF!!

Thanks & Regards

Jose Luis Pérez

Discussion

  • Jude Yancy

    Jude Yancy - 2006-10-25

    Logged In: YES
    user_id=1322419

    Well, you have to pass some parameters/arguments to the
    cxremotecal.php page that uniquely identify the user whose
    entries are to be displayed. The easiest way would be to
    pass the user_id of the person based on the value of the
    'cxf_user_id' column of the 'cxcal_users' database table.
    You can then edit the cxremotecal_events.php page to capture
    this cxf_user_id value and use it to switch the view to show
    that users' content:

    e.g.
    In Line 75 of cxremotecal_events.php add the code:

    $userID = $_REQUEST['incoming_user_id'];
    clsCxCalendar::CxSetCurrentCustomView("u~" . $userID);

    This is essentially how the User Directory works such that
    when you click on a user in the directory, the calendar
    switches to show that user's entries.

    Good luck!

     
  • Jude Yancy

    Jude Yancy - 2006-10-25
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

Auth0 Logo