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)how to put a registered users name and email into the grid info of an event
Pages: [1]   Go Down
Print
Author Topic: how to put a registered users name and email into the grid info of an event  (Read 268 times)
0 Members and 1 Guest are viewing this topic.
Paddy
Guest
« on: May 08, 2003, 06:48:00 PM »

Hi,
we are testing a calendar where all the users have to register to add events.  because its there to book a collaborative machine (and people can share time on it as it runs if their applications are similar enough), I would like to be able to automatically add either the Users name, and/or email address to the information shown in the calendar itself, and the details page as well, without them having to add this for each event.  This would give is the relevant contact details without much effort, so that people can communicate more easily over usage.  also it does seem as shame not to utilise this readily available information in the user database directly in the calendar layouts.

my problem is I am fairly new to this, so its very difficult to see the best route to adding script (or where to add!) which calls from the user database into the events
any help would be appreciated.

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 08, 2003, 08:51:00 PM »

** I would like to be able to automatically add either the Users name... in the calendar itself, and the details page as well **

That is already automatically stored in the Events database in the "author_name" field. To have it display on the 'Event Details' page, simply go to:
Calendar Administration : Customize Event Fields
find that field and mark it "Display in details: (o) Yes"

To get it to display in the calendar grids, modify the default.html template file and add the following tag where you want the user name to display (likely by a <%= EVENT FIELD(title) %> tag).

<%= EVENT FIELD(author_name) %>

Dan O.

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

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