How to re-style image and preserve thumbs?
10 posts
• Page 1 of 1
How to re-style image and preserve thumbs?
Hi,
I filled my site with old articles. Images in those articles have different styling (because they are from my multiple old sites (backups)). Featcats works perfect. Images in Featcats are shown properly.
But when i change styling of those article images (from "not set" to "caption") in articles to have uniform styling, i got no thumbs and Joomla say's: There was a problem loading image imagename.jpg. I have delete thumbs from mod_featcats/thumbs directory, disabling and enabling thumbs.... still got the same error without image. Image paths are local: images/news/someimage.jpg, and are located on the same machine.
Thumbs are not shown, even if i style article image like it was before and original thumbs are copied back into thumbs directory.
Any ideas why i can't change styling and preserve thumbs?
I filled my site with old articles. Images in those articles have different styling (because they are from my multiple old sites (backups)). Featcats works perfect. Images in Featcats are shown properly.
But when i change styling of those article images (from "not set" to "caption") in articles to have uniform styling, i got no thumbs and Joomla say's: There was a problem loading image imagename.jpg. I have delete thumbs from mod_featcats/thumbs directory, disabling and enabling thumbs.... still got the same error without image. Image paths are local: images/news/someimage.jpg, and are located on the same machine.
Thumbs are not shown, even if i style article image like it was before and original thumbs are copied back into thumbs directory.
Any ideas why i can't change styling and preserve thumbs?
- knof111
- Fresh Boarder

- Posts: 7
- Joined: Sat Oct 06, 2012 12:32 am
Re: How to re-style image and preserve thumbs?
It is something with path to image, when i change image styling.
Phisical path to article image is the same, but Featcats somehow change it... or think it has changed...
Phisical path to article image is the same, but Featcats somehow change it... or think it has changed...
- knof111
- Fresh Boarder

- Posts: 7
- Joined: Sat Oct 06, 2012 12:32 am
Re: How to re-style image and preserve thumbs?
Hi,
What do you mean by "changing the styling" to the images?
Doesn't it help to re-install the module in order to restore your thumbs folder?
What do you mean by "changing the styling" to the images?
Doesn't it help to re-install the module in order to restore your thumbs folder?
-

chus - Administrator

- Posts: 448
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: How to re-style image and preserve thumbs?
Hello
all changes were made in "image propertys" panel of tinymce editor.
Changes are: setting "Vertical space "and "Horizontal space" from "5" to "0" and changing "Class" from "Not set" to "Caption".
After that, thumbs were not shown in Featcat module on frontpage, but images are still visible in article. I have tried to delete thumbs and hoping to Featcats create new ones, tried to insert other image into article, change path of images..., stil got no thumbs in Featcat module on frontpage.
Thx for quick response
all changes were made in "image propertys" panel of tinymce editor.
Changes are: setting "Vertical space "and "Horizontal space" from "5" to "0" and changing "Class" from "Not set" to "Caption".
After that, thumbs were not shown in Featcat module on frontpage, but images are still visible in article. I have tried to delete thumbs and hoping to Featcats create new ones, tried to insert other image into article, change path of images..., stil got no thumbs in Featcat module on frontpage.
Thx for quick response
- knof111
- Fresh Boarder

- Posts: 7
- Joined: Sat Oct 06, 2012 12:32 am
Re: How to re-style image and preserve thumbs?
Re-install did not help.
I forgot to mention, that i changed article category.
Why did Joomla remember settings about article and images pathes after re-install?
I forgot to mention, that i changed article category.
Why did Joomla remember settings about article and images pathes after re-install?
- knof111
- Fresh Boarder

- Posts: 7
- Joined: Sat Oct 06, 2012 12:32 am
Re: How to re-style image and preserve thumbs?
Changing the attributes to the images shouldn't affect at all.
Could you provide an example of one of those problem images HTML tags? i.e
<img src="... />
Cheers!
Could you provide an example of one of those problem images HTML tags? i.e
<img src="... />
Cheers!
-

chus - Administrator

