| View previous topic :: View next topic |
| Author |
Message |
pkbarbiedoll
Joined: 12 Sep 2008 Posts: 15
|
Posted: Fri Oct 31, 2008 12:12 pm Post subject: Inserting full calendar in existing page |
|
|
I'm including the mini calendar view with this:
$cal->display_month_mini();
So my existing site header is used. I like the full calendar display, with the day/month/year/events header, and little year calendar on the left.
Is there a way to generate the full thing using something like this?
$cal->display_full_thing(); |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Fri Oct 31, 2008 3:04 pm Post subject: |
|
|
Hi,
Not to display the whole site, no. You should be able to basically accomplish this by adding a site head / header / footer in Admin -> Site Settings.
Let me know if this will not work for you. |
|
| Back to top |
|
 |
pkbarbiedoll
Joined: 12 Sep 2008 Posts: 15
|
Posted: Fri Oct 31, 2008 3:48 pm Post subject: |
|
|
| It does not work because of dynamic content in the <body> area before the calendar. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Fri Oct 31, 2008 4:11 pm Post subject: |
|
|
| If it's PHP content, you may insert it between <?php ?> tags. Is it PHP content? |
|
| Back to top |
|
 |
pkbarbiedoll
Joined: 12 Sep 2008 Posts: 15
|
Posted: Fri Oct 31, 2008 4:13 pm Post subject: |
|
|
Yes it is PHP. I assumed that area only allowed HTML?
Last edited by pkbarbiedoll on Fri Oct 31, 2008 4:15 pm; edited 1 time in total |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Fri Oct 31, 2008 4:14 pm Post subject: |
|
|
Hi,
PHP will work as well so that people may enter dynamic content. |
|
| Back to top |
|
 |
pkbarbiedoll
Joined: 12 Sep 2008 Posts: 15
|
Posted: Fri Oct 31, 2008 4:15 pm Post subject: |
|
|
| It would work better to include a page header so site admins aren't required to maintain two different headers with the same content. |
|
| Back to top |
|
 |
pkbarbiedoll
Joined: 12 Sep 2008 Posts: 15
|
Posted: Tue Nov 04, 2008 2:25 am Post subject: |
|
|
Hi,
I am becoming frustrated with this. Yes, I can enter PHP - great. The problem is that the PHP header on all other pages on my site is complex. It has include statemetns, uses sessions and is spread across several files. So basically, if I want to replicate the same header content on the rest of my site I am going to have to spend a day or two writing a duplicate header for this calendar. Any time I need to change anything it has to be done in two places - which defeats the purpose of server side scripting.
Please tell me there is a workaround. I've worked with this all day and am at my wits end. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Tue Nov 04, 2008 9:53 pm Post subject: |
|
|
Hi,
I'm sorry. Would this work?
| Code: |
| <?php include("/path/to/site/header.php"); ?> |
If not, what is stopping it from working? |
|
| Back to top |
|
 |
pkbarbiedoll
Joined: 12 Sep 2008 Posts: 15
|
Posted: Tue Nov 04, 2008 11:20 pm Post subject: |
|
|
| I use sessions to manage user activity. when I include thyme like your example above, clicking any link destroys my session.. my site's user is logged out, and that is not acceptable. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Wed Nov 05, 2008 6:27 am Post subject: |
|
|
| Ahh.. I was not made aware that your session was started in your header. Would you mind sending me your header so that I may take a look please? ian@extroso... also include the URL to your Thyme installation please. |
|
| Back to top |
|
 |
|