| View previous topic :: View next topic |
| Author |
Message |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Tue Jun 17, 2008 4:21 pm Post subject: |
|
|
Do you mean literally at the bottom of the page beneath the HTML? With the new include code going into the table row where I want the button?
It returns this error:
Fatal error: Class '_cal_form' not found in /home/dbriefs/public_html/calendar/thyme/thyme/site/event.php on line 87 |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5160
|
Posted: Tue Jun 17, 2008 4:27 pm Post subject: |
|
|
Hi,
You may place the button code where ever you would like the button to go. Please also add this just before this line:
| Code: |
| $_cal_form = new _cal_form(); |
| Code: |
| include_once(_CAL_BASE_PATH_."include/classes/class.form.php"); |
Let me know if this doesn't resolve it. |
|
| Back to top |
|
 |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Tue Jun 17, 2008 4:32 pm Post subject: |
|
|
That worked. I just need one other modification. My event view pops up in a specifically sized javascript window that's too small for the send to form. Is there a way to get that form to open in a new window or event the main calendar window?
Thanks so much. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5160
|
Posted: Tue Jun 17, 2008 4:37 pm Post subject: |
|
|
Hi,
You should be able to change this line:
| Code: |
| $_cal_form->print_header(); |
to this ..
| Code: |
| $_cal_form->print_header("target=_blank"); |
|
|
| Back to top |
|
 |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Tue Jun 17, 2008 4:49 pm Post subject: |
|
|
The formatting works, but when I send this error is returned:
Fatal error: Call to a member function can_view() on a non-object in /home/../public_html/calendar/thyme/thyme/include/send_event.php on line 77 |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5160
|
Posted: Tue Jun 17, 2008 5:20 pm Post subject: |
|
|
| May I have the URL to this please? |
|
| Back to top |
|
 |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Tue Jun 17, 2008 5:32 pm Post subject: |
|
|
| I have pm'd this. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5160
|
Posted: Tue Jun 17, 2008 6:53 pm Post subject: |
|
|
| Thank you. Can you e-mail me your latest event view page please? |
|
| Back to top |
|
 |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Tue Jun 17, 2008 7:21 pm Post subject: |
|
|
| I have sent this |
|
| Back to top |
|
 |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Sun Jun 22, 2008 11:23 am Post subject: |
|
|
Everything's works great except the template sent is the default template. The customized view comes up in the send form, but the version of the event view actually received is the default.
Is there a way to send a customized view of the event instead of the default? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5160
|
Posted: Mon Jun 23, 2008 3:41 pm Post subject: |
|
|
| You may copy your event view template over the existing one include/templates/event_view_tpl.php in Thyme's folder. |
|
| Back to top |
|
 |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Mon Jun 23, 2008 4:36 pm Post subject: |
|
|
Hi Ian,
Thanks for the replay. I tried this and the email isn't sent.
I copied over the template and sent an event. Everything appears to send fine, but the email never arrives. I switched back to the old template, sent an event and the email arrives within a couple of mins. |
|
| Back to top |
|
 |
|