Number of top stories allowed

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2006, 12:19 PM
New Pligger
 
Join Date: Apr 2006
Posts: 4
The number of top stories on my site is constant at 8. How do I change this number? Maybe it is a mollio-beat issue.. I am running mollio 1.1 version.

Is there a config item somewhere that sets the number of top stories to display or is there some other way in which the number of top stories are calculated?

Any help would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 06-30-2006, 12:28 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,803
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
open up config.php and find:
PHP Code:
$page_size              8
Change 8 to however many stories you want to be on the front page.

Now Available: Facebook Connect Module !
Reply With Quote
  #3 (permalink)  
Old 06-30-2006, 01:21 PM
New Pligger
 
Join Date: Apr 2006
Posts: 4
Thanks Yankidank for the quick reply. I tried that, but I guess I worded my question wrong. Changing the page_size to say 20 would make all the pages (the front page as well as the top stories page) to display 20 stories.

I guess what I am looking for is to make the top stories page to work the same way as the front page, i.e., if I have the page_size set to 8, the front page starts paging after 8 stories. If I have 20 stories, I have 3 pages.

However, the top stories page does not have any paging. Maybe it is a mollio-beat change.. I was just hoping this maybe some config item that can be changed to make the top stories page also to incorporate paging.
Reply With Quote
  #4 (permalink)  
Old 07-05-2006, 01:35 PM
Casual Pligger
 
Join Date: May 2006
Posts: 43
I have been wondering the same thing ... a way to edit the # of stories and behavior of top stories. I'd still like 8 stories on the first page of "top stories", but i'd like it to scroll the next 8 onto another page, with links at the bottom, just like the main index page works.

Is there a way to have it display 8 on a page, but say ... have it show the top 25 stories using pagination?
Reply With Quote
  #5 (permalink)  
Old 07-06-2006, 11:23 AM
New Pligger
 
Join Date: Apr 2006
Posts: 4
Konakevin,
Not sure if you are using mollio. If you are, I found that the template used for the topstories page needs to be modified a little bit to provide this ability:
In topstories_center.tpl add the following just before the {/php} tag:

do_pages($rows, $page_size, getmyurl("topstories")); // show the "page" buttons at the bottom
Reply With Quote
  #6 (permalink)  
Old 07-07-2006, 10:52 PM
Casual Pligger
 
Join Date: May 2006
Posts: 43
ngrad, that worked PERFECTLY! Thanks a ton.

Man ... I love the pligg community, you guys are all awesome and quick to help where you can.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of category levels allowed pliggy Questions and Comments 2 10-09-2008 03:07 PM
Sort top stories by number of days ditto Questions and Comments 0 03-09-2008 06:38 PM
total number for upcoming stories jacksdon2323 Questions and Comments 4 06-10-2007 01:22 AM
How do i change the number of stories that appear on each view for stories? partythenwork Questions and Comments 2 01-19-2007 12:42 PM
change number of stories displayed on a page unohoo Questions and Comments 3 09-26-2006 05:12 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development