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


Login with username, password and session length

Search

 
Advanced search

8219 Posts in 1899 Topics- by 2162 Members - Latest Member: Honor
Pages: [1]   Go Down
Print
Author Topic: New info in event details  (Read 463 times)
0 Members and 1 Guest are viewing this topic.
hebertovich
New Member
*

Karma: 0
Offline Offline

Posts: 5


« on: January 29, 2010, 01:33:04 PM »

Hi guys

I have a field in my users database of Telephone number but for the life of me can't figure out how to display it in the event details.  Can anyone point me in the right direction?

Thanks
Logged
DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 303

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


WWW
« Reply #1 on: January 30, 2010, 01:59:09 PM »

** I have a field in my users database of Telephone number but for the life of me can't figure out how to display it in the event details. **

That's because the user db information is not usually called up by the calendar display. The easiest way to accomplish it would be to add a Telephone number field to the event details database. If you also selected that new field to display, it would print out along with the other event details.

JMO

Dan O.
Logged
hebertovich
New Member
*

Karma: 0
Offline Offline

Posts: 5


« Reply #2 on: February 02, 2010, 05:16:40 PM »

 :-[ Figured as much, Is there a way to get it in the event details in a simple manner that would not involve the input of the user ?
Logged
DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 303

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


WWW
« Reply #3 on: February 03, 2010, 12:24:43 PM »

You'd have to make the new field in the event details db and then you could modify the calendar_admin.pl file (or better yet, make a plug-in) to alter the add_event part of the code to populate that new event field with user data the same way the script adds the author name, author ID and time to the details when posting the event. The lines that do those can be seen below.

Code:

elsif ($in{'command'} eq "add_event") {

...
$properties->{'author_id'} = $User->{'username'};
$properties->{'author_name'} = $User->{'name'};
$properties->{'time_added'} = time;
...

 

JFYI

Dan O.
Logged
Pages: [1]   Go Up
Print
Jump to: