In Joomla 2.5, I want to be able to show the logged in user’s shift schedule for that user only. I know how to filter the schedule to get that output, but I was wondering if there was a way to get the current user’s id so I can filter for events with that particular user’s id.
I know I can do so in PHP:
$user =& JFactory::getUser();
return $user->id;
But I can’t find of a good entry point to insert that into the scheduler’s source code or scheduler_include.html?? Any assistance/help would be appreciated.
Hi,
there is special option in “Access rights” tab in scheduler admin panel - “Private mode”, which will show only currect user’s events in scheduler. Isn’t it the same what you want?
Private mode means the user can only see the events they’ve created, right? Well, the idea is I want to have a shift schedule that’s being managed by an admin user. The admin can pick a user’s id from a dropdown menu and assign a shift block to that user. The assigned user can’t create their own shift, but I would like for them to be able to see their own shift schedule that’s made up by the admin.