You're just trying to ignore HTTP Rules..., so, don't expect it to work!
Ernie
bigmax.ch/shop/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I just checked your website.Vik0 wrote:Hello,
i have a problem with images on product page and quickview page , images not showing !!!
My site is: http://tugytoys.com/
Product page: http://tugytoys.com/konstrukror%20banba ... 20-%206956
anyone have an idea for the issue?
How did you fix it?


OC v. 2.1.0.0
can be done in the admin section /model/tool/image.php file as well,...\cart\catalog\model\tool\image.php
to make it be a little more pro-Style...

Find, at the very botton end:
Code: Select all
if ($this->request->server['HTTPS']) {
return $this->config->get('config_ssl') . 'image/' . $new_image;
} else {
return $this->config->get('config_url') . 'image/' . $new_image;
}
}
}
Code: Select all
if ($this->request->server['HTTPS']) {
return $this->config->get('config_ssl') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
} else {
return $this->config->get('config_url') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
}
}
}
Good Luck

Ernie
bigmax.ch/shop/
BUT IT DOES NOT SOLVE THE WHITE SPACE PROBLEM, in image title Names.
It just fixes 'em, and, like any fix, it's just one more time-consuming 'action', after all...

PS. For Testers, this: '%20' could probably be renamed to an 'x' , or something, to, at least, make it a little more 'appealing' to read, in case..., but it's fully untested (yet), and just an idea

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Code: Select all
if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
// internal // return $this->config->get('config_ssl') . 'image/' . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
// external image url //
return HTTPS_IMAGE . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
} else {
// internal // return $this->config->get('config_url') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' .
$height;
// external image url //
return HTTP_IMAGE . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;

Ernie
bigmax.ch/shop/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Code: Select all
if ($this->request->server['HTTPS']) {
return $this->config->get('config_ssl') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
} else {
return $this->config->get('config_url') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
}
}
}
Code: Select all
if ($this->request->server['HTTPS']) {
return $this->config->get('config_ssl') . preg_replace('~[[:space:]]~','%20', $new_image) . '" width="' . $width . '" height="' . $height;
} else {
return $this->config->get('config_url') . preg_replace('~[[:space:]]~','%20', $new_image) . '" width="' . $width . '" height="' . $height;
}
}
}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
1 - str_replace does not track constant characters of the string but simply one set of character of the specified source.IP_CAM wrote:what's the difference,technically?
Ernie
2 - preg_replace versus str_replace is more optimized in query parsing speed lookups.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
It didn't work out that well. still same problem

Maybe is not the same issue? I can't see any front image, only the thumbnails. I use Arvixe (I red somewhere they suck big time and this issue could be related to them). I contacted them about it but not reply.
Any idea what it could be?
Attachments
Untitled-4.jpg (62.28 KiB) Viewed 5430 times
with that screwy IMAGE enlargement Mod, you have installed. I have no problem, viewing your Product Page,
with ALL IMAGES, displayed. But you seem to use different themes, as well...
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
http://forum.opencart.com/viewtopic.php?f=190&t=151497
Thank you
Opencart sites I am currently working on:
http://www.cablecafe.co.uk
http://www.exclusivelygorgeous.co.uk/
- Back up your config.php and admin/config.php files to config.backup.php
- Create a new database to use (this ensures that your original remains and can be used once your configs are created)
- Clear the contents of your original config.php files and make sure they are writeable
- Go to http://yoursite.com/install and fill in the details for the site, including the new database details NOT THE ORIGINALS
- Once install is completed, Open the config.php and admin/config.php and change the database details at the bottom to - - - - - match those of the originals in config.backup.php
- Delete the new database and remove the config.backup.php files if everything has successfully been restored
Users browsing this forum: No registered users and 22 guests