@xupypr
Вообще синхронизация идёт с файлами, а не с базой, то есть новые файлы и папки добавятся в базу, а отсутствующие - сотрутся.
По крайней мере в 1.3.5. Протестировать 1.4 у меня пока времени не хватает.
Подскажите еще вот какую вещь.
Все синхронизировано, все файлы присутствуют, но при просмотре выдает ошибку
Error: mysql_num_rows(): supplied argument is not a valid MySQL result resource
Error type/ Nr.: Warning - 2
File: /home/b/ ... /assets/modules/easy2/classes/e2g.snippet.class.php
Line: 251
Line 251 source: $file_num_rows = mysql_num_rows($file_query_result);
Кажется понял в чем ошибка.
Возникает тогда, когда структура такая
folder
-folder
----folder
--------file
--------file
--------file
--------file
----folder
--------file
--------file
--------file
-folder
----folder
--------file
--------file
----folder
----folder
----folder
-folder
----folder
тогда, если обратиться к папке внутри которой нет фото, а также папки, выдает ошибку.
error... if inside folder -> folders (not files)
e2g v 1.4.0
-
☆ A M B ☆
- 3,112 Posts
uhm...
you can add @ in front of mysql_num_rows and mysql_fetch_array as well.
i’ll fix the code.
thx for reporting.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
hang on...
i’m sure that i’ve set if there is no file inside a folder, then the folder will NOT be shown in the gallery by the snippet.
anyway, there is a little more bugfix on pagination calculation.
please use this file below.
Quote from: xupypr at Apr 07, 2010, 03:13 AM
When open photo and right click -> "Save image as..." saved "show.easy2gallery.php"
Browser FireFox 3.5... in Google Chrome normal.
in Safari -> "show.easy2gallery.php.jpg"
in F##kng IE -> "untitled.bmp"
which IE?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
Quote from: xupypr at Apr 07, 2010, 04:51 AM
which IE?
IE6 ))))
OUCH!!!
Dude, I’m not supporting IE6.
Sorry for disappointing you

.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.