- Posts: 448
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: How to re-style image and preserve thumbs?
Hello,
1. one: <img class="caption" src="images/stories/c/DOSOR%20Dan%20mladosti%202.jpg" border="0" alt="Dan mladosti DOSOR" title="Dan mladosti DOSOR" style="float: left;" />
2. one: <img class="caption" src="images/Slike%20za%20članke/Adventni%20bazar%201.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" align="right" />
3. one <img src="images/Slike%20za%20članke/Kres2.jpg" border="0" alt="Kres" title="Kres" width="180" height="121" style="float: left;" />
In meanwhile i tried to re-install again, cleared cache when deleting module, but still getting this error. I have to say, that this happening in module Filtered news also. In order to uniform all articles outlook, i was changing Categories of articles. Also using hint from your website for creating Hidden menu to display articles. Before changes all thumbs are shown properly. Thanks for helping. By
1. one: <img class="caption" src="images/stories/c/DOSOR%20Dan%20mladosti%202.jpg" border="0" alt="Dan mladosti DOSOR" title="Dan mladosti DOSOR" style="float: left;" />
2. one: <img class="caption" src="images/Slike%20za%20članke/Adventni%20bazar%201.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" align="right" />
3. one <img src="images/Slike%20za%20članke/Kres2.jpg" border="0" alt="Kres" title="Kres" width="180" height="121" style="float: left;" />
In meanwhile i tried to re-install again, cleared cache when deleting module, but still getting this error. I have to say, that this happening in module Filtered news also. In order to uniform all articles outlook, i was changing Categories of articles. Also using hint from your website for creating Hidden menu to display articles. Before changes all thumbs are shown properly. Thanks for helping. By
- knof111
- Fresh Boarder

- Posts: 7
- Joined: Sat Oct 06, 2012 12:32 am
Re: How to re-style image and preserve thumbs?
Ok, the problem is probably the funny characters in your images paths.
Can you please try this fix?
Find line
and replace it with
Can you please try this fix?
Find line
- Code: Select all
$img_path = JPATH_BASE . '/' . $img;
and replace it with
- Code: Select all
$img_path = utf8_decode(JPATH_BASE . '/' . $img);
-

chus - Administrator

- Posts: 448
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: How to re-style image and preserve thumbs?
It's not helping, now i'm getting error for all images with those "funny"characters. I will try now to delete all those three articles and import them again into Joomla, like 1. time and leave Categories intact, and after that change to desired Categories.
Live adress of this site http://mojkraj.info/mkr ,click on Novice.
Live adress of this site http://mojkraj.info/mkr ,click on Novice.
- knof111
- Fresh Boarder

- Posts: 7
- Joined: Sat Oct 06, 2012 12:32 am
Re: How to re-style image and preserve thumbs?
I have now deleted all articles which caused errors and after that imported them from backup. After that Category was changed. All thumbs are shown properly! After change in image property from Class: Not set -> to Class: Caption, thumbs dissapeared. After resetting changes back to Class: Caption, you can't get thumbs back!
So i try to detect, what happening after changes. This are results from original article, changed article and restored article to a original state:
Original:
<img src="images/Slike za članke/Adventni bazar 1.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" width="180" height="120" style="margin: 5px; float: right;" />
Changed Vertical and Horizontal space to 0 and Class to Caption:
<img class="caption" src="images/Slike%20za%20članke/Adventni%20bazar%201.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" width="180" height="120" style="float: right;" />
Changed back to Vertical and Horizontal space to 5 and Class to Not set:
<img class="caption" src="images/Slike%20za%20članke/Adventni%20bazar%201.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" width="180" height="120" style="float: right; margin: 5px;" />
After manual path corrections in article HTML mode, i got thumbs back.
Conclusion:
if you are changing image properties, be sure that paths are preserved and written properly!
Chus thx for your time and help. You are offering great components, modules and plugins.
So i try to detect, what happening after changes. This are results from original article, changed article and restored article to a original state:
Original:
<img src="images/Slike za članke/Adventni bazar 1.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" width="180" height="120" style="margin: 5px; float: right;" />
Changed Vertical and Horizontal space to 0 and Class to Caption:
<img class="caption" src="images/Slike%20za%20članke/Adventni%20bazar%201.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" width="180" height="120" style="float: right;" />
Changed back to Vertical and Horizontal space to 5 and Class to Not set:
<img class="caption" src="images/Slike%20za%20članke/Adventni%20bazar%201.jpg" border="0" alt="Adventni bazar" title="Adventni bazar" width="180" height="120" style="float: right; margin: 5px;" />
After manual path corrections in article HTML mode, i got thumbs back.
Conclusion:
if you are changing image properties, be sure that paths are preserved and written properly!
Chus thx for your time and help. You are offering great components, modules and plugins.
- knof111
- Fresh Boarder

- Posts: 7
- Joined: Sat Oct 06, 2012 12:32 am
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest