Author |
Message |
sharlein
Member Emeritus

Joined: Nov 19, 2002
Posts: 322
Location: On the Road
|
Posted:
Mon Nov 03, 2003 9:58 pm |
|
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! |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Nov 03, 2003 10:31 pm |
|
Did you try making both these settings 5?
Number of Items in Top Page: 5
Stories Number in Home: 5 |
|
|
|
 |
sharlein

|
Posted:
Mon Nov 03, 2003 11:07 pm |
|
I tried that (just now). It remains the same - 6 items on main page. |
|
|
|
 |
Raven

|
Posted:
Mon Nov 03, 2003 11:11 pm |
|
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

|
Posted:
Tue Nov 04, 2003 2:01 am |
|
Hmmmm, I can't seem to find any table that contains the info I want to edit. What is that tables name? |
|
|
|
 |
Raven

|
Posted:
Tue Nov 04, 2003 4:51 am |
|
nuke_config. Column names are
top
storyhome |
|
|
|
 |
sharlein

|
Posted:
Tue Nov 04, 2003 10:15 am |
|
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

|
Posted:
Tue Nov 04, 2003 10:19 am |
|
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

|
Posted:
Tue Nov 04, 2003 12:08 pm |
|
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

|
Posted:
Tue Nov 04, 2003 12:13 pm |
|
Review your error logs to see if something may be getting written there. |
|
|
|
 |
sharlein

|
Posted:
Tue Nov 04, 2003 4:06 pm |
|
Nothing there, Raven. I will stumble on it sooner or later. I can live with it the way it is.  |
|
|
|
 |
Raven

|
Posted:
Thu Nov 06, 2003 5:57 am |
|
|
|
 |
sharlein

|
Posted:
Thu Nov 13, 2003 10:37 am |
|
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

|
Posted:
Thu Nov 13, 2003 10:48 am |
|
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 . 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

|
Posted:
Thu Nov 13, 2003 11:12 am |
|
Could I please have the link again for this mod, I want to make sure I did things correctly. Thank you, Steve |
|
|
|
 |
Raven

|
Posted:
Thu Nov 13, 2003 11:16 am |
|
|
|
 |
Raven

|
Posted:
Thu Nov 13, 2003 11:21 am |
|
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

|
Posted:
Thu Nov 13, 2003 2:11 pm |
|
I am running 6.5, lol, i'm old fashioned. Thank you |
|
|
|
 |
sharlein

|
Posted:
Sat Nov 15, 2003 11:31 am |
|
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

|
Posted:
Sat Nov 15, 2003 11:37 am |
|
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

|
Posted:
Sat Nov 15, 2003 1:03 pm |
|
Thank you!  |
|
|
|
 |
|