Results 1 to 4 of 4
  1. #1
    Casual Pligger pacifica's Avatar
    Joined
    Jun 2010
    Posts
    53

    How To Sort The Upcoming Page only?

    I would like to sort the upcoming page on my site by the highest number of votes first, so that those stories will be more likely to become published due to the high number of upcoming pages on my site.

    I use pligg 1.0.4 and the arthemia template, so I know it probably has nothing to do with sidebar2.tpl as indicated in the other posts I have read.

    I have gone into upcoming.php and changed the part
    Code:
    // order by newest first
    $search->orderBy = "link_date DESC, link_id ASC";
    to
    Code:
    // order by newest first
    $search->orderBy = "link_votes DESC, link_id ASC"
    ;

    but nothing appears to change on my page. Anyone have any ideas how to make this edit? I know I'm probably just making a simple mistake.

    I want my published page to remain the same, i.e. newest first.

  2. #2
    Casual Pligger pacifica's Avatar
    Joined
    Jun 2010
    Posts
    53
    Can anyone help me with this issue?

  3. #3
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Quote Originally Posted by pacifica View Post
    Can anyone help me with this issue?
    Most likely no none is answereing you because this is already a default feature of pligg.

    Is there a reason why you can't just use yoursite/upcoming.php?part=alltime
    It does exactly what you are asking.

  4. #4
    Casual Pligger pacifica's Avatar
    Joined
    Jun 2010
    Posts
    53
    Thanks, Chuck. I was actually wanting to set the upcoming page's default order to be sorted by votes descending, while leaving all other pages sorted by date. I think what you are saying is that all the sort options are default built into the templates, i.e. the sidebar sort options for the user to choose. Is that the correct assumption? I am happy with those options, but I was hoping to increase esp votes by sorting the upcoming page by votes, and having that as the default order.

    I thought if I edited upcoming.php it would change the default, but no matter what I change the "link_date DESC" line to, the upcoming page is always sorted by date descending. Therefore, I figure that I am editing either the wrong file, or I am doing something incorrect.

    Sorry for my lack of knowledge in the area, I'm learning as much as I can as I go along. I do appreciate your response, though.

Similar Threads

  1. I can't sort upcoming stories by popularity
    By behoppe in forum Questions & Comments
    Replies: 1
    Last Post: 05-29-2009, 11:32 AM
  2. Question about robots.txt ( Disallow: published/page/ and upcoming/page/ )
    By juanmartinbravo in forum Questions & Comments
    Replies: 9
    Last Post: 01-22-2008, 08:34 AM
  3. Same sort options in Published as in Upcoming
    By Niko in forum Questions & Comments
    Replies: 6
    Last Post: 12-24-2007, 07:35 PM
  4. Replies: 2
    Last Post: 05-19-2007, 07:31 AM
  5. Build 987 - Upcoming News sort order
    By oldpipe in forum Questions & Comments
    Replies: 2
    Last Post: 04-26-2007, 02:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting