Results 1 to 5 of 5

Thread: Top Rated Block

  1. #1
    DGTALGOODIES is offline Active Member
    Join Date
    Jun 2007
    Location
    Quebec
    Posts
    242

    Default Top Rated Block

    Hi can some one help me make the Top 10 block into Top Rated i kinda have an idea but it does not work right.

    $query = "select * from idx_link
    where suspended = 0 and rating = 1
    order by rating desc, last_updated desc limit $params[max_item]";

    Thanks in advance.

    Sorry!

    This works
    $query = "select * from idx_link
    where suspended = 0 and rating
    order by rating desc, last_updated desc limit $params[max_item]";
    Last edited by DGTALGOODIES; 05-28-2009 at 11:46 PM.

  2. #2
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You are so overthinking this.


    <%block_rss_feed url="<%$site_url%>/rss.php?type=top" template="block.rss_feed.html" max_item="5" cache_time="86400"%>

    Done

  3. #3
    DGTALGOODIES is offline Active Member
    Join Date
    Jun 2007
    Location
    Quebec
    Posts
    242

    Default

    Quote Originally Posted by Bruceper View Post
    You are so overthinking this.


    <%block_rss_feed url="<%$site_url%>/rss.php?type=top" template="block.rss_feed.html" max_item="5" cache_time="86400"%>

    Done
    LOL what u mean i am overthinking this, i tough i did it the right way. Its working!

    Iam using this

    $query = "select * from idx_link
    where suspended = 0 and rating
    order by rating desc, last_updated desc limit $params[max_item]";



    How is this <%block_rss_feed url="<%$site_url%>/rss.php?type=top" template="block.rss_feed.html" max_item="5" cache_time="86400"%>
    supposed to do the same thing!

  4. #4
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You say you want a top rated block, so I told you how to do it that takes no thinking and no work other than copy/paste.

    If you want to try and code it out, and get the same results, that would be overthinking it. It's a lot easier to just use the available rss feed.

  5. #5
    DGTALGOODIES is offline Active Member
    Join Date
    Jun 2007
    Location
    Quebec
    Posts
    242

    Default

    I see but unfortunately the over thinking way is the only way i can get it to work i tried pasting your code but it does not work it shows partials text of the code prabably due of my lack of skills but its all good it works and i dont need the Top 10 block

    Thanks

Similar Threads

  1. Getting Rated Tab?
    By Scripter1 in forum v5.x
    Replies: 2
    Last Post: 02-26-2008, 08:38 PM
  2. Get Rated
    By mycolumbus in forum Tutorials, Hints & Tips
    Replies: 4
    Last Post: 08-30-2006, 11:04 AM
  3. Top Rated
    By aladdin in forum v5.x
    Replies: 3
    Last Post: 06-08-2003, 02:04 PM
  4. Getting Rated
    By Andros in forum Tutorials, Hints & Tips
    Replies: 1
    Last Post: 11-14-2001, 09:53 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
  •