Only one featured story

Nico 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Only one featured story

Philipp
From: Austria
Administrator
1342From: Austria
Only one featured story
Originally posted by Nameless:
I see. The "featured story" option is only to keep 1-2 important news stories on top.
First, disable "featured story" on all your news stories. Then go to your admin control panel and select Other/Websites => Edit:
Sort main news by day? => No
Max. news => 10
Then click on Send to save this settings
Originally posted by Nameless:
and how would i do it so it shows only 10 of the latest stories?
I see. The "featured story" option is only to keep 1-2 important news stories on top.
First, disable "featured story" on all your news stories. Then go to your admin control panel and select Other/Websites => Edit:
Sort main news by day? => No
Max. news => 10
Then click on Send to save this settings
1 Re: Only one featured story

Nameless 0
From: -
From: -
Only one featured story
and how would i do it so it shows only 10 of the latest stories?
and how would i do it so it shows only 10 of the latest stories?
1 Re: Only one featured story

Philipp
From: Austria
Administrator
1342From: Austria
Only one featured story
Hi Nico-
Here two solutions:
1) Uncheck "Featured Story" at your old news stories
or
2) Open index.php and replace:
with:
This will display only the last featured story on the index page.
Hi Nico-
Here two solutions:
1) Uncheck "Featured Story" at your old news stories
or
2) Open index.php and replace:
$result = DBQuery("SELECT * FROM esselbach_st_stories WHERE story_main = '1' AND story_sticky = '1' AND story_hook = '0' ORDER BY story_id DESC");
with:
$result = DBQuery("SELECT * FROM esselbach_st_stories WHERE story_main = '1' AND story_sticky = '1' AND story_hook = '0' ORDER BY story_id DESC LIMIT 1");
This will display only the last featured story on the index page.
First of all: best wished for 2004!
How do I limit the number of featured stories on the index page? I want only 1 featured story to be displayed.