PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sharlein
Member Emeritus


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

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

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.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

I tried that (just now). It remains the same - 6 items on main page.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

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?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

Hmmmm, I can't seem to find any table that contains the info I want to edit. What is that tables name?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

nuke_config. Column names are
top
storyhome
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

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?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

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.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

Review your error logs to see if something may be getting written there.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

Nothing there, Raven. I will stumble on it sooner or later. I can live with it the way it is. Very Happy
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

See if this post helps
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

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?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

Could I please have the link again for this mod, I want to make sure I did things correctly. Thank you, Steve
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

I am running 6.5, lol, i'm old fashioned. Thank you
View user's profile Send private message
sharlein
Member Emeritus


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

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

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14946
Location: Kansas

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


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

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

Thank you! Very Happy
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum