Topic: N00b questions: showing Full Story & Comments on the same page, etc.
Dear CuteNews gurus!
I'm starting my own site now, and I'd like to use CuteNews for it.
I installed the latest version, and it works, but there are some issues. Unfortunately my knowledge of PHP leads to zero so I'm sorry if I can't figure out the basic points.
I have a structure like this: index.php page contains a script where other pages are included:
<?php
$PARAM=array('p' => 'home');
$PARAM=array_merge($PARAM,$_GET);
switch($PARAM['p'])
{
case 'home': include 'home/_home.php'; break;
case 'news': include 'news/_news.php'; break;
- links to other pages here -
}
The links look like:
NEWS
So, the page "news.php" has some info and the following code:
<?PHP
$template = "irry";
include("cutenews/show_news.php");
?>
The issue occurs with links "Read more" (full story) and Comments: they just point to index.php (the index page of my site), and no Full Story or Comments are actually shown.
I modified script like this:
<?PHP
$PHP_SELF = "?p=news";
$template = "irry";
include("cutenews/show_news.php");
?>
It shows me the error message about non-existing page.
$PHP_SELF = "news.php"; also doesn't work, just the error message differs.
Could somebody tell me how to make my scripts work with this structure, please? Thank you very much!
I would like to avoid rewriting the whole site structure as shown in examples provided with the installation, 'cause there are reasons for this.