Ignore:
Timestamp:
05/15/08 22:46:07 (4 years ago)
Author:
hverton
Message:

cleaned up the download bar code
updated the image generation code. font2image now creates new images in the files cache, which are included in the header as normal .png files (makes them cachable by browsers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme/theme_functions.php

    r1346 r1409  
    8686    // get the download statistics for the required download records 
    8787    $total = 0; 
    88     $result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_bar > '0' ORDER BY download_bar DESC"); 
     88    $result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_bar > '0' ORDER BY download_bar ASC"); 
    8989    while ($data = dbarray($result)) { 
    9090        $access = true; 
     
    109109            $font2png['font_text'] = $data['download_title']; 
    110110            $data['image_url'] = font2image($font2png); 
     111            $size = getimagesize(PATH_ROOT.$data['image_url']); 
     112            $data['image_height'] =$size[1]; 
     113            $data['image_width'] = $size[0]; 
    111114            $download[] = $data; 
    112115            $total += $data['download_count']; 
Note: See TracChangeset for help on using the changeset viewer.