Changeset 1092 for trunk/comments.php


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/comments.php

    r1090 r1092  
    6767  );
    6868
    69 $page['since'] = isset($_GET['since']) ? $_GET['since'] : 1;
     69$page['since'] = isset($_GET['since']) ? $_GET['since'] : 3;
    7070
    7171// on which field sorting
     
    394394    // name of the picture
    395395    $name = get_cat_display_name_cache(
    396       $categories[$comment['category_id']]['uppercats'], '', false);
     396      $categories[$comment['category_id']]['uppercats'], null, false);
    397397    $name.= $conf['level_separator'];
    398398    if (!empty($elements[$comment['image_id']]['name']))
     
    412412
    413413    // link to the full size picture
    414     $url = PHPWG_ROOT_PATH.'picture.php?cat='.$comment['category_id'];
    415     $url.= '&image_id='.$comment['image_id'];
    416 
    417414    $url = make_picture_url(
    418415            array(
Note: See TracChangeset for help on using the changeset viewer.