router.php should be here (http://www.gemstarr.x10.bz/cutenews/cutenews1.5.3/router.php)

In your case http://www.gemstarr.x10.bz/cutenews/cutene...emplate=Default
Probably home dir for CuteNews is wrong, as even with the simple access to  http://www.gemstarr.x10.bz/CuteNews/ there is an error 404
Try to delete Indexes, as your folder cutenews is opened (http://www.ducea.com/2006/06/26/apache-tips-tricks-disable-directory-indexes/)

There are no templates for category, it is the function of the core (core/core.php).
But this problem can be solved with the help of a plugin. The code you can find below. Write in cdata/plugins any file with the code.
Use of the plugin. Add placeholders in the templates:
[cat-1] .... {catid} .... [/]
...
[cat-N] .... {catid} .... [/]

An example:

[cat-1]category, first[/]
[cat-2]category, second[/]


In case if there is a category 1 there will be the change of placeholder  [cat-1], inside of it there will be a number of a category for this placeholder {catid}. You can add it to the links.

<?php

add_hook('template_replacer_news_middle', 'my_template_replacer_news_middle_1');

function my_template_replacer_news_middle_1($q)
{
    list($o, $n) = $q;

    $cats = $n[NEW_CAT];
    $cats = spsep($cats);

    if (preg_match_all('/\[cat\-\d+\](.*?)\[\/\]/is', $o, $c, PREG_SET_ORDER))
    {
        foreach ($c as $v)
        {
            if (count($cats)) $catid = array_shift($cats); else $catid = FALSE;
            if ($catid !== FALSE) $d = str_replace('{catid}', $catid, $v[1]); else $d = '';
            $o = str_replace($v[0], $d, $o);
        }
    }

    return array($o, $n);
}
?>

453

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

What is the size of the database for news? May be it's better to split news and make several files then archive.

Before including news add the lines:

$start_from = $_GET['start_from'];
$QUERY_STRING .= '&start_from='.$start_from;

455

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

1. Please specify the version of Cutenews.
2. All the names consist of Latin letters and numbers and also of underlining sign left, there can be any line on the right side.

Before enabling news put the parameter  $sortbylastcom = TRUE and the active news will be sorted in accordance with the latest comment.

457

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

It's possible but you need the ajax technology. Call the script with necessary template via ajax, the number of news (number) and change start_from get. The personal programming is needed here, it's not a function of Cutenews.

Please specify where the route indicates in {rss-news-include-url}, it's possible that it's not installed or show the wrong route.

The search can be not displayed because of installed $start_from = 3. If the results are numbered less then 3 so they are not displayed.

1. The checking of avatars is forbidden on your hosting because they are checked via outer connectino. Or put return $avatar;  after the line $avatar = array('is_loaded' => true, 'path' => $editavatar); in the file core/core.php to disconnect the checking (only for the version 1.5.3)
2. Check all necessary placeholders in the templates (for example {fb-comments} etc.)

461

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

There are possible ways in Rewrite Manager on the left side, and on the right side there are their aliases, i.e. those query that are created from the left template.

462

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

1) How many report are there in your database?
SELECT COUNT(*) FROM cn_visit_counter;

2) The amount of reports for 1 news SELECT COUNT(*) FROM cn_visit_counter WHERE id = 1361700169;

Change in the line's script

    $q = mysql_query("SELECT * FROM cn_visit_counter WHERE id = $ID ORDER BY accesstime ASC", $cn_connection);
    while ($a = mysql_fetch_assoc($q)) $news[] = $a;

to the following

    $q = mysql_query("SELECT * FROM cn_visit_counter WHERE id = $ID", $cn_connection);
    while ($a = mysql_fetch_assoc($q)) $news[ $a['accesstime'] ] = $a;
    ksort($news);

If the database is rather big and you can avoid keeping files of more that 3 days long you can add the lines after ksort($news)
    $the_old_time = 60*60*24*3; // 3 day
    mysql_query("DELETE FROM cn_visit_counter WHERE id = $ID AND accesstime < UNIX_TIMESTAMP(NOW()) - $the_old_time", $cn_connection);

463

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

To generate title we can remove placeholder %title from Template Value in URL Rewrite Manager  and leave only %id.

464

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

After the line

    $tpl = preg_replace('~\%\w+~', '0', $tpl);

in the file core/core.php add the line

    foreach ($adds as $id => $v) if (in_array($id, array('title'))) unset($adds[$id]);

You can instead of array('title') write array('ucat', 'title') to exclude ucat. This is a hack and it will be changed when the file core.php updates.

465

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

After pasting of any attachment the following placeholders will be automatically created:
[filename=<file-name>]  - the download link
[downloads=<file-name>] - the number of downloads
[filesize=<file-name>] - file size

466

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

We've attached you an mysql version of the counter.
Before its use you need: 1) point host, user, password, db; 2) create a table cn_visit_counter, its structure is in the plugin's file.

Try to leave the width field for {fb-comments} empty.

468

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

We're working with the new version 2.0, the version 1.5.4 won't be launched. As the amount of changes is large, release date is unknown. We apologize for the gap between releases.

469

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

Do you use plugin or URL Rewrite?

Please give an example of configuration file when WYSYWIG doesn't work.

WYSYWYG doesn't work in title, use just html code.

If you want to show the last comment from the archive it will increase database capacity while searching for news. That's why it only works for active news.

473

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

Please describe from which to which page the link shows.

474

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

There is PDF files loading in a plugin Attachments on the page https://cutephp.com/cutenews/plugins.php. Plugin installation is easy - download plugin in cdata/plugins.

475

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

MySQL support in the current 1.5.4 version is rooted too difficult and there will be a lot of mistakes. You can do temporary hacks for reading and recording in MySQL but it won't be stable. Anyway there are plans for it but the main database is flat-db.