#1 (permalink)  
Old 05-28-2009, 08:53 PM
Active Member
 
Join Date: Jun 2007
Location: Quebec
Posts: 245
DGTALGOODIES is on a distinguished road
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 10:46 PM.
Reply With Quote
  #2 (permalink)  
Old 05-29-2009, 12:10 PM
Administrator
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,992
Bruceper is on a distinguished road
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
__________________
Apparently Dody didn't like my signature saying "not the admin" so he deleted it.
Did he not notice the fact that my title still says "administrator" and I haven't been the admin for months?
Reply With Quote
  #3 (permalink)  
Old 05-29-2009, 12:54 PM
Active Member
 
Join Date: Jun 2007
Location: Quebec
Posts: 245
DGTALGOODIES is on a distinguished road
Default

Code:
Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php
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!
Reply With Quote
  #4 (permalink)  
Old 05-29-2009, 04:10 PM
Administrator
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,992
Bruceper is on a distinguished road
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.
__________________
Apparently Dody didn't like my signature saying "not the admin" so he deleted it.
Did he not notice the fact that my title still says "administrator" and I haven't been the admin for months?
Reply With Quote
  #5 (permalink)  
Old 05-29-2009, 04:37 PM
Active Member
 
Join Date: Jun 2007
Location: Quebec
Posts: 245
DGTALGOODIES is on a distinguished road
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Rated Tab? Scripter1 v5.x 2 02-26-2008 07:38 PM
Get Rated mycolumbus Tutorials, Hints & Tips 4 08-30-2006 10:04 AM
Top Rated aladdin v5.x 3 06-08-2003 01:04 PM
Getting Rated Andros Tutorials, Hints & Tips 1 11-14-2001 08:53 PM


All times are GMT -5. The time now is 06:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO