Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9
Author Message
0xid0
New Member
New Member



Joined: Jun 28, 2006
Posts: 6

PostPosted: Mon Sep 11, 2006 5:21 am Reply with quote

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?
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Mon Sep 11, 2006 5:44 am Reply with quote

what exactly did you touched / altered ?
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Sep 11, 2006 8:09 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website
0xid0







PostPosted: Thu Sep 14, 2006 9:20 pm Reply with quote

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

PostPosted: Fri Sep 15, 2006 7:39 am Reply with quote

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".

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
0xid0







PostPosted: Fri Sep 15, 2006 8:50 am Reply with quote

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







PostPosted: Sat Sep 16, 2006 1:51 pm Reply with quote

RavensScripts
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©