Page 1 of 1
honeyem.co.uk | Nearly there - last 10% to go
Posted: Wed 27. Jun 2007, 15:42
Thought I'd share this with you
I am currently testing it at the moment and waiting for content changes - the text is not right...
It uses AJAX to load each of the pages from phpwcms using a modified (very) version of index.php which creates XML versions of the pages....
10% to go.
Lots of bugs and NOT OPTIMISED!
One bug I have is with the links on the front page. Clicking on HONEY CLIENTS works in FF/Safari but not in IE 6/7 - any ideas?
Site uses lots of different things to make it all work and may be a bit slow. Normal HTML version is on the way.
Best - Jim
Posted: Wed 27. Jun 2007, 23:32
I like the idea , very nice
Hope yuo can find the bugs that are annoying you.
Cool thing, the pages like that.
Posted: Wed 27. Jun 2007, 23:50
Thanks Kosse we're working on it!
the site is now up and looking slightly different here:-
Bugs are going to be ironed out in the next couple of weeks - client wanted a site! So news and gallery in next 2 weeks....
Posted: Tue 31. Jul 2007, 20:25
It's cool that you're going to use phpwcms for xml-output, even because this not easy. It would be great, if you could post the index.php if you get it to work
Posted: Mon 6. Aug 2007, 16:02
Sure no problem, the site has changed again and should be finished today (may be) and I will post a link.
page.php which creates the XML looks like this:-
Code: Select all
// define some general vars
$content = array();
$phpwcms = array();
$BL = array();
/// load general configuration
// some initial actions
define('FE_CURRENT_URL', PHPWCMS_URL . 'page.php' . buildGlobalGET('getQuery'));
// create a new XML document
$doc = new DomDocument('1.0', 'UTF-8');
$doc->formatOutput = true;
// create page node
$page = $doc->createElement('page');
$page = $doc->appendChild($page);
// create title node - not really needed for me but you may want to use it
//$title = $doc->createElement('title');
//$title = $page->appendChild($title);
// create title text node
//$pgTitle = $doc->createTextNode(html_specialchars($content["pagetitle"]));
//$pgTitle = $title->appendChild($pgTitle);
// create body node
$body = $doc->createElement('body');
$body = $page->appendChild($body);
// content for body text node
$main = $doc->createCDATASection($content["all"]);
$main = $body->appendChild($main);
// add type header
// get completed xml document
$xml_string = $doc->saveXML();
This will only work with PHP5 - you'll have to go another route with PHP4...
Posted: Mon 6. Aug 2007, 16:08
Thank you very much! I will take a look at this.