PDA

View Full Version : Blog Mode Question


kelley
10-12-2005, 11:26 PM
I've searched through the old posts and have come across list and blog posts that seemed like the same problem I'm having however, most people were referred to the instructions/integration page and afterwards they'd just post saying it's fixed.

Here's my problem...
I've been staring at it for a while now and can't seem to figure out what I'm doing wrong. I'm trying to set the calendar to the blog mode as instructions explained in the integration page for blogmode, however, I see the normal calendar but the list/blog part doesn't appear.

I've copied and pasted my .php's code as it is now:
-----------
<html>
<head>
<title>Calendar Blog test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php $CSS=1; require("calendar/calendar.php"); ?>
<link href="calendar/theme/default/esstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php $OL=1; require("calendar/calendar.php"); ?>
<?php
$EPCBLOG=1;
require ("calendar/calendar.php");
?>
<?php
$EPCBLOG=2;
$template="calendar/templates/blog.php";
$DF = "l, F j, Y";
require ("calendar/calendar.php");
?>
</body>
</html>
------

Can anyone see where I've gone wrong? Any help/advice would be appreciated.

Thanks so much in advance,
Kelley

ve9gra
10-13-2005, 07:34 AM
The templating system already knows where the templates should be, so just include the actual name of the file and not the full path. That should solve your problem.

So replace
$EPCBLOG=2;
$template="calendar/templates/blog.php"; with
$EPCBLOG=2;
$template="blog.php";

BTW, these two lines are redundant...
<?php $CSS=1; require("calendar/calendar.php"); ?>
<link href="calendar/theme/default/esstyle.css" rel="stylesheet" type="text/css">If configured properly, the first line should output what you have at the second line.

kelley
10-13-2005, 12:23 PM
Thanks so much ve9gra! That helped a great deal. :)