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)displaying user provided info in event details
Pages: [1]   Go Down
Print
Author Topic: displaying user provided info in event details  (Read 268 times)
0 Members and 1 Guest are viewing this topic.
jeffrey
New Member
*

Karma: 0
Offline Offline

Posts: 0

researcher


WWW
« on: May 26, 2005, 06:17:00 PM »

Hello all.

We are interested in using Calendarscript (which has really impressed us so far...thanks!) for managing sign-ups on several different instruments.  Everything works great so far, but I do need some help with a few customizations.

1.  We are using AutoRegister and ask the users several questions (phone number, manager, e-mail address, etc.).  How can we have this information auto filled-in on the add event template?  If possible, this info should go in a text box so the user can change their e-mail address, etc.  If that's not possible, I'll also be happy with static text from the user database being ported to the event detail display ... and getting the e-mail address to the Notify plugin too.

2.  We typically sign up for multiple days (i.e., starting at 12:00pm on 5/1/05 and ending at 9:00am on 5/4/05).  I have seen a few posts to "trick" CalendarScript into letting you do this (i.e., disabling the date validation).  Is there a newer/cleaner method?  The DaySpan template maybe the best hope here and isn't too bad for what we need.

3.  Speaking of time validation, it only uses hours and minutes to make sure the start time is before the end time.  Could we add the date too?  Something like:

var tmp_start_time=(f.SCHEDULE_start_date_dd.value*1000)+(f.SCHEDULE_start_time_hh.value*100)-0+(f.SCHEDULE_start_time_mm.value-0);

But I don't know what the variable is (or if it exists in this context) for the month, day , and year.

Thanks in advance for you help.  Have a good day!

Best wishes,
~Jeff

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: May 26, 2005, 09:08:00 PM »

** 1. How can we have this information auto filled-in on the add event template? **

User database fields should be available to be printed in most CalendarScript templates using tags like:

<%= $User->{'Field_Key'} %>

Where Field_Key is the key of the field you want displayed.

However it won't be easy getting that information into the Add Event template in the form fields as those fields are generated 'on the fly'. Some sort of conditional might be able to be used.

** I'll also be happy with static text from the user database being ported to the event detail display **

That would likely be much more difficult.

I did design a plug-in for one user which added predefined user fields to an even record as they were posted. Those fields where not editable during the adding of the even only while editing it.


** 2.  Is there a newer/cleaner method? **

No.


** 3. Could we add the date too?  **

That may be possible. I'm afraid I don't know how you'd go about it though.


Dan O.

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

Logged
jeffrey
New Member
*

Karma: 0
Offline Offline

Posts: 0

researcher


WWW
« Reply #2 on: May 26, 2005, 09:44:00 PM »

Thanks Dan O.

That's not very encouraging, but thanks for the advice.  I'll see what I can do.

Thanks,
~Jeff

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

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