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 -> Bug Fixes for phpnuke 6.5
Author Message
sharlein
Member Emeritus



Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Mon Nov 03, 2003 9:58 pm Reply with quote

Raven, I can't seem to control the amount of stories shown on the main page. I selected what I want from admin/preferences (5), but all remained. I then opened settings.php and added two more choices (1 & 6). Going back to preferences, the new choices appeared, but when I chose them, they would not work either. Is there somewhere else I need to check? Thank you.

_________________
Give Me Ambiguity Or Give Me Something Else! 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Nov 03, 2003 10:31 pm Reply with quote

Did you try making both these settings 5?

Number of Items in Top Page: 5
Stories Number in Home: 5
 
View user's profile Send private message
sharlein







PostPosted: Mon Nov 03, 2003 11:07 pm Reply with quote

I tried that (just now). It remains the same - 6 items on main page.
 
Raven







PostPosted: Mon Nov 03, 2003 11:11 pm Reply with quote

Edit it directly in phpMyAdmin to verify that it is at least using the config table. If that works, then I would say it has to do with something you've customized that is not allowing it to be updated. Just for curiosity, when you change other items on your Preferences page, do they get saved?
 
sharlein







PostPosted: Tue Nov 04, 2003 2:01 am Reply with quote

Hmmmm, I can't seem to find any table that contains the info I want to edit. What is that tables name?
 
Raven







PostPosted: Tue Nov 04, 2003 4:51 am Reply with quote

nuke_config. Column names are
top
storyhome
 
sharlein







PostPosted: Tue Nov 04, 2003 10:15 am Reply with quote

I found the entries, Raven and both are set at 5. However, I notice that there are 2 rows in the table. Both rows are identical. Could this be the problem?
 
Raven







PostPosted: Tue Nov 04, 2003 10:19 am Reply with quote

Possibly. Delete one of the rows. If that doesn't help, then I suspect that some change you've made isnot allowing it to be read or applied.
 
sharlein







PostPosted: Tue Nov 04, 2003 12:08 pm Reply with quote

I deleted the extra line, the problem remains. It must be something I have changed. I will work around it. Thank you for your time, Raven. If I do find it, I will let you know what was causing the problem.
 
Raven







PostPosted: Tue Nov 04, 2003 12:13 pm Reply with quote

Review your error logs to see if something may be getting written there.
 
sharlein







PostPosted: Tue Nov 04, 2003 4:06 pm Reply with quote

Nothing there, Raven. I will stumble on it sooner or later. I can live with it the way it is. Very Happy
 
Raven







PostPosted: Thu Nov 06, 2003 5:57 am Reply with quote

See if this post helps http://www.ravenphpscripts.com/postp2997.html#2997
 
sharlein







PostPosted: Thu Nov 13, 2003 10:37 am Reply with quote

Raven, the problem seems to have gotten bigger. I can preview a story and then submit it, but it then disappears. Not on home page or not in database. If I submit a story, it shows up in admin/submissions, but if I approve it, it too disappears. I am using the 'display_order' column in the stories table. Yesterday, I deleted the column, and all of my stories disappeared. (I then restored it from backup. and stories were back) Do you think this may be related to the number of stories in home problem?
 
Raven







PostPosted: Thu Nov 13, 2003 10:48 am Reply with quote

You can safely remove the display_order column ONLY if you also restore the files that it it modified. You can't do one w/o the other. That mod is safe. I use it myself Smile. But, if you have applied aother mods to the same files and table, then there may well be a conflict. The files that need to be restored are

admin/modules/stories.php
admin.php
modules/News/index.php
 
sharlein







PostPosted: Thu Nov 13, 2003 11:12 am Reply with quote

Could I please have the link again for this mod, I want to make sure I did things correctly. Thank you, Steve
 
Raven







PostPosted: Thu Nov 13, 2003 11:16 am Reply with quote

http://www.ravenphpscripts.com/download-file-54.html
 
Raven







PostPosted: Thu Nov 13, 2003 11:21 am Reply with quote

Also be aware that this is designed for 6.5 only. The files are from 6.5, not 6.9. While they should work, they are not the same. Until I reissue a true 6.9 version, you should search for display_order in the files and maybe only replace the same code in your 6.9 instead of replacing the entire files.
 
sharlein







PostPosted: Thu Nov 13, 2003 2:11 pm Reply with quote

I am running 6.5, lol, i'm old fashioned. Thank you
 
sharlein







PostPosted: Sat Nov 15, 2003 11:31 am Reply with quote

Thank you. I missed a lot of stuff on the display order. Now, everything seems to be working fine. I can post a new story and control the number shown from preferences. But i'm not sure of one thing - the order number box on a new story. Is it directly related to the column in the table? Also, how does it work? do i just put in a random number of where i want it to be displayed on main page? Steve
 
Raven







PostPosted: Sat Nov 15, 2003 11:37 am Reply with quote

It adds the column display_order. The higher the number, the higher the precedence. So, if you always wanted a story to be first, then make it 1000 (just an example). Then, number the others after it, like in 10's (990, 980, etc.). That way you leave room for insertion w/o renumbering everything. If you don't number the other ones then they just display as usual
 
sharlein







PostPosted: Sat Nov 15, 2003 1:03 pm Reply with quote

Thank you! Very Happy
 
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 -> Bug Fixes for phpnuke 6.5

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 ©