Ignore:
Timestamp:
Mar 22, 2006, 2:01:47 AM (18 years ago)
Author:
rvelices
Message:

URL rewriting: capable of fully working with urls without ?

URL rewriting: works with image file instead of image id (change
make_picture_url to generate urls with file name instead of image id)

URL rewriting: completely works with category/best_rated and
picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url
and 'picture.php?' to 'picture' in make_picture_url to see it)

fix: picture category display in upper bar

fix: function rate_picture variables and use of the new user type

fix: caddie icon appears now on category page

fix: admin element_set sql query was using storage_category_id column
(column has moved to #image_categories)

fix: replaced some old $_GET[xxx] with $page[xxx]

fix: pictures have metadata url (use ? parameter - might change later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/calendar_monthly.class.php

    r1090 r1092  
    225225  $query.= '
    226226  GROUP BY period
    227   ORDER BY YEAR('.$this->date_field.') DESC';
     227  ORDER BY YEAR('.$this->date_field.') DESC, MONTH('.$this->date_field.')';
    228228
    229229  $result = pwg_query($query);
     
    351351    $row = mysql_fetch_array(pwg_query($query));
    352352    $items[$day]['tn_path'] = get_thumbnail_src($row['path'], @$row['tn_ext']);
    353     $items[$day]['tn_file'] = $row['file'];
     353    $items[$day]['file'] = $row['file'];
     354    $items[$day]['path'] = $row['path'];
     355    $items[$day]['tn_ext'] = @$row['tn_ext'];
    354356    $items[$day]['width'] = $row['width'];
    355357    $items[$day]['height'] = $row['height'];
     
    446448        else
    447449        {// item not an image (tn is either mime type or an image)
    448           $tn_size = @getimagesize($items[$day]['tn_path']);
     450          $thumb = get_thumbnail_src(
     451                $items[$day]['path'], @$items[$day]['tn_ext'], false
     452              );
     453          $tn_size = @getimagesize($thumb);
    449454        }
    450455        $tn_width = $tn_size[0];
     
    549554          array(
    550555            'IMAGE'=>$data['tn_path'],
    551             'IMAGE_ALT'=>$data['tn_file'],
     556            'IMAGE_ALT'=>$data['file'],
    552557            'IMAGE_TITLE'=>$thumbnail_title,
    553558            'U_IMG_LINK'=>$url
Note: See TracChangeset for help on using the changeset viewer.