Changeset 12399 for extensions


Ignore:
Timestamp:
Oct 10, 2011, 5:55:35 PM (13 years ago)
Author:
Gotcha
Message:

RSS compatible with Piwigo v2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/generate_rss.php

    r3916 r12399  
    8888
    8989                        $query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    90                                           img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     90                                          img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    9191                                          img.level '
    9292                                        .' FROM ' . IMAGES_TABLE.' AS img'
     
    109109
    110110                        $query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    111                                           img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     111                                          img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    112112                                          img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status,
    113113                                          cat.visible, cat.uppercats, cat.permalink, cat.dir '
     
    129129                        array_push($cat, "1");
    130130                        $query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    131                                           img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     131                                          img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    132132                                          img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status,
    133133                                          cat.visible, cat.uppercats, cat.permalink, cat.dir '
     
    148148
    149149                        $query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    150                                           img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     150                                          img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    151151                                          img.level '
    152152                                        .' FROM ' . IMAGES_TABLE.' AS img'
    153153                                        .' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
    154                                         .' WHERE img.average_rate IS NOT NULL '
     154                                        .' WHERE img.rating_score IS NOT NULL '
    155155                                        .get_sql_condition_FandF
    156156                                                (
     
    168168
    169169                        $query = 'SELECT img.id, img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    170                                           img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     170                                          img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    171171                                          img.level  '
    172172                                        .' FROM '.FAVORITES_TABLE.' AS fav '
     
    211211                        array_push($cat, "1");
    212212                        $query = 'SELECT distinct(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    213                                           img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     213                                          img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    214214                                          img.level  '
    215215                                        .' FROM '.IMAGES_TABLE.' AS img '
     
    275275
    276276                                        $query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    277                                                           img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     277                                                          img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    278278                                                          img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status,
    279279                                                          cat.visible, cat.uppercats, cat.permalink, cat.dir '
     
    343343                                       
    344344                                $query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name,
    345                                                   img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path,
     345                                                  img.comment, img.author, img.hit ,img.filesize, img.rating_score, img.has_high, img.path,
    346346                                                  img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status,
    347347                                                  cat.visible, cat.uppercats, cat.permalink, cat.dir '
Note: See TracChangeset for help on using the changeset viewer.