Hello all, I have written (well, borrowed) the code for a basic CMS from wrox press. It works really very well as a standalone device, so I tried to integrate it into my website.
Now, I am using a CSS sheet to hang various things together, and this is cauing problems for some aspects of this CMS.
Basically, I have the CMS front end appear inside of the main column of my site - www.niknet.homeip.net (articles) and have tried to fix most of the links using the excellent advice given to me by frequenters of this forum. I am, however, having one or two problems.
The logout function does not work. Clicking th hyperlink coded thus
[ echo ' | <a href="articles/transact-user.php?action=Logout">Log out</a>'; ]
drops completely out of the CMS and my site, as it were. It certainly doesn't activate the expected "return to index" function I expect it to.
Secondly, and more worryingly, the fabulous time saver that automates all the content finding and what not of the site
<?php
if (!isset($GET['content']) || $GET['content'] == "") { $content = "build"; } else { $content = $_GET['content']; }
include "comps/$content.php";
?>
is breaking the returning mysql queries, as it is appending .php to them. Is there a workaround for that one line that queries the mysql db? This output is part of reviewarticles.php.
It's rock and a hard place. I seem to be able to have a working CMS but one without site integration, and I don't know enough to know how to fix these occasional errors.
If any one could help, I would be extremely grateful.
Nick