1
lifeforce
extgallery 1.0.6 upload problem
  • 2009/9/24 18:04

  • lifeforce

  • Just popping in

  • Posts: 1

  • Since: 2009/9/9 1


Hi guys,

I'm using extgallery 1.0.6 and have a huge problem. Whenever I'm uploading pictures (no matter via Batch or Java Applet)they get jumbled (and not in sequence). I've tried several ways to rename the pics without any success. Usually I'm uploading between 50 - 150 pictures.

I'm starting running in circles and would be glad if someone could help me fix this problem or knows a proper solution. Many thanks in advance.

2
iliakros
Re: extgallery 1.0.6 upload problem
  • 2009/11/3 15:43

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


In extGallery 1.08 I found the following code taking care of the sorting of the pictures

extgallery/class/photoHandler.php line 108-118


function getAlbumPhotoPage($catId, $start) {
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('cat_id',$catId));
$criteria->add(new Criteria('photo_approved',1));
$criteria->setStart($start);
$criteria->setLimit($GLOBALS['xoopsModuleConfig']['nb_column']*$GLOBALS['xoopsModuleConfig']['nb_line']);
$criteria->setSort('photo_weight, photo_id');
$criteria->setOrder('ASC');

return $this->getObjects($criteria);
}

It sorts the pictures first on weight and then on id. You could check if extGallery 1.06 has these lines to.

Login

Who's Online

374 user(s) are online (223 user(s) are browsing Support Forums)


Members: 0


Guests: 374


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits