EasyImageCaption plugin: Bugs and features

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Sun Jul 26, 2009 2:16 pm

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.

thsyd02
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Thu Feb 01, 2007 6:23 pm

Re: EasyImageCaption plugin: Bugs and features

Post by thsyd02 » Wed Jul 29, 2009 6:44 am

[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
You do not have the required permissions to view the files attached to this post.

thsyd02
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Thu Feb 01, 2007 6:23 pm

Re: EasyImageCaption plugin: Bugs and features

Post by thsyd02 » Wed Jul 29, 2009 9:03 am

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

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Wed Jul 29, 2009 11:38 pm

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

thsyd02
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Thu Feb 01, 2007 6:23 pm

Re: EasyImageCaption plugin: Bugs and features

Post by thsyd02 » Thu Jul 30, 2009 7:31 am

Wow, amazingly fast. I am very impressed. All the best to you.

User avatar
macview
Joomla! Explorer
Joomla! Explorer
Posts: 259
Joined: Fri Aug 19, 2005 4:24 pm
Location: Canada

Re: EasyImageCaption plugin: Bugs and features

Post by macview » Thu Jul 30, 2009 4:13 pm

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.

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Fri Jul 31, 2009 2:29 pm

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>

bmheck
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sun Jul 20, 2008 3:53 pm

Re: EasyImageCaption plugin: Bugs and features

Post by bmheck » Fri Jul 31, 2009 5:58 pm

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!

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Fri Jul 31, 2009 6:39 pm

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.

bmheck
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sun Jul 20, 2008 3:53 pm

Re: EasyImageCaption plugin: Bugs and features

Post by bmheck » Fri Jul 31, 2009 10:48 pm

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.

silke
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Aug 01, 2009 6:05 pm

Re: EasyImageCaption plugin: Bugs and features

Post by silke » Sat Aug 01, 2009 6:10 pm

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

tjmedeiros
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 09, 2009 11:16 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tjmedeiros » Sat Aug 01, 2009 6:31 pm

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

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Sun Aug 02, 2009 11:46 am

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.

silke
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Aug 01, 2009 6:05 pm

Re: EasyImageCaption plugin: Bugs and features

Post by silke » Sun Aug 02, 2009 12:16 pm

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

tjmedeiros
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 09, 2009 11:16 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tjmedeiros » Sun Aug 02, 2009 2:25 pm

I'm running PHP 5, so I dont think thats it.

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Sun Aug 02, 2009 4:33 pm

@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.

silke
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Aug 01, 2009 6:05 pm

Re: EasyImageCaption plugin: Bugs and features

Post by silke » Sun Aug 02, 2009 4:47 pm

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

tjmedeiros
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 09, 2009 11:16 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tjmedeiros » Sun Aug 02, 2009 5:08 pm

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)

tedpruitt
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Aug 03, 2009 3:57 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tedpruitt » Mon Aug 03, 2009 10:02 pm

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

bmheck
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sun Jul 20, 2008 3:53 pm

Re: EasyImageCaption plugin: Bugs and features

Post by bmheck » Tue Aug 04, 2009 1:30 am

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.

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Tue Aug 04, 2009 11:38 am

@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.

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Wed Aug 05, 2009 12:14 am

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.

tedpruitt
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Aug 03, 2009 3:57 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tedpruitt » Wed Aug 05, 2009 2:10 pm

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

tedpruitt
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Aug 03, 2009 3:57 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tedpruitt » Wed Aug 05, 2009 2:24 pm

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

tedpruitt
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Aug 03, 2009 3:57 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tedpruitt » Wed Aug 05, 2009 2:39 pm

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

LearningByDoing
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Tue Jan 13, 2009 9:10 pm
Location: Germany

Re: EasyImageCaption plugin: Bugs and features

Post by LearningByDoing » Wed Aug 05, 2009 4:47 pm

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?

tedpruitt
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Aug 03, 2009 3:57 pm

Re: EasyImageCaption plugin: Bugs and features

Post by tedpruitt » Wed Aug 05, 2009 5:10 pm

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
You do not have the required permissions to view the files attached to this post.

silke
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Aug 01, 2009 6:05 pm

Re: EasyImageCaption plugin: Bugs and features

Post by silke » Wed Aug 05, 2009 7:11 pm

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

Phil Maxwell
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Jul 26, 2009 12:32 am

Re: EasyImageCaption plugin: Bugs and features

Post by Phil Maxwell » Thu Aug 06, 2009 2:17 am

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

bmheck
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sun Jul 20, 2008 3:53 pm

Re: EasyImageCaption plugin: Bugs and features

Post by bmheck » Sat Aug 08, 2009 7:27 pm

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....)


Locked

Return to “Extensions for Joomla! 1.5”