[SOLVED] Cataloger & Lightbox - how to group item images

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Cataloger & Lightbox - how to group item images

Post 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?
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: Cataloger & Lightbox - how to group item images

Post by Coldman »

EDIT


I removed this because of the forum rules.

/Coldman
Last edited by Coldman on Sun Dec 12, 2010 4:58 pm, edited 1 time in total.
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Cataloger & Lightbox - how to group item images

Post 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).
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: Cataloger & Lightbox - how to group item images

Post 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
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Cataloger & Lightbox - how to group item images

Post 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...

:)
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: Cataloger & Lightbox - how to group item images

Post by Coldman »

EDIT
I removed this because of the forum rules.

/Coldman
Last edited by Coldman on Sun Dec 12, 2010 4:57 pm, edited 1 time in total.
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Cataloger & Lightbox - how to group item images

Post 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 :)
Last edited by darconny on Sun Nov 23, 2008 7:17 pm, edited 1 time in total.
JeremyBASS

Re: Cataloger & Lightbox - how to group item images

Post 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
Last edited by JeremyBASS on Sun Nov 23, 2008 7:22 pm, edited 1 time in total.
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: Cataloger & Lightbox - how to group item images

Post by Coldman »

Nice JeremyBASS!
Thanks for that one

Edit:
I have already hacked the code in the file so why not countinue ^^
Last edited by Coldman on Sun Nov 23, 2008 7:30 pm, edited 1 time in total.
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
JeremyBASS

Re: Cataloger & Lightbox - how to group item images

Post by JeremyBASS »

for me... the resaon is easy updates... can't stay on that version forever... ;D
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Cataloger & Lightbox - how to group item images

Post 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
ataxel
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 19, 2007 1:32 pm

Re: [SOLVED] Cataloger & Lightbox - how to group item images

Post 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
tkunn
New Member
New Member
Posts: 7
Joined: Tue May 30, 2006 8:22 am

Re: [SOLVED] Cataloger & Lightbox - how to group item images

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: [SOLVED] Cataloger & Lightbox - how to group item images

Post 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...
Post Reply

Return to “Modules/Add-Ons”