/    Sign up×
Community /Pin to ProfileBookmark

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:

[CODE] <?php $CSS=1; require(“calendar/calendar.php”); ?>[/CODE]

before the </head> and then I can put:

[CODE] <?php $OL=1; require(“calendar/calendar.php”); ?>[/CODE]

wherever I want the calendar to appear.

To make these custom pages, I have a .php file in the root which contains:

[CODE]<?php
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
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if ($user->data[‘user_id’] == ANONYMOUS)
{
login_box(‘../memberhome.php’, $user->lang[‘LOGIN’]);
}

page_header(‘Member Chat’);

$template->set_filenames(array(
‘body’ => ‘test_body.html’,
));

make_jumpbox(append_sid(“{$phpbb_root_path}viewforum.$phpEx”));
page_footer();
?>

[/CODE]

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.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@djadejonesauthorNov 21.2011 — Still struggling with this, if you need any more details in order to help please let me know.

Thanks
×

Success!

Help @djadejones spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...