Sunday, 21 December 2014 20:51

beggarly

How to re-style image and preserve thumbs?

How to re-style image and preserve thumbs?

Postby knof111 » Thu Mar 07, 2013 10:05 am

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?
knof111
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sat Oct 06, 2012 12:32 am

Re: How to re-style image and preserve thumbs?

Postby knof111 » Thu Mar 07, 2013 7:39 pm

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...
knof111
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sat Oct 06, 2012 12:32 am

Re: How to re-style image and preserve thumbs?

Postby chus » Fri Mar 08, 2013 1:01 pm

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?
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: How to re-style image and preserve thumbs?

Postby knof111 » Fri Mar 08, 2013 2:10 pm

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
knof111
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sat Oct 06, 2012 12:32 am

Re: How to re-style image and preserve thumbs?

Postby knof111 » Fri Mar 08, 2013 11:29 pm

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?
knof111
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sat Oct 06, 2012 12:32 am

Re: How to re-style image and preserve thumbs?

Postby chus » Sat Mar 09, 2013 8:31 pm

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!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: How to re-style image and preserve thumbs?

Postby knof111 » Sat Mar 09, 2013 11:28 pm

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
knof111
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sat Oct 06, 2012 12:32 am

Re: How to re-style image and preserve thumbs?

Postby chus » Sun Mar 10, 2013 1:38 pm

Ok, the problem is probably the funny characters in your images paths.

Can you please try this fix?
Find line

Code: Select all
      $img_path   = JPATH_BASE  . '/' . $img;
in helper.php
and replace it with

Code: Select all
      $img_path   = utf8_decode(JPATH_BASE  . '/' . $img);
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: How to re-style image and preserve thumbs?

Postby knof111 » Sun Mar 10, 2013 4:47 pm

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.
knof111
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sat Oct 06, 2012 12:32 am

Re: How to re-style image and preserve thumbs?

Postby knof111 » Sun Mar 10, 2013 6:56 pm

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.
knof111
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sat Oct 06, 2012 12:32 am


Return to Featured Categories



Who is online

Users browsing this forum: No registered users and 1 guest