I had a problem on my site. While selecting a category from the right column, news from only the selected cat are displayed in the central column. The issue arises when the user press page 2, in order to view news from the 11-th to the 20-th (sorted by date of posting).
The parameter 'category' is passed as 'ucat', and this fails to restrict the field to the selected category (instead of displaying news 11 through 20 of that category, are passed news to 11 through 20 regardless of the category).

I solved by adding some rows in one of the scripts; with them, the value of 'ucat' is also assumed as the value of 'category', in the case that 'category' hasn't a value while 'ucat' has one:

// in cutenews/core/loadenv.php, just before the definition of $config_skin (rows near number 55)

if (empty($category) and !empty($ucat))
{$category=$ucat;}

I post my experience there, hoping it could be useful for other users and/or the developers. https://cutephp.com/forum/style_emoticons/default/smile.gif

2

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

Speaking of date and time, I've an issue of this kind: after upgrading to 1.5.3, times are not shown correctly, it apparently doesn't take account of daylight saving time; they were given correctly in the text output with the use of 1.4.7. I tried to manually modify "Time adjustment", but setting a value different from zero did not result in a modification of time displayed. How can I solve? https://cutephp.com/forum/style_emoticons/default/wink.gif

Thanks in advance https://cutephp.com/forum/style_emoticons/default/smile.gif

Btw, I solved by upgrading to 1.5.3, or at least the problem did not represent itself again until now. https://cutephp.com/forum/style_emoticons/default/smile.gif

With CuteNews 1.4.7, after having no problem at all since mid-September 2012 (while I updated from 1.4.6), I'm getting error like this one:

Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 2713 bytes) in /web/htdocs/www.doomitalia.it/home/cutenews/inc/shows.inc.php on line 614

I checked my news.txt dimension, and it is about 4 MB big; the whole Cutenews folder is considerably lower than the 25 MB value reported in the error.

Suggestion to solve? https://cutephp.com/forum/style_emoticons/default/wink.gif

Thanks in advance. https://cutephp.com/forum/style_emoticons/default/smile.gif

5

(61 replies, posted in News)

Just updated on my site, from 1.4.6 to 1.4.7. On my script I modified two things: the first is the year choose in a pair of dropdown (this one), the second consists of some css attributes in search.php because a page wasn't displayed correctly due to my global css. The first thing is now officially fixed in 1.4.7, while for the second one I just did not replace that file, keeping the old version. At the moment it seems to work everything properly, hoping it is so in the facts...

Posts found: 5

Pages 1

CutePHP Forums → Posts by afullo