Image2Post
This is the page of the plugin image2post that I have created.
Plugin Name: Image2Post
Description: If you are updating from version 1.0 of this plugin, then just activate it and load your home page 2 times.
You need to be logged in as admin to do this. Adds an image to the beginning of the content of each post, to the right or to the left or to both sides. Just Activate the plugin and you will see 6 text fields when you are editing a post or writing a new one. In the Left Image and Right Image text box you need to add the image path. The plugin looks for images in the directory ‘/wp-images/media/’. If you have your images in a folder after that you need to add it, if not the type just the filename with the extension.
Also you can have a link under the image by filling the text boxes (Left/Right) URL and (Left/Right) URL Text. The URL text box is where you type the address and the URL Text text box is where you type the desired text you want to be displayed.
You also need some css code into your stylesheet file, that code is in the file called css.txt
Version: 2.3.2
Any comments, queries, suggestions you can comment here or email me using the contact section.
Leave a comment
By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.



















February 6th, 2006
My apologies, the only file you need is image2post.php and the css code from css.txt.
February 10th, 2006
I too wanted to have the image link directly to the URL, and to remove the text link, and I did it this way, replacing the entire ” For creating the left img code ” block with the following:
(I only changed it for the left image, you’d have to repeat this, but change it yourself for the right image)
/* For creating the left img code */
$values = get_post_custom_values('_img_left');
$img_left = $values[0];
$values = get_post_custom_values('_imglink_left');
$imglink_left = $values[0];
$values = get_post_custom_values('_imglink_text_left');
$imglink_text_left = $values[0];
if ($imglink_text_left == '') { $imglink_text_left = ''; }
if(!empty($imglink_left)) {
$imglink_dir_left = '' . $imglink_text_left . '';
}
else { $imglink_dir_left = ''; }
if(!empty($img_left)) {
$output .= '' . $imglink_dir_left . '';
}
else { $output .= ''; }
February 10th, 2006
Looks like the code above got garbled when I submitted the comment. Contact me if you like, and I’ll send the code scrap to you. http://elainemiller.com/hielaine.html
February 11th, 2006
Hello, I’m using the plug-in over on my blog, but the images are appearing as very, very tiny versions of their full-size counterparts. What is causing them to shrink? (http://arwinglanding.net/blog/?p=2#more-2 will get you to an example)
Also, have you given any thought to including a photo upload feature with this plug-in? Something that allows a new image to be added to the server and simultaneously placed in the post.
February 11th, 2006
The url you gave me doesn’t work.
February 11th, 2006
Right, well the DNS is being changed right now so nothing’ss online, but let me be a bit more specific on the problem in the meantime.
For me, the images appear very small in Firefox, but come up just as they should in IE. However, they work just fine for others in both Firefox and IE. As the site is currently unavailable, I cannot check to see if I can reproduce this error, but I was hoping to find out if you would perhaps know of a solution. Perhaps in a day when my DNS has been updated you’ll be able to let me know.
March 20th, 2006
I recently updated my blog to the latest version of WordPress. I updated my Image2Post accordingly. I had several problems:
1) Both the zip and tar/gz versions of the file seemed to have extraneous garbage characters and weird formatting. I had to edit the file in order to get it to work at all.
2) After uploading and activating the latest version of the Image2Post plugin, my old posts displayed correctly. However, for new posts, I am unable to add a link. In the article posting area of my WP install, I have an Image2Post section that has 6 text fields. My images are always posted on the left. Adding the proper information to Left Image and Left Image Text works when writing a post. However, anything I put in Left Image Link gets removed as soon as I save the post.
3) Even though I can add text (Left Image Text) when writing a post, the text does not display when I do a new post. It remains intact for all of my old posts though.
Any help you can offer would be greatly appreciated!
March 21st, 2006
I have also the same problem as Julie
need you help
March 21st, 2006
There is a fix in the works, if you guys give me some time to test it so that this won’t happen again. You can also try it your self at the WP Plugins Developers Site.
April 8th, 2006
it doesnt work with wordpress installs on subdomains. in order to fix this behaviour caused by $_SERVER['DOCUMENT_ROOT']; in the first line of the plugin, one will have to either change this into ‘subdomain’ . $_SERVER['DOCUMENT_ROOT'];
i suppose to fix this for further releases. (using wp’s get function to read out wp’s url stored in the db).
regards
May 29th, 2006
i must be doing sopmething terribly wrong cause when i install this plugin it causes my admin plugin page to lose it formatting and show the codeinside the image2post.php file. its really odd. any ideas don’t see that anyone else is having this trouble…
what weirdness i am doing?
May 30th, 2006
@Sarah
That is indeed strange. Please give me some time and I will email you a new copy to test for me.
June 3rd, 2006
Is there anyway the files could be uploaded or emailed in a unicode -8 or rtf formatting. Windows doesn’t take to MAC formatting very well and it corrupts the code.
June 4th, 2006
@emmanuel
The files are always in UTF-8 formatting as everything I do is. It is rather strange though. Anyway I will email the beta version of the plugin since I have a newer version but I want to test it before with wordpress 2.0.3 before I release it.
June 4th, 2006
thanks
June 12th, 2006
I have the same problems as Sarah, when I load the plugin page I can see the php code.
Version 2.1 works fine…
June 12th, 2006
A screenshot
http://www.koosenaafke.nl/wp-images/media/error.jpg
June 12th, 2006
I have the same problem as Sarah and Koos (the plugin shows source code in the ‘plugins-manager’). Do you know a work-around?
This might help you to figure out, what’s going wrong:
When I activate the ‘crashed’ plugin (looks like in Koos’ screenshot), a syntax error shows up:
Parse error: syntax error, unexpected T_STRING in C:\Online\wp-content\plugins\image2post.php on line 1
Cheers,
BK
June 13th, 2006
There is a new version in the works, will update as soon as I have something final or if I need some beta testers.
June 14th, 2006
@Constantinos: Great, thanks for your engagement!
June 20th, 2006
Is it possible to download a beta version?
June 20th, 2006
Yes you can download the latest beta from the wordpress developers repository. Image2Post Beta
Please note, that it’a a beta version and might not be the same as the one I am working on.
September 8th, 2006
When trying to activate the plugin:
Warning: Cannot modify header information – headers already sent by (output started at C:\docroot\wordpress\wp-content\plugins\image2post\image2post.php:1) in C:\docroot\wordpress\wp-includes\pluggable-functions.php on line 272
When trying to “Write page” / “Write post”:
Warning: Cannot modify header information – headers already sent by (output started at C:\docroot\wordpress\wp-content\plugins\image2post\image2post.php:1) in C:\docroot\wordpress\siteroot\wp-admin\inline-uploading.php on line 5
Anyone else with the same problem? I use WordPress 2.0.4, PHP 5.
September 14th, 2006
@Johannes
I haven’t yet tried the plugin under wp2.0.4 but it should work fine. As for your problem with the headers been already send, I don’t think I’ve come accross this one before. Sorry that I couldn’t be of more help.
September 16th, 2006
i’m having the headers already sent prob, anyone come up with a solution for this?
December 23rd, 2006
Has anyone found solution for the headers problem :
Warning: Cannot modify header information – headers already sent by (output started at C:\docroot\wordpress\wp-content\plugins\image2post\image2post.php:1) in C:\docroot\wordpress\siteroot\wp-admin\inline-uploading.php on line 5
with WordPress 2.0.4?
January 31st, 2007
Everytime a user post a comment, the Image2Post image is deleted (with WP 2.1), any idea ?
Thanks in advance, I need to fix this problem ASAP !
February 5th, 2007
Checking it out.
February 6th, 2007
Thanks in advance ! Could you mail me as soon as you make any progress ?
Best regards,
Matt.
February 8th, 2007
[quote comment="14934"]Thanks in advance ! Could you mail me as soon as you make any progress ?
Best regards,
Matt.[/quote]
I couldn’t duplicate the problem. Could you give me more info on your installation?
February 16th, 2007
What sort of info do you need ?
February 22nd, 2007
[quote comment="15164"]What sort of info do you need ?[/quote]
Server info (OS, php, database, wp).
Plugins installed.
And anything else you might think is causing the problem.
February 23rd, 2007
We upgraded from v1.5 to the latest wordpress and can’t get the link fields to show up in the post part; where are they supposed to be? also the old photos don’t display properly in the posts. I verified the CSS items are in our CSS. Any ideas? We relied on this plugin extensively.
m.
February 23rd, 2007
[quote comment="15295"]We upgraded from v1.5 to the latest wordpress and can’t get the link fields to show up in the post part; where are they supposed to be? also the old photos don’t display properly in the posts. I verified the CSS items are in our CSS. Any ideas? We relied on this plugin extensively.
m.[/quote]
Actually, the fields are there, but the old images are not showing up.
m.
February 23rd, 2007
[quote comment="14810"]Everytime a user post a comment, the Image2Post image is deleted (with WP 2.1), any idea ?
Thanks in advance, I need to fix this problem ASAP ![/quote]
After more troubleshooting, I believe this is our problem. I can insert the image, view it properly, but it is deleted once I post a comment. Any thoughts on this? Please tell me there is a fix. Not sure what to do.
It’s killing our system.
m.
March 6th, 2007
monish : I see that you have the same problem that I have on my blog. And I am too, relying extensively on this plugin. I have try a lot of things but can’t come up with a solution.
constantinos : I tried to desactivate all the plugins. That doesn’t change a thing. The server is a Debian Sarge (stable) running PHP 4.4.4-0.dotdeb.3 and MySQL 4.1.11-Debian_4sarge7-log. We are also running eAccelerator but I tried desactivating it too, whithout success.
March 6th, 2007
By the way, the comment notification feature on your blog doesn’t work. At least for me…
March 12th, 2007
@Matt
[quote comment="15659"]By the way, the comment notification feature on your blog doesn’t work. At least for me…[/quote]
It didn’t show you subscripted. I’ve added you and it should be working now.
@Matt & monish
I have 4 different test wordpress installations 3 of them on Linux servers and 1 on a Mac OS X server. In all 4 occasions the plug-in is working fine. What I suggest is give me your website address and maybe an account on your weblog and I can try and see what is the problem. You can email me if you want . Another solution is try a brand new wp installation in a different directory and see if it works there.
What I am thinking is that something didn’t go right with the upgrade from wp1.5
If you want you can contact me using the info at the (contact me)[http://kouloumbris.com/weblog/contact/] page.
March 13th, 2007
With this version I get this error:
Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/exilezone.net/subdomains/blog/httpdocs/wp-content/plugins/image2post.php:1) in /var/www/vhosts/exilezone.net/subdomains/blog/httpdocs/wp-includes/pluggable.php on line 275
How can i solve the problem? Thanks.
March 15th, 2007
I’ve done a fresh install of the wp and the problem continues!
March 17th, 2007
Hi,
anything new on the “Warning: Cannot modify header information – headers already sent by (output started at [...] image2post.php:1)” error?
Desolately I get the same error in my WordPress installation (IIS6, WP2.0.3, PHP5)…
Thanks for any help,
BK
March 17th, 2007
I will continue to use the version 2.2 that works fine on wordpress 2.1.2