Well... Someone might want to try this:
in includes/active_news.php change

$_cn = $rs['overall'];

to

$_cn = $rev['overall'];

Might work, might not.

Hey Support Team...

Where is $rs['overall'] defined? Can't find is anywhere on the files... There is a chance that I missed it....
But it tells the script if the pagination is showed or not, so...

// Count showed rows
$_cn = $rs['overall'];

// No pagination, if showed rows less than number
if ($_cn <= $number || !$number)   
 $_enable_pagination = FALSE;

Templates. It should be all explained in the help section/readme etc.

Changing the error code line to

while ($file = readdir($handle))


might just do the trick https://cutephp.com/forum/style_emoticons/default/smile.gif

5

(13 replies, posted in News)

You can also see Changelog following this link changelog to analize the changes.

Analize? That sounds kinky (should be analyze) https://cutephp.com/forum/style_emoticons/default/wink.gif

The UTF CN topic has also been deleted, that's most likely the reason

Most likely for the same reason it was deleted again https://cutephp.com/forum/style_emoticons/default/biggrin.gif
- Ifa

Soo.... Now that it's been almost four months... Any news on the next version? https://cutephp.com/forum/style_emoticons/default/biggrin.gif

Your host most likely does not support php

<html>
<head>
<title>This is the title of my site</title>
</head>
<body>
<div id="fb-root"> </ div>
Welcome to my site bla bla bla
<?php
include('cutenews/show.news.php');
?>
</body>
</html>


I am ofc assuming that you are using the proper tags in your site (something that's not a given, even today...) https://cutephp.com/forum/style_emoticons/default/biggrin.gif

Have you considered using $PHP_SELF (you can look it up in the FAQ, there is a topic about the parameters you can use) and using a diffrent page for the full storys.

Is it me or is the an echo in here...?

It's the page where you use the cutenews include code, ie

$number = '5';
$template = 'something';
include('cutenews/show_news.php');


yes you can

Dear User!

Thank you for contacting us and reporting on this issue. You should try using the several types of scripts. In the block where you want to see the full news in a file "index.php" mysite.com/about/faq/index.php please use the following code:

 <?php if (!empty($_GET['subaction']) && $_GET['subaction'] == 'showfull') { $template = "Default"; include ('.....path/to/show_news.php'); } ?>

This block must be on the every page with the news got from id of the Headlines pattern.
The meaning of the problem is that the pattern Headlines tries to access itself to expand over the news, but it can not because this pattern includes no information on the full page, so you have to use the above mentioned code on any page.
This is due to some incomplete template features in the CuteNews 1.4.7.

Or he could just use $PHP_SELF, like he said in his post... Also, great job with the solution, I'm sure that will work just as fine as $PHP_SELF...  https://cutephp.com/forum/style_emoticons/default/rolleyes.gif

What is this?

$include_id = "101"; //Inserisci un ID UNICO a tua scelta e diverso dagli altri INCLUDE
if( (isset($_GET['include_id']) && $_GET['include_id'] != $include_id) || ( isset($_POST['include_id']) && $_POST['include_id'] != $include_id ) )
{
unset($start_from);
unset($subaction);
}

Now, this code is unsetting the $subaction (a variable that tells cutenews to show full story, ie subaction=showfull in the url). I don't really see a reason why the categories would somehow affect this "if" to be executed, but your center part has diffrent include_id that the right side, so when clicking on the full story link on right side, the include_id is diffrent than the include_id of the center part, thus subaction is unset...

if your page is http://www.pasqualemarinelli.com/
everything seems to be working just fine now?

https://cutephp.com/forum/index.php?showtopic=5137

https://cutephp.com/forum/style_emoticons/default/smile.gif
Problem is that the right side news does not show the full story, right? Well, the central area shows news form categories 1 2 3 4, while the right side news are from category 9. See the problem? https://cutephp.com/forum/style_emoticons/default/smile.gif

Using

$category = isset($_GET['ucat'])?$_GET['ucat']:'1,2,3,4';


instead of

$category = "1,2,3,4";


might just work

And don't use

$category = isset($_GET['category'])? $_GET['category'] : false;


Basicly it tries to find a none existent $_GET['category'], and when it does not find it, it gives $category "false" value (disables it). This is why the full story works, as there are no categories set, but why every categories are shown...

Btw, as long as

$category = isset($_GET['category'])? $_GET['category'] : false;


is in there, there will be some problems, as there is no "category" in the url, its ucat... So I suggest removing that, if you still have it.

Perhaps...

$count = count(file("path/to/news.txt"));
$start_from = mt_rand(0, $count);
$number = 1;
include('path/to/show_news.php');
unset $start_from;
if(isset($_GET['start_from'])) $start_from = $_GET['start_from'];

Would work? This is, ofc, for active news...

$output = str_replace("{test}", rating_bar('1','5'), $output);

Would that work?

Without coding, and the easiest way, would be to make a extra category for those news that go to 1 and 8. This though might not work for everyone, depends on the use.

Example: News in category 1 and 8 go also to category 9, and then just use $category = "9";

Or do you want to start hacking? https://cutephp.com/forum/style_emoticons/default/smile.gif

$output = str_replace("[link]","<a href=\"$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$news_arr[6]&$user_query\">", $output);

https://cutephp.com/forum/style_emoticons/default/smile.gif

$output = str_replace("[link]","<a href="$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$news_arr[6]&$user_query">", $output);

Should be one, single line, this forum just breaks it...