Ich würde gerne den Ajax Event Calender um eine Mailfunktion erweitern,
aber ich glaube meine php Kenntnisse reichen nicht aus.
So ich es richtig analysiert habe, muss in der ajax-event-calendar.php die Funktion
db_insert_eventerweitert werden
in der Mail sollen:
'title' => $input->title,
'start' => $input->start,
'end' => $input->end,
'category_id' => $input->category_id,
verschickt werden.
anbei die ganze Funktion:
function db_insert_event($input, $render) {
global $wpdb;
$result = $wpdb->insert($wpdb->prefix . AEC_EVENT_TABLE,
array('user_id' => $input->user_id,
'title' => $input->title,
'start' => $input->start,
'end' => $input->end,
'allDay' => $input->allDay,
'repeat_freq' => $input->repeat_freq,
'repeat_int' => $input->repeat_int,
'repeat_end' => $input->repeat_end,
'category_id' => $input->category_id,
'description' => $input->description,
'link' => $input->link,
'venue' => $input->venue,
'address' => $input->address,
'city' => $input->city,
'state' => $input->state,
'zip' => $input->zip,
'country' => $input->country,
'contact' => $input->contact,
'contact_info' => $input->contact_info,
'access' => $input->access,
'rsvp' => $input->rsvp
),
array('%d', // user_id
'%s', // title
'%s', // start
'%s', // end
'%d', // allDay
'%d', // repeat_freq
'%d', // repeat_int
'%s', // repeat_end
'%d', // category_id
'%s', // description
'%s', // link
'%s', // venue
'%s', // address
'%s', // city
'%s', // state
'%s', // zip
'%s', // country
'%s', // contact
'%s', // contact_info
'%d', // access
'%d' // rsvp
)
);
if ($this->return_result($result)) {
if ($render) {
$input->id = $wpdb->insert_id; // id of newly created row
$this->process_event($input);
}
}
}
Alles anzeigen
Kann mir hier jemand tips geben, wie ich das anstelle?
Vielen Dank für eure Hilfe