Why does not the most voted News come up in the first position?

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2008, 05:38 PM
New Pligger
 
Join Date: Jul 2008
Posts: 7
I realized that the most voted News do not come up in the first position on my homepage. For example I have News which has been voted 5 times and they are in the first position in Published News but other News which has been voted for more than 50 times, but they are far back in other pages. I believe that the most voted News should come automatically in the first position.

My questions are:

1-am I right that the most voted News should come up in the first position under Published News?

2-If yes, what should I do, that my script works properly.

I appreciate any suggestion.
Reply With Quote
  #2 (permalink)  
Old 08-07-2008, 05:39 PM
New Pligger
 
Join Date: Jul 2008
Posts: 28
There is a setting in you admin page to configure the sort order. however, by default, the latest that goes to the frontpage will be listed on the top.
Reply With Quote
  #3 (permalink)  
Old 08-07-2008, 05:44 PM
New Pligger
 
Join Date: Jul 2008
Posts: 7
Could you please let me know where I exactly can change that? I appreciate it.

Thanks

Quote:
Originally Posted by TypeEE View Post
There is a setting in you admin page to configure the sort order. however, by default, the latest that goes to the frontpage will be listed on the top.
Reply With Quote
  #4 (permalink)  
Old 08-08-2008, 03:33 AM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
Are you sure that you want to do that?

If the most voted stories are on the top then your published-page will be quite static. Now the content stays fresh because everytime a new story is published it goes to the frontpage.
I suggest that you do a tab for most popular stories and keep your published page as it is.
Reply With Quote
  #5 (permalink)  
Old 08-08-2008, 03:38 AM
New Pligger
 
Join Date: Jul 2008
Posts: 7
Thank you for your tip. I think you are right and I won´t change anything on my website.


Quote:
Originally Posted by Andtony View Post
Are you sure that you want to do that?

If the most voted stories are on the top then your published-page will be quite static. Now the content stays fresh because everytime a new story is published it goes to the frontpage.
I suggest that you do a tab for most popular stories and keep your published page as it is.
Reply With Quote
  #6 (permalink)  
Old 08-08-2008, 08:57 AM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
If you decide to change the order, do the following:

Open /index.php and go to line 35 or look for the code bvelow:

Code:
if(!isset($_REQUEST['search'])){$search->orderBy = "link_published_date DESC";}
Change it to:

Code:
if(!isset($_REQUEST['search'])){$search->orderBy = "link_votes DESC";}
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
duplicate news items and lost data in submit step 2 malexs Questions and Comments 3 05-05-2009 04:32 PM
Feeds are coming in best voted news. I want them in upcoming news. How do i do that. Fred007 Questions and Comments 0 12-05-2008 08:40 AM
Published and upcoming news in the same page, but separate benjaminr Questions and Comments 0 04-17-2008 06:25 PM
Social News with No VOTING noyp Questions and Comments 1 11-22-2006 11:27 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