Page 2 of 2
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 9:20 am
by darconny
Hi Coldman and thank you
Actually, page behavior is the same like before.. i.e. I get empty second image when no second image uploaded. I just look into the code, and the second link is like this:
<img src...
So, any hints?
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 9:48 am
by Coldman
EDIT
I removed this because of the forum rules.
/Coldman
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 9:58 am
by darconny
I changed this but second link is still on a page, i.e. lightbox shows next button and like there are 2 images (second image not uploaded).
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 10:03 am
by Coldman
Have updated my solution above.
My lightbox is working great . I don't have any next button only hits the image and it change to the second image
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 10:18 am
by darconny
Thanks, my lightbox is also working.. now I get 'no image uploaded' image as a second one.
Is it possible that, if there is no second image, lightbox shows just one image i.e. Image1/1?
I have next button regularly showing...

Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 5:10 pm
by Coldman
EDIT
I removed this because of the forum rules.
/Coldman
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 7:08 pm
by darconny
Thank you very much Coldman for your effort. I put new {if} statement in category page template, but unfortunately the result is the same. I get 'no image uploaded' image as a second image. Maybe I'm doing something wrong here, I left your patch from previous post in cataloger.module.php. Is this right or not, along with new {if} statement?
Also, I have to show only first thumbnail image, so I erased part with for second image link and it works.
So, any thoughts how to fix this?
Hey I can see new updated solution.. checking it right now

Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 7:20 pm
by JeremyBASS
*Cough*
Code: Select all
{assign var="foo" value=$items[numloop].link|regex_replace:"/.*\/(.*)\//":"\\1"}
{assign var="image" value="uploads/images/catalog/`$foo`_t_1_100_1.jpg"}
{if file_exists($image)}<img src="{root_url}/{$image}" />{/if}
you can change _t_1_100_1.jpg... that is the
.image_src_1, thumb, etc (read the help of the mod)
so
{if file_exists($image)}{/if}
need more then one...
{assign var="image2" value="uploads/images/catalog/`$foo`_t_1_100_1.jpg"}
{if file_exists($image2)}{/if}
an so on...
this is how I bypassed the noimage with
no eidting of the code in the files
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 7:28 pm
by Coldman
Nice JeremyBASS!
Thanks for that one
Edit:
I have already hacked the code in the file so why not countinue ^^
Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 7:50 pm
by JeremyBASS
for me... the resaon is easy updates... can't stay on that version forever...

Re: Cataloger & Lightbox - how to group item images
Posted: Sun Nov 23, 2008 8:11 pm
by darconny
I can't believe it, two working solutions :D
Thank you very much, Jeremy and Coldman... I got it, problem solved!
All the best
Darko
Re: [SOLVED] Cataloger & Lightbox - how to group item images
Posted: Sun Dec 14, 2008 3:22 pm
by ataxel
That is what i'm trying to do. Cataloger and Lightbox, as a newbie, i really miss something after reading all those posts.
Is there a easy abc guide to follow ?
From installing Lightbox to have it show with multiple image?
Thank you
Re: [SOLVED] Cataloger & Lightbox - how to group item images
Posted: Sat Mar 21, 2009 10:13 pm
by tkunn
hi,
i've been reading and testing this lightbox and category-showing-items thread... but i cant get it to work.
but. i think my problem is a little more simple i think:
i want to show all the available images (with clickable lightbox) and "notes".
category view:
----
image1, image1_2, image1_3
notes1
---
image2_1, image2_2
notes2
---
etc
been playing around with these examples and trying to figure it out.. but i have failed. i cant get the item image array to show correctly (just first image shows)...
anyone, help?
jüri
Re: [SOLVED] Cataloger & Lightbox - how to group item images
Posted: Sun Jul 19, 2009 6:56 pm
by Dr.CSS
@ ataxel, tkunn
Since this thread says SOLVED in the top you most likely aren't going to get any help as people like me looking to help won't be looking in a solved thread, start a new thread and link to this one saying you tried this and it didn't work...
Of course give all the steps you tried to do to get it to work and nay other pertinent info you can, the more the better...