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 CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Would like to block time off - no info in calendar
Pages: [1]   Go Down
Print
Author Topic: Would like to block time off - no info in calendar  (Read 266 times)
0 Members and 1 Guest are viewing this topic.
rkhanso
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: August 08, 2003, 05:55:00 AM »

Is this possible?

I'd like to have users log in, schedule time/appointment in the calendar, but when the calendar is viewed, there's no details about the event - just blocked off time.  Kinda the opposite of how it's meant to work.

Further explanation:  I'm trying to have customers of a hair salon be able to schedule their own appointments.  I have a calendar for each stylist and set up their customers as users of the associated stylist's calendar.  I want the customers/users to be able to schedule an appointment but don't want to see all the events on the calendar, just the open time the stylist has - kinda like blocked off chunks, no details.

Any ideas?

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: August 08, 2003, 12:55:00 PM »

** Is this possible? **

Yes.

You'd have to find every occurance (~5) in the default.html template file where a link to the event's details is output and put a conditional around it. The conditional would look something like:

<% if ($EVENT->{details}->{author_id} ne $User->{'username'} ) { %>
Booked
<% } else { %>
* print regular link code here
<% } %>

(* pseudo code only, replace with real code).

Dan O.


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

Logged
rkhanso
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: August 09, 2003, 12:59:00 AM »

Thanks for the assistance - but it looks way over my head - I don't understand a bit of it.

I thought there may be some kind of plugin or something.

I didn't find anything exactly like:
<% if ($EVENT->{details}->{author_id} ne $User->{'username'} ) { %>
Booked
<% } else { %>
* print regular link code here
<% } %>

but did a search for the word 'details' in the default.html and saw 4 or so instances but don't understand what it takes to accomplish what I want.  I may just have to live with the standard calendar.

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

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