admin – PHP Event Calendar https://phpeventcalendar.com Modern Event Calendar For Your Website. Wed, 20 Nov 2024 05:11:23 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 Is there any way to have individual logins so that each user can manage their own calendar only? https://phpeventcalendar.com/knowledge-base/is-there-any-way-to-have-individual-logins-so-that-each-user-can-manage-their-own-calendar-only/ Wed, 20 Nov 2024 05:09:16 +0000 https://phpeventcalendar.com/?p=1531 Question:
Hi, is there any way to have individual logins so that each user can manage their own calendar only? I have a group of 50 calendars but I need them to only manage their own only with a super admin available to manage them all.

Solution:
Here’s the SQL query to insert new user into the calendar database table ‘pec_users‘ with user role as “user“.

You would need to simply replace with some real user data. The password can be encode here.

INSERT INTO pec_users
(access_key, activated, admin_id, role, first_name, last_name, active_calendar_id, company, username, password, email, timezone, language, theme, kbd_shortcuts, created_on, updated_on)
VALUES
(NULL, 1, NULL, ‘user’, ‘Joe’, ‘Blow’, ‘0’, ‘Rand Corp’, ‘joeblow’, md5(‘123456’), ‘joeblow@example.com’, ‘+6’, ‘English’, ‘default’, 1, NOW(), NOW());

<br>

Users will only see their own calendars.

]]>
Admin user cannot add events to the other users calendars https://phpeventcalendar.com/knowledge-base/admin-user-cannot-add-events-to-the-other-users-calendars/ Wed, 20 Nov 2024 05:07:25 +0000 https://phpeventcalendar.com/?p=1530 Question:
When I have multiple users, I can view the other users calendars with an admin user. But I can’t use the admin user to add events to other users calendars. How can I change this behavior so that the admin user can add events to the other users calendars.

Solution:
In file ‘/server/html/event-create.html.php‘, there are three load options to choose from

LOAD_ALL_CALENDARS

LOAD_MY_CALENDARS

LOAD_USER_CALENDARS

Change the load option to 

LOAD_MY_CALENDARS

]]>
The admin I can only see the calendars I created. The other admin can’t see my calendars. https://phpeventcalendar.com/knowledge-base/the-admin-i-can-only-see-the-calendars-i-created-the-other-admin-cant-see-my-calendars/ Wed, 20 Nov 2024 05:02:30 +0000 https://phpeventcalendar.com/?p=1525 Problem:

The admin I can only see the calendars I created. The other admin can’t see my calendars etc. The Users can create calendars, but I don’t want them too.

Solution:

All calendars are private by default unless they are made public.

For other users to view the calendar only, send you the public calendar link. Calendars must be made to the public. 


]]>
Change the admin password of admin? https://phpeventcalendar.com/knowledge-base/change-the-admin-password-of-admin/ Wed, 20 Nov 2024 04:36:43 +0000 https://phpeventcalendar.com/?p=1504 Generate a new password here and then update the password field in pec_users table. It is recommended to use a password that is at least 16 characters in length.

]]>