PDA

View Full Version : Html Editing


midcontinent
04-03-2008, 12:32 PM
So...

Help me understand how I edit a web page with the calendar on it...

I make sure the HEAD contains this line of code right?: <?php $CSS=1; require("calendar/calendar.php"); ?>

And then all I have to do is insert this line of text under the spot I want the calendar to appear?: <?php require("calendar/calendar.php"); ?>

So besides this all configuration is done through the Setup or Event Manager?

What is the relative path? My calendar file is under public_html in the root directory of the web site...

my website is www.midcontinent.info (http://www.midcontinent.info)

So the demo comes up but with the text on it. I tried a couple test pages but they come up blank. http://www.midcontinent.info/NewTest.html

The demo.php says "To modify the design/layout of this page, edit the demo.php file." So how do I edit the page if I can't use Dreamweaver or Front Page because the code gets scrambled? Does that mean I must edit my pages with the calendar with Notepad? Is there a WYSIWYG editor that won't hose the code?



Thanks...

ve9gra
04-03-2008, 04:57 PM
Your server is not setup to parse PHP in .html files... rename your file with the .php extension.

midcontinent
04-03-2008, 05:07 PM
Ok... Done. But now there are errors listed...

http://www.midcontinent.info/NewTest.php (http://www.midcontinent.info/NewTest.php)

Brian
04-03-2008, 05:48 PM
Reply and attach your NewTest.php file...

ve9gra
04-03-2008, 06:32 PM
Your paths in the requires should be like this (don't put the public_html)

require("calendar/calendar.php");

cdehmer
04-23-2008, 12:07 PM
Along the same lines, I have a VERY basic WP question. I am using WP 2.5 for a web site (not for a blog). I would like to include the calendar on one of the pages. However, when I edit a page in WP using the HTML tab, any line with "<?php" gets replaced with "<!--p ".

It looks like WP is trying to save me from myself. Like I said, a basic question.

ve9gra
04-23-2008, 09:08 PM
There's a Wordpress forum that addresses integration issues. Please read that forum for instructions on how to add the calendar into your WP.