Jump to content


[Block hack]Highest Rated/Most Voted Topsites


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 27 September 2006 - 11:40 AM

This is a hack that allows you display Highest Rated/Most Voted Topsites using my existing "Latest TopSites block 1.0" available at the link below. The topsites will be displayed in the block in the same order they are displayed in the Topsite module itself.

http://www.visiblesoul.net/resources/downl...ils.php?file=75


FIND:
$query = $DB->query("SELECT id, title, link, banner, banner2 FROM mkp_topsite WHERE validate = '1' ORDER BY id DESC LIMIT $limit");
REPLACE WITH:
$query = $DB->query("SELECT id, title, link, banner, banner2, click, rate, trate FROM mkp_topsite WHERE validate = '1' ORDER BY `trate` DESC, `rate` DESC, `click` DESC LIMIT $limit");
-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users