| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Easy dynamic thumbnail generation | ||||
|
|
Thread Tools | Search this Thread |
#41
|
|||||||||
|
|||||||||
It's probably the quotes that is messing it up. Try it with " quotes.
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#42
|
|||||||
|
|||||||
I have tried all the following possibilities and still it does not work and the image location is always wrong
Quote:
Quote:
Quote:
I have even tried all 3 of the above with single quotes instead but it still does not work. The image source just keeps coming out wrong with that added home/tahir786/public_html/urbanretro-co-uk/ in the middle that is not needed. Is there any other way apart from the above to say where the img src is in the code. Thanks. Tahir
__________________
Tahir X-Cart Gold v4.4.4 [win] |
|||||||
#43
|
|||||||||
|
|||||||||
Replace "server path to remove" with the part you want to cut out. The second set of quotes after the : should be empty.
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#44
|
|||||||||
|
|||||||||
Re: Easy dynamic thumbnail generation
Quote:
Where would I edit the code? I presently have my images in the "files" directory and there is already a "cache" directory inside it. The first image is the default (no image available). Whenever I click on the thumbnail on the product page, I now get a 404 error in the popup window. I used the first example of your product_images.tpl in xcart version 4.1.2. Also, how would I get just a "stack" of the detail image thumbnails with the main product thumbnail at the top of the stack... like this; Product Thumbnail Detail Thumbnail Detail Thumbnail ... and have the popup window open on the detail photo of which ever is clicked.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#45
|
|||||||||
|
|||||||||
Re: Easy dynamic thumbnail generation
Quote:
The cache directory is defined here: Code:
Below this you can aslo set certain paramaters to default to the settings you want, so you don't have to set them in the templates themselves. Quote:
In my first product_images.tpl, the first image is not a detailed product image, it's the product's main image, you probably don't have that set if it's not loading. Getting a stack of thumbs like you want is possible, but you'd need to rewrite the product_images.tpl. It would be easiest to remove the link the the main image entirely and just use the default product_images.tpl. Just replace the image links with the {thumb} function.[/code]
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#46
|
|||||||
|
|||||||
Hey Alltribes. Thanks so much I got it all working now. My first mod and its a beauty.
Sorry for being a pain but I need to know 1 last thing, something simple. How do you set the border to 0. I have put border="0" in the product_images.tpl in every place possible but the border does not go. Where exactly do I put border="0" to get rid of the border? Thanks a million Tahir
__________________
Tahir X-Cart Gold v4.4.4 [win] |
|||||||
#47
|
|||||||||
|
|||||||||
To get rid of the border put the border="0" in the html parameter. Here's an example:
Code:
__________________
Alltribes.com Native American Jewelry Pottery, Baskets, Kachinas & More X-cart Gold Version 4.0.17 Live PHP 5.2.6 MySQL 4.1.25 (mt) |
|||||||||
#48
|
|||||||
|
|||||||
great thanks
__________________
Tahir X-Cart Gold v4.4.4 [win] |
|||||||
#49
|
|||||||
|
|||||||
I have got this all working now. Thanks for all the help alltribes. When my site is launched I will place a link so people can see it in action
__________________
Tahir X-Cart Gold v4.4.4 [win] |
|||||||
#50
|
|||||||
|
|||||||
that's COOL
thanks Alltribes. I'm in debt.
To others, here's a live site showing the effect, using exactly the technology as explained by Alltribes. I made some cosmetic modifications though. Still under development, only 2 dummy products. Hopefully it helps.
__________________
all the best, Wubi ::::::::: xcart gold v4.3.2 with lots of customizations Linux Php 5.2.4 MySQL: 4.1.22-standard |
|||||||
|
|||
X-Cart forums © 2001-2020
|