Move over the complete data folder.
Not the config file if anything has been changed.
If you have only upgraded to 1.4.7 then everything in the data folder can be moved.
Well, I tested with it first. And yes, it works. Until I click on one of categories in the blog. And it looks not good. I made a Youtube clip for you to more easily understand what I mean. Simpler in this way.
http://youtu.be/6dTIifYBdOQ
Now that I've thought about it, so I wrote maybe wrong title for the post.
So I guess it has something with the script "List categories - list_cats" to do.
I was in and checked out if there would be no update to the script ( https://cutephp.com/forum/index.php?showtopic=32133 ) here on CuteNews, but I could not find anything that could help me.
With this it was correct not really the title of the thread of what I wanted help with. So instead of that I should start another thread so I drive on this for now.
So is there anyone who can help me with my problem with the categories in the menu on the website? Because they worked just fine before I took me to upgrade CuteNews. That worked, it has. Until now.
List categories - list_cats.php
<?PHP
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
// If it is set to FALSE, the categories wont be displayed
// after a visitor click some category to see the news from it
$display_categories_when_showing_news = TRUE;
$display_news_under_list = TRUE;
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main Part (Do not edit below)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
$cutepath = __FILE__;
$cutepath = preg_replace( "'list_cats.php'", "", $cutepath);
$cutepath = preg_replace( "'/list_cats.php'", "", $cutepath);
require_once("$cutepath/inc/functions.inc.php");
if(($show_cat != "" and $display_categories_when_showing_news == TRUE) or $show_cat == ""){
$cat_lines = file("$cutepath/data/category.db.php") or die("Can not open $cutepath/data/category.db.php");
foreach($cat_lines as $cat_line){
$cat_arr = explode("|", $cat_line);
echo "[url=?show_cat={$cat_arr[0]}]{$cat_arr[1]}[/url]
";
}
}
if(isset($_GET['show_cat']) && preg_match('/^[1-9]{1}[0-9]{0,}$/', $_GET['show_cat'] && $display_news_under_list)){
$category = $show_cat;
include("$cutepath/show_news.php");
}
?>