Page 1 of 7

EasyImageCaption plugin: Bugs and features

Posted: Sun Jul 26, 2009 2:16 pm
by LearningByDoing
Hello,

please use this thread to post any bugs or feature requests concerning my EasyImageCaption plugin - as long as they do not fit into the plugin's review section.

The plugin can be found here:
http://extensions.joomla.org/extensions ... 05/details

I hope you like it. Thank you.

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Jul 29, 2009 6:44 am
by thsyd02
[EDIT: I have included a modified jsmallfib.php where I have added class='no_eic' to all the img. no_eic is the default class that EasyImageCaption ignores. This solves my problem.]

Hi, Thank you very much for this excellent and very usefull plugin.
It would be great if you could somehow select components, menuitems, categories, sections and articles that would be untouched by easyimagecaption (EIC)

When EIC is set to use the TITLE tag, there is a kind of conflict when using jsmallfib http://extensions.joomla.org/extensions ... 70/details, because all the images in this filemanager have TITLE-tags and they are shown as well which screws up the layout.

I know I could probably somehow figure out how the apply the class= tag to those images in the .php file for jsmallfib, but I am not a programmer, and this problem is probably going to apply to many other plugins as well.

As far as I can see, Using the ALT tag is not an option for me because it is a requirement that images have ALT-tags and I dont want all my images in the articles to have captions.

all the best
Thomas

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Jul 29, 2009 9:03 am
by thsyd02
Feature request: AJAX refreshenes, would be a cool feature for this plugin. AJAX definatly enhances the user experience. maybe this can help?:http://forum.joomla.org/viewtopic.php?f=304&t=262330

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Jul 29, 2009 11:38 pm
by LearningByDoing
Hi thsyd02,

thanks for using my plugin.

I have had a look at the jsmallfib plugin you mentioned. Actually I had planned to modify my plugin so that it ignores the jsmallfib image files. Unfortunately the code generated by jsmallfib is not very characteristic, and so I did not add this function to my plugin.

But I put your other proposal into practice and added the option to ignore certain articles, articles of certain sections and articles of certain categories. Maybe this will help you so that you do not have to edit the jsmallfib files. My version 0.2 is just released.

I am not sure about that AJAX thing. Sorry, but do not expect something like this in the near future.

Regards
Thomas

Re: EasyImageCaption plugin: Bugs and features

Posted: Thu Jul 30, 2009 7:31 am
by thsyd02
Wow, amazingly fast. I am very impressed. All the best to you.

Re: EasyImageCaption plugin: Bugs and features

Posted: Thu Jul 30, 2009 4:13 pm
by macview
Very promising! Unfortunately I need compatibility with JUMultithumb plug-in to use it. Currently I use a custom js script to work caption with it but I was hoping for an integrated solution (merge these two plug-ins and we'll have the ultimate thumb/caption add-on!)

Also using The Ultimate Social Bookmarking Plugin on pages and because they coded it for both title and alt text, it screws that up - I added the class to show no caption in the code for those. Maybe the option to designate your own title=, like caption="titlehere" with the alt and title options would work.

I'll be watching this one.

Re: EasyImageCaption plugin: Bugs and features

Posted: Fri Jul 31, 2009 2:29 pm
by LearningByDoing
Hi macview,

I will have a closer look at these plugins and what they do.

Also I am thinking about adding the possibility to define a certain DIV in which EasyImageCaption is disabled. It would be easy then to just put plugin code inside such a DIV to prevent caption generating, for example:

Code: Select all

<div class="no_eic">{someplugin}show plugin with images{/someplugin}</div>

Re: EasyImageCaption plugin: Bugs and features

Posted: Fri Jul 31, 2009 5:58 pm
by bmheck
Wow, a new version to incorporate suggestions already? Outstanding!

Here's one other issue: I have an article with three photos lined below the text. Here's the HTML:

<img style="float: left; margin-right: 10px;" title="Osprey..." src="images/stories/....image1.jpg" alt="Osprey..." width="200" height="158" />
<img style="float:center; margin-left: 10px; margin-right: 10px;" title="Hungry ...." src="images/stories/image2.jpg" alt="Hungry...." width="198" height="158" />
<img style="margin-left: 10px;" title="Adult Osprey...." src="images/stories/image3.jpg" alt="Adult Osprey...." width="200" height="158" />

In the JCE editor, these images line up horizontally. In Firefox 3.x (user view) with EasyImageCaption disabled, they also line up horizontally. But in Firefox EasyImageCaption enabled, they appear one after another vertically. You can see this at:

http://columbusaudubon.org/development/ ... Itemid=134

I don't have an explanation for this, although possibly it is due to the <p> tags that EAC inserts around the caption. (That explanation seems odd because the <p> tags are within the scope of the DIV.) But I'm no expert, so perhaps someone else will see what the issue really is.

The problem with these particular images can be solved by formatting them with a table, so there is a workaround. But it would be nice if we did not have to adjust for this behavior. I don't think this is a real high priority issue, though.

Thanks again for a great extension and for sharing and improving it so generously!

Re: EasyImageCaption plugin: Bugs and features

Posted: Fri Jul 31, 2009 6:39 pm
by LearningByDoing
bmheck wrote:Wow, a new version to incorporate suggestions already? Outstanding!
I had to - I do not like people being unhappy with my work... :D

I see you applied a "float:center" property to the second image. According to W3C standards, "float: center" does not officially exist in CSS. Maybe that causes the problem.

Try to set the alignment of all three images to "left". Maybe this works.

Re: EasyImageCaption plugin: Bugs and features

Posted: Fri Jul 31, 2009 10:48 pm
by bmheck
Yes, that did it: all the style for all three images to "float: left" and they line up as desired.

Interesting that the JCE image editor offers "float: center" as an option Obviously this is not a great option to use!

Thanks for your help.

Re: EasyImageCaption plugin: Bugs and features

Posted: Sat Aug 01, 2009 6:10 pm
by silke
Hi everyone,

after several month of searching for a plugin like this, I felt like being the only one who has a need for it - but apparently I am not alone :))

