1 (edited by 2012-05-20 18:11:44)

Topic: Help transfer the old comments & posts to the new version

http://img444.imageshack.us/img444/8958/cutenewsqust.jpg
A short question. If I want to keep, or carry over the old post,photos and the comments from the old version of the CuteNews, and get them to the new updated version. What files are there in the "data" folder that I will carry over? Or am I in the wrong folder?

I have already saved, or transfer images to and from "upimages". So they are where they are now supposed to be. But it is only this that I want to transfer my old posts, etc. from the former version to the new. But I just do not know what files it's like I'm going to transfer.

So is there anyone who knows, let me know.


* Update 2012.05.20 - the problem is fixed *

2 (edited by 2012-05-20 17:12:29)

Re: Help transfer the old comments & posts to the new version

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.

3 (edited by 2012-05-20 17:56:04)

Re: Help transfer the old comments & posts to the new version

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.  http://cutephp.com/forum/style_emoticons/default/sad.gif

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 ( http://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");
}
?>

4 (edited by 2012-05-20 18:27:09)

Re: Help transfer the old comments & posts to the new version

Uppdate:
I found the error myself.
Had forgotten to write "FALSE" instead of TRUE in the right place.
How silly of me. http://cutephp.com/forum/style_emoticons/default/h.gif

$ display_categories_when_showing_news = TRUE;
$ display_news_under_list = FALSE;


Instead of:

$display_categories_when_showing_news = TRUE;
$display_news_under_list = TRUE;

So now everything is as it should. Excuse any trouble. I'm a little confused sometimes.