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 Default text for new events
Pages: [1]
Print
Author Topic: Default text for new events  (Read 207 times)
Tuscany
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« on: May 18, 2008, 02:14:57 AM »

Hi!
I badly need a solution for adding a default text in the fields "events description" and "contact info".

Text should be changeable in admin area and already displayed in the fields when adding a new event.

Is that possible?
I am not a coder myself so if I have to change the code please advise in detailed form ;-)
Thank you very much

Tus
Logged
dolm
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #1 on: June 13, 2008, 11:25:31 AM »

Hi Tus,

From another topic I found out how to set a default value for events. I don't know however how to place it in the admin area, maybe someone else knows that.

To set a default value for events;
1) open the admin_events.php located in components/com_jcalpro/
2) Look for the following code:

// No HTTP post or get requests found. THESE ARE THE DEFAULT VALUES FOR ADDING NEW EVENTS:
                  $form['calendar'] = '1';
         $form['autoapprove'] = true;
         $form['end_days'] = '0';
         $form['end_hours'] = '4';
         $form['end_minutes'] = '0';
         $form['start_time_hour'] = '8';
         $form['start_time_minute'] = '0';
         $form['start_time_ampm'] = 'am';
         $form['day'] = $day;
         $form['month'] = $month;
         $form['year'] = $year;
         $form['title'] = 'default txt here';
         $form['description']='default txt here:';
         $form['contact']='default txt here';
         // initial values for recurrence
         $form['recur_type_select'] = '0';
         $form['recur_type_1'] = 'day';
         $form['recur_val_1'] = '1';
         $form['recur_ord'] = '';
         $form['recur_ordinal_days'] = '';
         $form['recur_end_type'] = '0';
         $form['recur_end_count'] = '1';
         $form['recur_until_day'] = $day;
         $form['recur_until_month'] = $month;
         $form['recur_until_year'] = $year;
         $form['exclude_day'] = $day;
         $form['exclude_month'] = $month;
         $form['exclude_year'] = $year;
         $form['duration_type'] = '1';
      }


If you take a look at the $form['description'] you can see how to put the value in there. You can also change the other default settting here (eg. default duration atc.)

Hope this helps you a little bit.

Regards,
Mirelle
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)