Author |
Message |
0xid0
New Member


Joined: Jun 28, 2006
Posts: 6
|
Posted:
Mon Sep 11, 2006 5:21 am |
|
Hola, I have PHP-Nuke 7.9 and have a problem: I have configured the PHP-Nuke in order that it shows 15 news in the principal page and also I have checked the table storyhome and it is with 15, but nonetheless they are still leaving 10 news in the index.
Does someone know how to fix it it? |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Mon Sep 11, 2006 5:44 am |
|
what exactly did you touched / altered ? |
|
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Mon Sep 11, 2006 8:09 am |
|
This is an old bug that's been fixed several times ... however because you are using Nuke 7.9 the bug keeps resurfacing because the author doesn't pay an attention to fixes the community makes.
In the index.php file of the news module, in the function theindex() you will probably find code something like this:
Code: if (isset($userinfo['setstorynum']) AND $user_news == 1) {
$storynum = $userinfo['setstorynum'];
} else {
$storynum = $storyhome;
|
Problem is that the userinfo variable is storynum and not setstorynum so it ignores the setting. The correct code should be:
Code: if (isset($userinfo['storynum']) AND $user_news == 1) {
$storynum = $userinfo['storynum'];
} else {
$storynum = $storyhome;
|
I believe that this error was introduced somewhere in the Patch series but I'm not an archeologist nor do I really care. The correct code is now "permanently" in Ravennuke. |
|
|
|
 |
0xid0

|
Posted:
Thu Sep 14, 2006 9:20 pm |
|
Hello, I have only in my index.php the variable storynum, and yes, the index.php I have it modified, but the same modification that I have in installed in another web does not ignore my configuration, shows 15 news.
Thanks |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Sep 15, 2006 7:39 am |
|
0xid0, also keep in mind that individual users, including your regular userid, can have a different number of news items set. Just another thing to check for. Maybe make sure that you are logged out from Admin AND your regular user, and then come back in and see what it looks like from "anonymous". |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
0xid0

|
Posted:
Fri Sep 15, 2006 8:50 am |
|
montego wrote: | 0xid0, also keep in mind that individual users, including your regular userid, can have a different number of news items set. Just another thing to check for. Maybe make sure that you are logged out from Admin AND your regular user, and then come back in and see what it looks like from "anonymous". |
Thank you very much, this it was the problem, thank you very much:D |
|
|
|
 |
montego

|
Posted:
Sat Sep 16, 2006 1:51 pm |
|
|
|
 |
|