I installed the plugin and enabeld it without any costumization in the backend. Unfortunately I get a major error, when trying to read an article in the frontend. When I click on readmore, there is blank page with this error:

*Parse error*: syntax error, unexpected T_OBJECT_OPERATOR in */hp/av/ac/xv/www/welt/plugins/content/easyimagecaption.php* on line *153

Does anybody know what its about?
Please keep in mind, that I don't know much about css, php or anything like that... ;)

Thanks a lot
Silke

Re: EasyImageCaption plugin: Bugs and features

Posted: Sat Aug 01, 2009 6:31 pm
by tjmedeiros
I'm getting the same parse error.

I'm assuming there is some configuration settup I'm missing, beyond installing and enabling the plugin?

I've gone to an article where I wanted the image caption to be , made sure I had an ALT tag for iut,a nd when I click Apply, I get the parse error. That line has somethign to do with the param_expand_width, but I can't see how that would have anything to do with my image.

Anyone? Help!

Tom Medeiros

Re: EasyImageCaption plugin: Bugs and features

Posted: Sun Aug 02, 2009 11:46 am
by LearningByDoing
Hello silke, hallo tjmedeiros,

this may be a PHP4/PHP5 syntax problem. You both are probably still running PHP4, while I am developing under PHP5. I will try to get EasyImageCaption working on PHP4, too.

Whatever the problem may be - I will hopefully fix it today. I just have to reproduce the error first.

I will tell you here when finished.

Re: EasyImageCaption plugin: Bugs and features

Posted: Sun Aug 02, 2009 12:16 pm
by silke
Hi LearningByDoing,

oh great! Thanks for your efforts, that's really kind of you :)
I hope you are right that the problem is located in the PHP version.

Cheers
Silke

Re: EasyImageCaption plugin: Bugs and features

Posted: Sun Aug 02, 2009 2:25 pm
by tjmedeiros
I'm running PHP 5, so I dont think thats it.

Re: EasyImageCaption plugin: Bugs and features

Posted: Sun Aug 02, 2009 4:33 pm
by LearningByDoing
@silke:
I am sorry to say that I now have declared EasyImageCaption as "PHP5 only". I was able to reproduce the error you reported on PHP4 and could even manage to get my own code working. But I am using a HTML parser not coded by me which causes errors in PHP4 as well. Since I am not a PHP expert I will not try to modify this code - I would probably mess it up.

@tjmedeiros:
Are you sure you are using PHP5? I really thought it was just a version problem :(
Maybe you can post the exact version you use. The plugin should defenitely work on PHP 5.2.x.

Re: EasyImageCaption plugin: Bugs and features

Posted: Sun Aug 02, 2009 4:47 pm
by silke
Hi LearningByDoing,

ok, no problem, thanks for your time and efforts. Someday there will be a caption plugin for me as well ;)

Best wishes
Silke

Re: EasyImageCaption plugin: Bugs and features

Posted: Sun Aug 02, 2009 5:08 pm
by tjmedeiros
Actually..you were correct and I was wrong...I confused the SQL database version I was running with the PHP version...SQL database is 5.0, and PHP was 4 (now upgrading to 5)

Re: EasyImageCaption plugin: Bugs and features

Posted: Mon Aug 03, 2009 10:02 pm
by tedpruitt
Ultimate Social Bookmarking extension compatibility issue:
Plugin here: http://extensions.joomla.org/extensions ... 16/details

Curious if you have any suggestions on this plugin - the EIC plugin adds a caption to every bookmark image. Have tried adding a class div in their parameters for no_eic - but either I'm doing something wrong or this won't work.

Any help would be appreciated as I think your plugin finally does something that's been needed for quite awhile.

Best regards - Ted

Re: EasyImageCaption plugin: Bugs and features

Posted: Tue Aug 04, 2009 1:30 am
by bmheck
Silke (and anyone else still at PHP 4.x) -- there are several very good reasons to upgrade to PHP 5.x. For one thing, a number of extensions work only under version 5. So you might want to push on your hosting service to upgrade.

