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


Login with username, password and session length

Search

 
Advanced search

8019 Posts in 1850 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Show event title as login name?
Pages: [1]   Go Down
Print
Author Topic: Show event title as login name?  (Read 224 times)
0 Members and 1 Guest are viewing this topic.
fly81w
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« on: April 06, 2005, 01:05:00 PM »

I am new to this forum and was looking for a calendar to use for vehicle scheduling. What I need to do is change the event title to auto load the username of person logged in as the event title.

Title - "event"
to
Scheduled by: - "username" so that the user shows by the schedule time.

Does anyone have a suggestion as to how I do this?
I am using the default template, with one click add event and no overlap plugin's which work fine.
Thanks

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 218

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


WWW
« Reply #1 on: April 06, 2005, 08:35:00 PM »

Edit the default.html template file and change the <%= EVENT FIELD(title) %> tags to <%= EVENT FIELD(username) %>

Dan O.

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

Logged
fly81w
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« Reply #2 on: April 07, 2005, 11:51:00 AM »

DanO, Thanks for looking at my problem. However this change does provide what I was looking for. It removes the event title (username) from the calendar so only the times are shown.
Sorry if I have not explained the problem properly.
If I change the add/edit field for the title template Form Input Properties: Default Value text field to my "user name" I get the Scheduled By: "username" field filled in. So it looked to me like I need to find a change that will put the logged in username in the event.properties.txt file so the "title:defaultvalue=" will equal the logged in user.

Added

You put me on the right track. If I Edit the default.html template file and change the <%= EVENT FIELD(title) %> tags to <%= EVENT FIELD(author_id) %> the calendar display is correct. Now I just need to fix the schedule_oneclick_non_recurring.html and the add_edit_event.html so the author_id or author_name is loaded in the event field.
Thanks
Roger


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

[This message has been edited by fly81w (edited April 07, 2005).]

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