Results 1 to 2 of 2

Thread: Trying to embed calendar on to custom page

  1. #1
    Join Date
    Jun 2011

    Trying to embed calendar on to custom page

    Hi guys, bit of a tricky one this...

    I have a number of custom pages on my phpbb forum to create a members area, this has worked well for me.

    I am now working on the next feature of my site which is for locum GP's to have an availability calendar on their own "profile" page which I can create by making more custom pages stemming from the forum.

    The calendar I am trying to use is easyPHPcalendar which requires me to have:
        <?php $CSS=1; require("calendar/calendar.php"); ?>
    before the </head> and then I can put:
        <?php $OL=1; require("calendar/calendar.php"); ?>
    wherever I want the calendar to appear.

    To make these custom pages, I have a .php file in the root which contains:
    define('IN_PHPBB', true);
    $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : 'forum/';
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    // Start session management
    if ($user->data['user_id'] == ANONYMOUS)
        login_box('../memberhome.php', $user->lang['LOGIN']);
    page_header('Member Chat');
        'body' => 'test_body.html',
    and a .html body file in the templates folder that contains the pages content... so how can I get round this?

    I tried making the template body file a .php file, pasting the contents of my overall header file in to the body, and doing it that way but that didnt work.
    The guys on the phpbb support forum weren't very helpful, in fact just confused me even more.

    Any help is appreciated, thanks.

  2. #2
    Join Date
    Jun 2011
    Still struggling with this, if you need any more details in order to help please let me know.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center