View Thread
 Print Thread
[PANEL] Top 5 Downloads
KasteR
There are 2 spots with hard-coded text, in English.
  • Panel Title (Top 5 Weblinks) on line 3
  • Empty result from query (No downloads have been created yet.) on line 11



$result = dbquery(
   "SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
   INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
   WHERE ".groupaccess('download_cat_access')." ORDER BY download_count DESC LIMIT 5"
);
openside('Top 5 Downloads');
if (dbrows($result)) {
   echo '
    ';
          while($data = dbarray($result)) {
             echo '
  1. '.trimlink($data['download_title'], 23)." (".$data['download_count'].")".'
  2. ';
          }
       echo '
';
} else {
   echo "
No downloads have been created yet.
\n";
}
closeside();
?>
 
http://kaster.us
Jump to Forum
Similar Threads
Thread Forum Replies Last Post
Donate Panel [7.02.XX] Code Snippets 13 09-11-2017 22:23
users online panel Addon Requests 2 01-02-2017 09:46
downloads.php remove version, comments, ratings General Chat 4 09-04-2016 00:52
[Themes] Blog-e how to add panel [7.02.XX] Themes 5 07-10-2016 02:04
Include Custom Login Panel General Chat 1 05-17-2015 07:39