Embedded Calendar UserId
Brought to you by:
cxdev
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
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!
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).