PDA

View Full Version : Addon: Import From Wordpress (version 1.0)


raminia
12-12-2005, 07:11 PM
An addon for importing photos from wordpress.

Download
http://www.pixelpost.org/v1/index.php?x=downloads&details=70

Version 1.0 @ 2005-12-12
Fixed bug the bug that duplicates comments (http://forum.pixelpost.org/showthread.php?t=922&highlight=import+wordpress) in Version 0.3 @ 2005-07-18.

Requirements:
PIXELPOST VERSION 1.4 or Pixelpost 1.3 with multi category modification.
PHP 4.0.3+
Wordpress 1.5 *

* This is basically for wordpress 1.5 but it should work for wordpress 1.2 and higher as well as pictorialis!

Features:
- You can specify WP post id range to import to Pixelpost.
- Avoids overwrites when asked.
- Copies files to Pixelpost directory or moves them on user request.
- Sets Title and body content automatically.
- Supports multiple images in a single post of WP and converts it into seperate posts on PP.
- Creates thumbnails automatically.

What is not supported
- support Different datetime for images in a single post of WP when they are converted into seperated PP posts.
- Different users of WP is ignored. PP 1.4.1 supports only one user.


Instructions:
1- Copy htmlparser.inc into includes folder of PP.
2- Copy import_from_wordpress.php into the addons folder of PP.
3- Open addon page in pixelpost admin pane and go to the section that this addon owns. it's a clear form that you should fill it with your wp-cofig.php info of wordpress.
4- if you want to replace Pixelpost in the same path of Wordpress (or pictorialis) copy the contents of Pixelpost to the same folder and for the image path you can assign relative path of the images in the wordpress to. for example if the images are inside the wordpress wp-content/images/ you can set the path to wp images as ../wp-content/images/
5- Pixelpost 1.4.1 users only: To add the UTF-8 support fix a bug in includes/functions.php. Open the file and commentout line 105 to //$str = UTF8_encode($str); and line line 115 to //$str = UTF8_decode($str);. This is fixed in next versions.

Bug fixes:
Fixed the bug for duplicate comments.

blinking8s
12-15-2005, 10:16 AM
nice work ramin, again you are on top of things, users should bow at our feet! lol...

raminia
12-15-2005, 09:26 PM
nice work ramin, again you are on top of things, users should bow at our feet! lol...
hehe...
not to much ahead. I fixed a bug that was reported 5 (about) months ago when some cooperative user help me to fix the similar bug in MT import.

These addons will help speard of PP and make poeple more comfortable that if they start photoblogging with something else they would not lose the chance of Pixelposting.

Lachezar
02-25-2007, 04:02 AM
Hi,
I need some help with this one too...
I just can't get it to work.
Whatever I put in the "Wordpres image path on server:" box I always get an error:
For example:
NOTE:
Error in copying: /wp-content/uploads/26122006.jpg to ../images/1_26122006.jpg

I'll appreciate some help
Lachezar

gray
09-16-2007, 11:04 PM
im having the same problem with the same error. anyone can help?

GeoS
09-18-2007, 08:14 AM
Check if you have correct CHMOD on dirs.