Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityEverything ElseGeneral Use (Moderators: scott, DanO, Marty)Admin viewing pending events in calendar?
Pages: [1]   Go Down
Print
Author Topic: Admin viewing pending events in calendar?  (Read 275 times)
0 Members and 1 Guest are viewing this topic.
Paddy
Guest
« on: March 13, 2003, 06:39:00 PM »

Hi, is it possible for the admin users to see pending events (preferably in a different color) in the calendar view when logged in? -it would be a useful way to spot out of place/inappropriate booking slots etc so that the admin user could click on one to access the edit/approve/reject window?
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: March 14, 2003, 06:32:00 PM »

** is it possible for the admin users to see pending events in the calendar view when logged in? **

You'd have to make changes to both the calendar.pl file and the default template but it should be possible. In the calendar.pl file, in the sub getEvents { subroutine, the following line is responsible for weeding them out of the display:

next unless ($event_details->{$s->{'event_id'}}->{'approved'});

You'd then have to make a conditional in the default template to only show them if the Administrator was logged in.

** preferably in a different color **

That would likely be done in the same area as the above conditional.

** so that the admin user could click on one to access the edit/approve/reject window? **

That might be more difficult to do for a specific event but the mod suggested in the previous forum message "Edit Event directly from Event Details" might be able to be used there?

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: