if ($config_disable_pagination == 0)


After this code in core/com/allow_active_news.php add $PHP_SELF = 'more.php';  this is hack only.

2

(3 replies, posted in Problem Solving / Help & Support)

What's in the config file? (cdata/config.php) especially string $config_ckeditor_customize

3

(3 replies, posted in Problem Solving / Help & Support)

Probably have to go to Options / Sysconf / Customize CKEditor and set the parameters

['Bold','Italic','Underline','Strike','Blockquote','SpecialChar'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Undo','Redo','Find','RemoveFormat','NumberedList','BulletedList','Outdent','Indent','-','Maximize','Scayt','-','Source'],
['Styles','Format','Font','FontSize'],['TextColor','BGColor','Image','Table','HorizontalRule','Smiley','PasteFromWord'],
['Link','Unlink','Anchor'],

4

(18 replies, posted in Problem Solving / Help & Support)

I think here it is that csrf reset for news section

5

(20 replies, posted in Problem Solving / Help & Support)

Try to copy everything from data folder to cdata folder, it can help.
p.s. and start migration script

6

(25 replies, posted in News)

In fact, in cutenews 1.5 I see function embedateformat, it has {month}, {weekday}, {year}, {day}, {hours}, {minite} and {since} field.

Maybe try to manually create cdata?

It is necessary to replace the code print.php this:

<?PHP require_once("core/init.php");

if ($id != "") {
    $archive = preg_replace('~[^a-z0-9_]~i', '', $archive);
    if (!empty($archive) && isset($archive))
         $news_file = SERVDIR."/cdata/archives/$archive.news.arch";
    else $news_file = SERVDIR."/cdata/news.txt";

    $found = FALSE;
    $all_news = file($news_file);
    foreach ($all_news as $news_line) {
        $news_arr = explode("|", $news_line);
        if($news_arr[0] == $id) { $found = TRUE; break; }
    }
    if ($found == TRUE) {
        $title = $news_arr[2];
        $date = date("j F Y h:i A", $news_arr[0]);
        if ($news_arr[4] != "") { $news = replace_news("show", $news_arr[4]); }
        else { $news = replace_news("show", $news_arr[3]); }

echo<<<PRINTABLE
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Printer Friendly Version</title>
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" onload="window.print()">
[b]$title[/b] @ <small>$date</small><hr>$news<hr>
<small>News powered by CuteNews - https://cutephp.com</small>

</BODY>
</HTML>
PRINTABLE;
} else { echo "The news you what to print was not found"; } 
}
else { echo "no id"; }
?>

Can help to rewrite print.php cutenews 1.5 but where can I get it?

Sorry, but I don't undestand what I have to do. What means "insead"? What I have to modify in editcomments.php?


This has been fixed in a new version of cutenews https://github.com/CuteNews/cute-news-repo/...872369f057831c9. Just download latest version.

Replace in ./inc/editcomments.php

if (empty($comment)) die(lang("Comment can not be blank"));

so this code

if (empty($comment) && isset($comment)) die(lang("Comment can not be blank"));

In ./inc/editcomments.php insead "if (empty($comment)) die(lang("Comment can not be blank"));" write "if (empty($comment) && isset($comment)) die(lang("Comment can not be blank"));" and it fix this problem.

12

(8 replies, posted in Problem Solving / Help & Support)

I found the mistake ... 1.5.0 replace the line

$allowed_tags = explode(',', 'a,i,b,u,p,h1,h2,h3,h4,h5,h6,hr,ul,ol,br,li,tr,th,td,tt,sub,sup,img,big,div,c
ode,span,abbr,code,acronym,address,blockquote,center,strike,strong,table,thead');


on this line here

$allowed_tags = explode(',', 'a,i,b,u,p,h1,h2,h3,h4,h5,h6,hr,ul,ol,br,li,tr,th,td,tt,sub,sup,img,big,div,c
ode,span,abbr,code,acronym,address,blockquote,center,strike,strong,table,thead,ob
ject,iframe,param,embed');


in file ./core/core.php

13

(8 replies, posted in Problem Solving / Help & Support)

And what is the code for embedded youtube videos?

14

(8 replies, posted in Problem Solving / Help & Support)

Check whether the stored video and everything as html. This is because of this, in my opinion.

15

(6 replies, posted in Problem Solving / Help & Support)

I think this bug seems to have been removed https://github.com/CuteNews/cute-news-repo/...a44eb17b1ab20be this commit

Tell us the exact purpose that it should be. Do you have a home page that displays a news from the category of 1,2,3,4 - it's all right? To the right built-in code that displays the news from category 9, too, all right? Now you have the main page displays all true. I would like to know which URL you enter and that there appears not the case. Or to do so on the main page display category 1,2,3 or others? Then just need to enter the $category = "1,3,4", etc.

The point here is apparently not in the hack, which works fine, but something completely different.