Changing how the posts are sorted on frontpage

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2006, 06:28 AM
New Pligger
 
Join Date: Oct 2006
Posts: 12
Hello

I've been searching around the forum, but its no one getting any answers to their questions about it. Please help me out, then other users can get the answers to, by reading this thread.

I got pligg up and running, i like it very much. Great work!

My question is: How are the posts on frontpage sorted by default? I dont understand how they are listed.. Im trying to get a clue... With no luck! :-)

I want the 20 last published posts to be displayed randomly on frontpage, so the users can be served with the latest news/posts..

Same for the shakeit (queued posts), i want it to display the queued posts randomly, so its easier for the queued posts to get to the frontpage. Normally the users dont want to navigate thrue 20 pages for voting on posts...

Please help me out, then you admins or who ever will help, dont need to answer other of the same posts.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-07-2006, 04:51 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
The votes are sorted on the front page by date by default. There is a mod that allows you to sort them by top today ,yesterday, this week, this month, and this year in the next version of Pligg that will be released. As newer stories hit the front page they push down the current stories.

On the queued page the stories are also sorted by date by default. In the next version of Pligg you will be able to sort them by newest stories, oldest stories, most popular, and by least popular.

To sum everything up, stories go up on the queued page and down on the front page.
Reply With Quote
  #3 (permalink)  
Old 12-22-2006, 06:26 PM
Casual Pligger
 
Join Date: Oct 2006
Posts: 30
Can I do what you are saying from the Admin? I want the first page the user sees to be the Top Today. Right now, the newest stories are what is shown first to any visitor with tabs for Top Today, Yesterday, etc.. How can I change it so that the Top Today is the first visible entry?

Quote:
Originally Posted by kbeeveer46 View Post
The votes are sorted on the front page by date by default. There is a mod that allows you to sort them by top today ,yesterday, this week, this month, and this year in the next version of Pligg that will be released. As newer stories hit the front page they push down the current stories.

On the queued page the stories are also sorted by date by default. In the next version of Pligg you will be able to sort them by newest stories, oldest stories, most popular, and by least popular.

To sum everything up, stories go up on the queued page and down on the front page.
Reply With Quote
  #4 (permalink)  
Old 11-07-2007, 07:53 AM
New Pligger
Pligg Version: 9.8.2
Pligg Template: Emerald
 
Join Date: Nov 2007
Posts: 29
I am guessing this 'new' version of pligg has been released by now (11 months later ) and if so I cannot find such a function within v9.8.2

Can anyone point me in the right direction?
Reply With Quote
  #5 (permalink)  
Old 03-25-2009, 02:23 AM
New Pligger
Pligg Version: 1.0RC2
 
Join Date: Mar 2009
Posts: 1
Hello,

I think in Pligg RC 3 is this option not available. When does this option come? And where can I change this in the code (RC3)?

Paul
Reply With Quote
  #6 (permalink)  
Old 03-25-2009, 10:34 AM
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
Old thread. If you want to order the stories by highest voted descending to lowest voted you will need to edit 1 line in index.php.

Code:
 if(!isset($_REQUEST['search'])){$search->orderBy = "link_published_date DESC";}
to
Code:
 if(!isset($_REQUEST['search'])){$search->orderBy = "link_votes DESC";}
I'll try to write up some more hacks on pliggmods.com to help you out.

Now Available: Facebook Connect Module !
Reply With Quote
  #7 (permalink)  
Old 03-29-2009, 06:11 PM
Casual Pligger
Pligg Version: 1.0.3
Pligg Template: Arthemia
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 41
I need the default sort on the front page to be "top by month". Can someone point me in the right direction?
Thanks in advance.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of posts displayed on frontpage frostfire Questions and Comments 1 10-04-2007 09:33 AM
Changing the sort order on the frontpage boetter Questions and Comments 1 05-02-2007 11:09 AM
What is the best way to deal with old posts in the queue revolver Questions and Comments 1 01-02-2007 10:37 PM
Ability to add something between posts.... nickaster Questions and Comments 2 10-15-2006 01:17 PM
Promote Old Links To Frontpage girish133 Questions and Comments 0 10-12-2006 04:07 AM


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