We've tested and added a possibility to install any  PageAlias (even without .html suffix).

1. Make an update (to the latest github version) according to these changes:
https://github.com/CuteNews/cutenews-2.0/co...58ebdba66bbb3ff

2. Go to System configuration > Rewrite; install "Real path to your layout file" parameter or leave it empty and then replace it; install "Rewrite prefix" parameter on "/" symbol (without quotation marks); save configurations.

3. Save the news, filling "PAGE ALIAS" field with "titleOfPost" or "titleOfPost.html", for example.

The e-mail was made optional (Check-box in System Configuration > Comment > Check e-mail or site before adding a comment).
https://github.com/CuteNews/cutenews-2.0/co...edde716f125c332

V. 1.5.3 is not the latest one (we recommend you to update it to 2.0.1). You can also send us a screenshot with an error after posting a piece of news.

354

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

Which version of CuteNews do you use on the website? One of the reasons for the bag might be copying from start_from из $_GET  without replacement. Try upgrading to 2.0.1 (it's better to back up your data before upgrading).

355

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

We cannot reproduce the problem in 2.0.1. However, we can try diagnosing the problem:

1. Open the news;

2. In the modules/init.php code insert

dbg($_REQUEST); dbg($_mod_cfg);

after

$_mod_cfg = $_init_modules[$_module];

3. Add   

db($entry); die();

after

list($morefields) = cn_get_more_fields($faddm);

in

core/modules/edit_news.php

4. Save the news, copy the text (if there's any) and paste it on the forum;

5. Delete the changes made in points 2 and 3.

Based on the data, we'll try to identify the source of the problem.

In line 685 in the core/news.php file you need to replace

  return date(getoption('timestamp_comment', $e['id']));

with

  return date(getoption('timestamp_comment'), $e['id']);

357

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

Hello Newsmedia,
In version 2.0.1 there's an option to checkbox HTML for news groups. To use this option you need to enter news listing, checkbox the required news, enable "Switch to HTML".

Please use the code of the CKFinder plug-in from the cutephp.com website to enable elFinder:

1. Create a plug-in folder in the cdata/plugins/elfinder.php folder with the following content:

?php

add_hook('settings/CKEDITOR_filemanager', 'add_ckfinder_to_cke');

function add_ckfinder_to_cke($add_opt)
{
    $http_dir = trim(getoption('http_script_dir'));
    if (substr($http_dir, -1, 1) == '/') $http_dir = substr($http_dir, 0, -1);

    $add_opt['filebrowserBrowseUrl']        = $http_dir . "/ckfinder/ckfinder.html";
    $add_opt['filebrowserImageBrowseUrl']   = $http_dir . "/ckfinder/ckfinder.html?type=Images";
    $add_opt['filebrowserFlashBrowseUrl']   = $http_dir . "/ckfinder/ckfinder.html?type=Flash";
    $add_opt['filebrowserUploadUrl']        = $http_dir . "/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files";
    $add_opt['filebrowserImageUploadUrl']   = $http_dir . "/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files";
    $add_opt['filebrowserFlashUploadUrl']   = $http_dir . "/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash";

    return $add_opt;
}

?>

2 Replace paths in $add_opt with the required ones (paths to the elFinder files, please use the following guide: https://github.com/Studio-42/elFinder/wiki/...n-with-CKEditor .

359

(6 replies, posted in News)

Dear Users!

CuteNews has been updated to 2.0.1, the download link is available at https://cutephp.com/. In this release we've fixed some bugs found in 2.0.

Do you have this problem now? If you don't, then probably it it was a temporary interruption on Facebook.

361

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

Use the {author} placeholder. If the user entered his nickname and configured in the settings for his nickname to be displayed, it will be shown.

We added a function allowing for attaching an anchor to a URL by using anchor=name in such template variables as [full_link anchor=name]...[/full-link], [com-link], [link], [print] .
In the comment template add <a id="name"></a> for browser to detect the #name anchor and go to the beginning of comments.

CKFinder has recently been updated, so it's better to update CuteNews from GitHub and then download CKFinder. Also, it's necessary to enable CKEditor in order for CKFinder to work. For that, go to Dashboard > System configurations, and tick the checkbox for Use CKEditor in news.

364

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

Please give us more details where you're going to implement Open Graph on the website, what fields and data. Implementation of OpenGraph is possible using templates and cn api, but as it was said above, we need more details.

E.g. you can create the following opengraph
template:

<meta property="og:title" content="{title}" />
<meta property="og:type" content="{my_category}" />
<meta property="og:url" content="{url}" />
<meta property="og:image" content="{avatar}" />

and implement it using <?php $template = 'opengraph'; .......; include 'show_news.php'; ?> .

365

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

This bug has been fixed in the latest version which you can download from GitHub.

We've made fixes (you can find the commit at https://github.com/CuteNews/cutenews-2.0/co...47d37eee9f1bb72 ) allowing for writing thumbnails separately from uploaded images.

367

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

Please help, when i add a new new aparear this

Fatal error: Call to undefined function: array_combine() in /home/domains/instituc************/web/n/core/db/coreflat.php on line 547

How i can repare....

It seems you have PHP version under 5.0. We also advice you to upgrade CuteNews from GitHub.

In CuteNews search and news cannot be applied in one frame. One of the solutions is to use iframe, where search will be separated from news. Or you can insert $static = true; before newsblocks, i.e. there's only one build possible:

if ($_GET['search'])
{
     include 'search.php';
}
else
{
     include 'show_news.php';
}

Optionally, you can use this branching for one of the blocks, and another program logic type for other blocks. It all depends on the way blocks display is coded.

369

(4 replies, posted in Script Feedback and Suggestion)

CKFinder is quite easy to install. You just need to download version 2.0, preferably from GitHub, and follow steps 1 and 2. Actually, step 3 is a recommendation to open Dashboard > System configurations and tick the checkbox for Use CKEditor in news to activate the plug-in.

Hello,

There are currently some problems with the variable used in the templates for CuteNews 2.0.

In comments template, the {day}, {since}, {hours}, {minutes} and {year} isn't showing up.

Additionally, the {date} variable isn't working properly for comments as it shows the actual date based on your current computer system date. Furthermore, the {date} variable also has the time variable with it in it which I don't think should be the case since the {date} and the time should be separated. Hope you guys can look into this too.

How can I fix this? Thanks!

You can change the format of the date variable in comments via Time format for comments in Dashboard > System configurations.

How to remove CuteNews v2.00 from Menu Bar in the login screen of the cutenews 2.00


Please find in /core/core.php the line that includes <div style='padding: 5px;' >. Remove the part of the line that includes [url=]".VERSION_NAME."[/url] . Save changes. After you perform this operation, CuteNews v2.00 should be removed from Menu Bar.

372

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

Could you kindly give us an example and screenshotы for us to understand the problem in a better way.

Probably, the configuration files erasing problem may be fixed with the help of this patch (core/includes/add_comment.php): https://github.com/CuteNews/cutenews-2.0/co...b501200b2a3db40
Also, don't forget to check whether you have any banned users.

To count news items please use the following code:

$counts = array();
$active_news = file('cdata/news/cat.idx');

foreach ($active_news as $newsRaw) {
    list($cat_id, $nids) = explode('|', $newsRaw);
    $counts[$cat_id] = count(explode(',', $nids));

Please don't forget to make news migration: https://cutephp.com/forum/index.php?showtopic=44045

375

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

We added the "Switch to HTML" option in the news listing. You can find the update on GitHub.
https://github.com/CuteNews/cutenews-2.0/co...53b329957374395