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)Can a pending event be edited by the creator?
Pages: [1]   Go Down
Print
Author Topic: Can a pending event be edited by the creator?  (Read 261 times)
0 Members and 1 Guest are viewing this topic.
mraj
New Member
*

Karma: 0
Offline Offline

Posts: 0

Software Engineer


« on: March 22, 2005, 11:15:00 PM »

Can a pending event be edited by the user who created the event?  It doesn't seem like it (but I've made changes to the .pl scripts, so I'm not sure).

If not, anyone know what hack would be needed to allow this?

Logged

See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl
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 23, 2005, 01:50:00 AM »

** Can a pending event be edited by the user who created the event? **

They probably could but they're not displayed anywhere for them to access except on the approval template.

**  anyone know what hack would be needed to allow this? **

You'd probably have to modify the sub getEvents { routine in the Event.inc file.

Dan O.

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

Logged
mraj
New Member
*

Karma: 0
Offline Offline

Posts: 0

Software Engineer


« Reply #2 on: March 23, 2005, 10:32:00 PM »

Dan, many thanks again!

I commented out the following line in Event.inc in method getEvents() and now pending events show up when a user goes to the "Edit events" admin page, allowing the user to edit approved and pending events:

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

Note: this change probably won't work for most people -- as pending events will probably then show up on the calendar!
I've made previous modifications to calendar.pl and default.html (based on other useful posts) such that the administrator will see pending events on the calendar (in a different color) -- and users who can't approve events won't see them.

------------------
See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl

Logged

See some of my modifications to CalendarScript at
http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: March 24, 2005, 12:53:00 PM »

Glad to hear it.

**  -- as pending events will probably then show up on the calendar! **

That is unlikely to happen just because of that change as the calendar grids use a different sub getEvents { routine which is located in the calendar.pl file rather than in the Event.inc file where your modifications take place.

But I don't know if there might be any other consequences which might occur becase of the change.

JFYI

Dan O.

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

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