Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Can't get _LRG to work and naming of images

Can't get _LRG to work and naming of images

Locked

Started by staffars on 24 Nov 2008, 9:54 PM · Views: 1,126

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
24 Nov 2008, 9:54 PM
#1
staffars avatar

staffars

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Post #1 by staffars

I've put a thumbnail of TransmetropolitanVol3.jpg in new catalogue /thumbs/ and the original in folder large with suffix _LRG like this:

/thumbs/TransmetropolitanVol3.jpg
/thumbs/large/TransmetropolitanVol3_LRG.jpg

If I understand things correctly that should load the larger image in the popup when I click on the larger image link. However it's the thumbnail which loads.What have I done wrong?

Also can does the _LRG system work if i name my images like this Transmetropolitan_vol_LRG.jpg?

I should mention that I've added the Book Module if that helps troubleshooting.

24 Nov 2008, 10:22 PM
#2
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Post #2 by bobdog

Link to your site?

24 Nov 2008, 10:29 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

Where is the "thumbs" folder located?

Zen Cart uses the /images/ folder, not a /thumbs/ folder.

If you've put your "thumbs" folder under the /images/ folder, then you'll need to work your structure like this:

/images**/thumbs/TransmetropolitanVol3.jpg**
/images/large**/thumbs/TransmetropolitanVol3_LRG.jpg
**

Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=58

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2008, 10:39 PM
#4
staffars avatar

staffars

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Post #4 by staffars

Transmetropolitan vol 3 page:

http://www.staffars.se/test/zc_new/index.php?main_page=product_book_info&cPath=0&products_id=4614

Transmetroplitan 3 is one of the images wher I've trippled checked that the image name is correct. Will fix the other images tomorrow.

I'm not planning using the English langague so there's a lot of the original install language. I've left it up for those who don't speak Swedish.

24 Nov 2008, 10:40 PM
#5
staffars avatar

staffars

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Post #5 by staffars

DrByte:

Where is the "thumbs" folder located?

Zen Cart uses the /images/ folder, not a /thumbs/ folder

Yes, Sorry that should've been clear.

It's images/thumbs/large/etc

24 Nov 2008, 10:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

You've not followed the pattern properly.

You've used this:

/images/thumbs/large/TransmetropolitanVol3_LRG.jpg

instead of this:
images/large/thumbs/TransmetropolitanVol3_LRG.jpg

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2008, 11:20 PM
#7
staffars avatar

staffars

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Post #7 by staffars

Thank you! It was driving me nuts and I feel stupid for not being able to read the instructions better.

Do you know about the naming algorithm. Can i name my images like this:

Transmetropolitanvol3_nameofthe##############_LRG.jpg

Or do i have to change it to something like this?
Transmetropolitanvol3nameofthe##############_LRG.jpg

24 Nov 2008, 11:48 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #8 by drbyte

You can use underscores as long as you are consistent.

The rules are outlined in the FAQ document I mentioned earlier.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.