My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow Extensionsarrow JCal Pro and JCal Clientarrow Archivearrow Feature Requests (board locked)arrow Include event poster's name in event listing
Pages: [1]
Print
Author Topic: Include event poster's name in event listing  (Read 1958 times)
lintila
Beta Testers
Newbie
*

Karma: +0/-0
Posts: 11



View Profile Email
« on: June 23, 2007, 10:53:56 AM »

I didn't see this feature request previously mentioned, so here it is:

It should be relatively easy I would think, but here is the problem. An event does not show who posted it. Unless the event poster includes contact information in the text of the event, the admin and the user have no idea who posted it.

Even when an event needs approval, and the admin gets an email stating as much, even the email does not say who posted the event.

Personally, I find it exasperating that I can not tell who posted what. Perhaps this is only an issue for me, maybe others don't care, but it seems like an easy fix so I thought I would through it out there.

Thanks
Lintila
Logged
iedwards
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #1 on: July 03, 2007, 04:59:10 AM »

I have a similar requirement, also to include by default the poster's contact details in the contact section would be really useful
Logged
smidger
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #2 on: October 01, 2007, 01:16:17 PM »

This solution seemed to work for me:

In /components/com_jcalpro/languages/english/index.php

insert on line 36:

global $my;

then around line 131 replace message body with

$lang_system['event_notification_body'] = "
The following event has just been posted on the {CALENDAR_NAME} and requires approval:

Title: {TITLE}
Date: {DATE}
Duration: {DURATION}
Name: ".$my->name."
Email: ".$my->email."

You can access this event by clicking the link below
or copy and paste it in your web browser.

{LINK}

(NOTE that you must be logged in as an Administrator for
the link to work.)

Regards,

The management of {CALENDAR_NAME}";
Logged
Intertron
Newbie
*

Karma: +0/-0
Posts: 2


View Profile Email
« Reply #3 on: October 11, 2007, 04:29:16 AM »

I have a similar requirement, also to include by default the poster's contact details in the contact section would be really useful

This is a hack to add the posters name and e-mail in the contact section when creating a new calendar entry:

change the file: components\com_jcalpro\include\functions.inc.php
line 359
Code:
old: global $lang_add_event_view, $lang_general, $lang_date_format, $lang_settings_data;
new: global $lang_add_event_view, $lang_general, $lang_date_format, $lang_settings_data, $my;

line 577
Code:
old: '{CONTACT_VAL}' => isset($form['contact'])?$form['contact']:"",
new: '{CONTACT_VAL}' => isset($form['contact'])?$form['contact']:$my->name,

line 579
Code:
old: '{EMAIL_VAL}' => isset($form['email'])?$form['email']:"",
new: '{EMAIL_VAL}' => isset($form['email'])?$form['email']:$my->email,

Now I am trying to find a way to make these fields required. Anyone?
Logged
Intertron
Newbie
*

Karma: +0/-0
Posts: 2


View Profile Email
« Reply #4 on: October 11, 2007, 05:38:41 AM »

Now I am trying to find a way to make these fields required. Anyone?

Got it  Smiley

file components\com_jcalpro\admin_events.php
after line 200 add:
Code:
if (empty($contact)) $errors .= theme_error_string($lang_add_event_view['no_contact']);
if (empty($email)) $errors .=  theme_error_string($lang_add_event_view['no_email']);

file components\com_jcalpro\jcalpro.php
after line 984 add:
Code:
if (empty($contact)) $errors .= theme_error_string($lang_add_event_view['no_contact']);
if (empty($email)) $errors .=  theme_error_string($lang_add_event_view['no_email']);

file components\com_jcalpro\languages\english.php (or any other language file)
after line 214 add:
Code:
,'no_contact' => 'You must provide contact information!'
,'no_email' => 'You must provide a contact email address!'
after line 543 add:
Code:
'no_contact' => 'You must provide contact information!',
'no_email' => 'You must provide a contact email address!',

Of course it would be better to have a configuration setting to define which fields are required. I will leave that as a feature request.
Logged
crony
Newbie
*

Karma: +0/-0
Posts: 14


View Profile
« Reply #5 on: December 06, 2007, 07:22:04 PM »

EDIT : sorry, didn't read carefully post just "upstairs" ...  Grin

Hello,

I would LOVE the user name ( idealy a link to profile ) on events submited Grin
Please tell me witch file(s) to edit ?

Is there a way to make php code running on events, like with kl_php ?

Thanks for helping
« Last Edit: December 17, 2007, 07:31:41 AM by crony » Logged
filterit
Newbie
*

Karma: +0/-0
Posts: 10


View Profile
« Reply #6 on: February 08, 2008, 10:34:31 AM »

Has this been tested on 1.6.

I think this is quite a basic requirement to see who created the event
Logged
filterit
Newbie
*

Karma: +0/-0
Posts: 10


View Profile
« Reply #7 on: May 13, 2008, 09:35:23 AM »

Now I am trying to find a way to make these fields required. Anyone?

Got it  Smiley

file components\com_jcalpro\admin_events.php
after line 200 add:
Code:
if (empty($contact)) $errors .= theme_error_string($lang_add_event_view['no_contact']);
if (empty($email)) $errors .=  theme_error_string($lang_add_event_view['no_email']);

file components\com_jcalpro\jcalpro.php
after line 984 add:
Code:
if (empty($contact)) $errors .= theme_error_string($lang_add_event_view['no_contact']);
if (empty($email)) $errors .=  theme_error_string($lang_add_event_view['no_email']);

file components\com_jcalpro\languages\english.php (or any other language file)
after line 214 add:
Code:
,'no_contact' => 'You must provide contact information!'
,'no_email' => 'You must provide a contact email address!'
after line 543 add:
Code:
'no_contact' => 'You must provide contact information!',
'no_email' => 'You must provide a contact email address!',

Of course it would be better to have a configuration setting to define which fields are required. I will leave that as a feature request.

YEP this worked in 1.6
Logged
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)