Ignore:
Timestamp:
Jan 13, 2013, 12:49:45 PM (12 years ago)
Author:
mistic100
Message:

compatible with Simple, new export options

Location:
extensions/UserCollections/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/UserCollection.class.php

    r20093 r20099  
    504504  function serialize($params)
    505505  {
    506     $params = array_intersect($params, array('id','file','name','url','path'));
     506    $params = array_intersect($params, array('id','file','name','url','path','date_creation','collection_add_date','filesize','width','height'));
    507507   
    508508    $content = null;
     
    514514    file,
    515515    name,
    516     path
     516    path,
     517    date_creation,
     518    filesize,
     519    width,
     520    height,
     521    add_date AS collection_add_date
    517522  FROM '.IMAGES_TABLE.'
    518   WHERE id IN('.implode(',', $this->images).')
     523    JOIN '.COLLECTION_IMAGES_TABLE.' ON id = image_id
     524  WHERE col_id = '.$this->data['id'].'
    519525  ORDER BY id
    520526;';
     
    537543          switch ($field)
    538544          {
    539           case 'id':
    540             $element[] = $row['id']; break;
    541           case 'file':
    542             $element[] = $row['file']; break;
    543545          case 'name':
    544546            $element[] = render_element_name($row); break;
     
    547549          case 'path':
    548550            $element[] = $root_url.ltrim($row['path'], './'); break;
     551          default:
     552            $element[] = $row[$field]; break;
    549553          }
    550554        }
  • extensions/UserCollections/include/events.inc.php

    r20097 r20099  
    126126{
    127127  // add links
    128   $search = '#(<span class="wrap1">|<li class="gthumb">)#';
     128  $search = '#(<li>|<li class="gthumb">)#';
    129129  $replace = '$1
    130130{strip}<a class="addCollection" href="{$collection_toggle_url}{$thumbnail.id}" data-id="{$thumbnail.id}" rel="nofollow">
Note: See TracChangeset for help on using the changeset viewer.