[lightbox / greypop] lightbox imageDataContainer bug

com_net

Joined: 2010-02-26
Posts: 5
Posted: Mon, 2010-03-15 08:59

When you browthing multipage album with lightbox - you will see correct text data (imageDataContainer) only when current photo located on page, you entered the lightbox. When current photo is outside current page of album - you will see wrong text data such as title, subtitle, description, price etc.: text data are from first or last picture on current page. This mean: lightbox can show all photos in album, but can show text data only from current page of album.
The worst is when you press "buy" button - you will see the last photo on page in your shoping cart instead of current shown in lightbox.
Example: http://boyztoyz.ru/aerophoto_test/gallery2/stock/gippenreyter/(two pages with 1 picture per page):

Does anybody know how to fix this?


Gallery version = 2.3 core 1.3.0
API = core 7.54, modules 3.9, theme 2.6, integration 1.5
PHP = 5.2.5 apache
Web server = Apache/1.3.34 (Unix) mod_perl/1.29 PHP/5.2.5 mod_throttle/3.1.2 mod_ssl/2.8.25 OpenSSL/0.9.7a
Database = mysqli 4.1.22-standard-log, lock.system=flock
Activated toolkits = LinkItemToolkit, Exif, ArchiveUpload, Gd, ImageMagick, SquareThumb
Акселерация = partial/21600, partial/21600
Operating system = Linux 2.6.9-5.ELsmp #1 SMP
Default theme = greypop
gettext = on
Language = ru_RU
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; ru; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

 
com_net

Joined: 2010-02-26
Posts: 5
Posted: Fri, 2010-03-26 07:21

sorry, some changes on test system. Correct url: http://boyztoyz.ru/aerophoto_test/stock/author/gippenreyter/

 
com_net

Joined: 2010-02-26
Posts: 5
Posted: Fri, 2010-03-26 07:49

workaround found: limit the number of viewable photos only those, that are on current page by editiing albumlight.tpl:
line 12 replace
{math equation="(x - 1) * y + 1" x=$theme.currentPage y=$total assign=first}
with
{g->block type="lightbox.Before" class="Peers" windowSize=$theme.childCount first=$first}
and
line 237: replace
{math equation="x * y" x=$theme.currentPage y=$total assign=last}
with
{math equation="x * y" x=12 y=$total assign=last}

, where x='pictures per page' (for me x=12, don't know appropriate variable name).
...
but still want to find a fair solution without such a strange limitation of usability