Re: EasyImageCaption plugin: Bugs and features

Posted: Tue Aug 04, 2009 11:38 am
by LearningByDoing
@tedpruitt: I hope I will find the time to work on this issue today.

@bmheck: You are right. And as far as I know, the upcoming (in 2009) Joomla! 1.6 requires PHP5 anyway.

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Aug 05, 2009 12:14 am
by LearningByDoing
I just released version 0.3.
I reworked the "ignore class" function. EasyImageCaption will now look for these classes in HTML elements superior to the image as well.

Examples:
The following images will NOT get a caption (if the class "no_eic" is set in the parameters):

Code: Select all

<img class="no_eic" src="image.jpg" alt="Caption" title="Caption" />
<p class="no_eic"><img src="image.jpg" alt="Caption" title="Caption" /></p>
<div class="no_eic"><div><p><img src="image.jpg" alt="Caption" title="Caption" /></p></div></div>
So you will be able to easily deactivate EasyImageCaption within other plugins by just adding the other plugin's characteristic CSS class (most of them have one) to the parameters. The parameter default provides compatibility with the Very Simple Image Gallery plugin and with The Ultimate Social Bookmarking Plugin already.

I also added compatibility with the JUMultithumb plugin.

@macview, tedpruitt: Please tell me if this works for you.

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Aug 05, 2009 2:10 pm
by tedpruitt
Just installed 0.3 - The problem with 'ultimate social bookmarking' went away, but have a different problem and I'm not sure where the issue lies. It may be another plugin.

Now in my articles There is a capital "T" for some reason (it may be the graphical "T" from my Tagging program - JoomlaTag [www.joomlatag.org]. And then it's being "captioned" with the title of the article.

You might want to have a look at the JoomlaTag extension and see if that isn't going to require another type of 'ignore'.

Thanks!

Ted

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Aug 05, 2009 2:24 pm
by tedpruitt
found the class to add for JoomlaTag - addtags

Which takes care of one - but still have a caption of the article title showing up in my articles - I'll continue to look and see what I can find.

Ted

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Aug 05, 2009 2:39 pm
by tedpruitt
Still no luck - I put in every class tag I could find on the page within the area of an article and no luck. I am in administrator mode - so I don't know if it's trying to caption one of the images used for editing or what.

Let me know if you find anything new - for now I'll disable. Thanks!

Ted

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Aug 05, 2009 4:47 pm
by LearningByDoing
tedpruitt wrote:Just installed 0.3 - The problem with 'ultimate social bookmarking' went away,...
At least one good news... ;)


I have now installed "Tags for Joomla", but was not able to reproduce the situation you described. The "T" image for adding or editing tags in the frontend always shows up at the bottom of an article. I do not get captions on this image, because there are no alt or title tags at all. You said you defined the "addtags" class for ignoring the "T" image - that should help if you get the caption anyway.

I am not sure how you managed to apply EasyImageCaption to your article title. Actually the plugin only changes the article's main text and does not do anything to the title - and especially not if there is no image.

It is difficult to solve the problem without seeing it. Do you have a screenshot?

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Aug 05, 2009 5:10 pm
by tedpruitt
ok - attached an image. The senator's name you see is actually the caption - the caption underneath that you see there is created by your plugin and is for some reason taken from the title.

Let me know if you have any ideas - would be happy to send you more info - we're not live with this site until next week.

Thanks!

Ted

Re: EasyImageCaption plugin: Bugs and features

Posted: Wed Aug 05, 2009 7:11 pm
by silke
Hello everyone :)

I upgraded to PHP5, yippieh.
(I know it is PHP5 now, because there was another module not working because of PHP4 and now it works).

But the error with the EasyImageCaption remains...
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /hp/av/ac/xv/www/welt/plugins/content/easyimagecaption.php on line 153

Maybe there is something I am doing wrong?

Cheers
Silke

Re: EasyImageCaption plugin: Bugs and features

Posted: Thu Aug 06, 2009 2:17 am
by Phil Maxwell
I noticed when using the JoomGallery's JoomPlu plugin the title is pulled as there is no alt tag on the picture. Is there any way to pull the image description instead of the image title when using the JoomGallery's JoomPlu plugin.

Thanks
Phil

Re: EasyImageCaption plugin: Bugs and features

Posted: Sat Aug 08, 2009 7:27 pm
by bmheck
Question: is there a way to cause a caption to break (new line) at a certain point?

For example, an image might have a caption such as: "Mt. Everest (Photo by Ansel Adams)". It would be nice to force the caption to break between the real title and the photo credit, i.e., like this:

Mt. Everest
(Photo by Ansel Adams)

You can't do this with a break tag (<br />) because the brackets in the tag within the title (or alt) field are converted to display format, so the break tag inside the title becomes "<br>".

Of course, that's the problem: I guess you don't want garbage inside a title for other reasons, so you can't just have EIC force a break on some arbitrary character.

So here's a feature request: maybe there could be a control in the plugin that says if there are two spaces in a row, insert a break tag? (Kind of a lame idea, but the best I can think of....)