Sorry to keep you bothering . Your Plugin seems to be THE solution to my problem. As I also have a deadline for this site, next week monday, I’m currently working day and night.
Raw Image tag (formatted: None)<br> "image" tag<br> <xmp>{image}</xmp><br> <br>
With paragraph marks:<br> <p>{image}</p><br><br>
Calling phpThumb with <br> img src="/thumb/phpThumb.php?src=http://www.signsofthetime.eu/images/top15/R4-bling2.jpg&w=100" (with brackets of course, but can't type them here, they will be parsed)<br> <img src="/thumb/phpThumb.php?src=http://www.signsofthetime.eu/images/top15/R4-bling2.jpg&w=100"><br><br> <br> So phpThumb seems to work fine <br><br>
Now calling exp:Shj_imgmodifier on "image" tag (leaving away parsing symbols)<br> exp:Shj_imgmodifier phpthumb="true" phpthumb_path="/thumb/phpThumb.php" phpthumb_attributes="q=50&zc=1" width="100" height="100" lightbox="false"<br> image<br> /exp:Shj_imgmodifier<br><br>
That was it! I was just the use of the capital :-(. It now works fine. Great actually!
I have also two other websites (www.mensmerk.nl and www.erwinvanlun.com) and I have been looking for a scheduled ‘nifty corners’ function for a long time. I will use this plugin for these sites as well. On top, I will also use LightBox. This will have great results. (but I do this later as I have to figure out how Lightbox works).
For now, I would like to give you three suggestions:
1)In your posting on this thread, posted: 02 March 2008 12:12 PM, you use the capital S. I just copied you code assuming it was okay. You might consider correcting this.
2) Why don’t you rename your plugin to img_modified? That’s more consistent with other plugins and EE standards.
3) Smileys in the code are also resized. Although it looks very funny, this is certainly not your intention. How could we tackle this one? Read the path for smileys and ignore smileys?
Lots of success with your plugin and thanks for your fast reactions!
3) Smileys in the code are also resized. Although it looks very funny, this is certainly not your intention. How could we tackle this one? Read the path for smileys and ignore smileys?
Haven’t used it..
Great suggestion, or we could define a certain size of image to not quality via it’s relative size. Smiley’s are small, so anything greater in height=“30” and width=“30” probably won’t need it. I can’t imagine any smiley’s being larger than that.
For now, I would like to give you three suggestions:
1)In your posting on this thread, posted: 02 March 2008 12:12 PM, you use the capital S. I just copied you code assuming it was okay. You might consider correcting this.
2) Why don’t you rename your plugin to img_modified? That’s more consistent with other plugins and EE standards.
3) Smileys in the code are also resized. Although it looks very funny, this is certainly not your intention. How could we tackle this one? Read the path for smileys and ignore smileys?
Hi,
- Yes I noticed that I used capital S in the post and also in the documentation on the website. Sorry about that - I have fixed it now.
- I thought it might be a good idea to prefix my plugins with my initials to prevent conflicts. Maybe it just causes problems
- I can think of several ways to solve the smiley problem but unfortunately I do not have time to implement them now. I hope I will be able to do it soon.
In this case, the {image} tag does not come from a exp:weblog clause but from a exp:sql clause. Same statement, but then {filedir_1} is ignored. I tried to solve this with:
Actually I didn’t try it (because I didn’t know it existed). In the plugin and on your website the parameter is not mentioned. I have found version 0.1 of your plugin. I’m not at all a php guru, but the parameter ‘parse’ isn’t in the ‘fetch’ list.
yes the parse parameter isn’t in my plugin. I think it is something that all plugins inherit from the system. It is a documented EE feature and changes the order of the parsing.
But the errors I see on your test page indicate that the plugin is working, but the image path isn’t correct. PhpThumb says the image can not be found. Have you verified that paths?
Maybe I need to understand better what you are trying to do. You have a path to an image and are trying to use the plugin to create a new img tag based on your parameters?
The plugin will only do something if it finds an img tag. Maybe you could put your image path into a img tag and see what happens.
On top, I have added a parameter to the ee_typography tag to allow for image URL’s. As you can see in the XMP statement, it parses fine. You can try one of the images and see that they exist. However, no images show up :-(. I really don’t know what could be the problem. Maybe a night of sleep will help…
Which just says: define a global var filedir_5 (in my case). This works! It is not the solution which will get an EE innovation award, but it works… And as the deadline is approaching very fast, I am really happy right now.
Found a bug in your plugin shj_imgmodifier. Should I report this here or in bug forum?
The bug occur when an author inserts an image from another domain. It leads to a PHP error: division by zero error. Actually, no picture should be returned.
Thank you for reporting it. You should do it here. I will look into this.
I suspect that the problem is some settings in PHPThumb. The plugin just finds img tags and modifies the tag. It does not care if the image is on another domain or not.