Foren

Wordpress Importer 1.2 released!

thumbnail
Juan Fernández, geändert vor 12 Jahren.

Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hello community!

After more than 400 downloads of the previous versions and a good feedback from several users around the world, I'm proud to announce a new version of the Wordpress Importer Portlet: this is Wordpress Importer Portlet version 1.2.

This portlet is now compatible with Liferay 6.1CE and has several bug fixes, improvements and refactorings to improve the quality and legibility of the code.

These are the main improvements and new features:

- Import blog entry comments (ultra-demanded popular feature emoticon)
- Create user accounts for all Wordpress commenters so that if they create an account in the portal, all their imported comments will be associated to their accounts.
- Respect the original images formatting
- Spanish translation (french and chinese coming soon)

Apart from that, I think it's worth mentioning that I migrated the code to GitHub (https://github.com/juanferrub/liferay-wordpress-importer), and I'm using the issues tool provided by GitHub to track all the improvement requests and bug reports.

For a future version I'd like to integrate with wordpress-java (http://code.google.com/p/wordpress-java/) an opensource library that interacts with Wordpress XMLRPC API, so that you could enter you user name, password and wordpress site url in the importer and it access all the content without further interactions. This is a feature already requested by community members, so I'll look at it.

I want to thank you all for all the comments and contributions and I wish you go on commenting and asking for (and contributing!! emoticon) new features. Feel free to do it here or in the GitHub issue tracker.

Links:

Download link: http://sourceforge.net/projects/wordpressimport/files/latest/download
Source code: http://github.com/juanferrub/Liferay-Wordpress-Importer-Portlet
Github issue tracker: http://github.com/juanferrub/Liferay-Wordpress-Importer-Portlet/issues

Thanks and enjoy!
Juan Fernández
thumbnail
Jonas Yuan, geändert vor 12 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Master Beiträge: 993 Beitrittsdatum: 27.04.07 Neueste Beiträge
Nisarg Parikh, geändert vor 12 Jahren.

RE: Wordpress Importer 1.2 released!

Expert Beiträge: 262 Beitrittsdatum: 31.12.09 Neueste Beiträge
Downloaded and tested..!!! emoticon

Works perfect.. Thanks... Excellent utility..!!!
thumbnail
Juan Fernández, geändert vor 12 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Wow, Nisarg! Thanks for the rapid feedback! Glad you liked it! emoticon

Please tell me if you find something we could improve. I'm adding now support for embedded youtube videos, which is quite usual in many wordpress blogs.
Thanks!
Juan
Nisarg Parikh, geändert vor 12 Jahren.

RE: Wordpress Importer 1.2 released!

Expert Beiträge: 262 Beitrittsdatum: 31.12.09 Neueste Beiträge
Hi Juan,

I guess showing of Errors and Exceptions should be improved.

First, I have uploaded other than Wordpress XML file and on UI it shows file uploaded successfully but on back-end it gives proper message. Below message should be on UI side so that user understand the error.

"Starting the Wordpress importer
Woops! There was an error reading the file. Are you sure it's an xml file generated by Wordpress?"


Second time again it shows success message on back-end only.
"Import finished
Sucessfully imported 1 pages, 1 categories, 65 tags"


Apart from that some Help showing how to start will also helpful.

Thank you.

-Nisarg
Richard Robbins, geändert vor 12 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 2 Beitrittsdatum: 01.03.12 Neueste Beiträge
I've downloaded and uploaded the wordpress 1.2 importer war file under plug in installer. I am getting a green bar that I have been successful but when I go to control panel, I am not getting the "wordpress importer"- am i doing something wrong?

any help would be appreciated.

Thanks!

Richie
thumbnail
Juan Fernández, geändert vor 12 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Richard:
Which version of Liferay Portal are you using? Are you getting any error message in the server console? Can you add the portlet via Add Applications -> Wordpress -> Wordpress Importer Portlet in a site page?
Thanks
Juan
Richard Robbins, geändert vor 12 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 2 Beitrittsdatum: 01.03.12 Neueste Beiträge
Juan Fernández:
Hi Richard:
Which version of Liferay Portal are you using? Are you getting any error message in the server console? Can you add the portlet via Add Applications -> Wordpress -> Wordpress Importer Portlet in a site page?
Thanks
Juan



Juan,

I am not getting that option. As far an error message in the server console, I am not sure.

I download the .war file- then I go into the control panel>plugins installation>install more portlets> upload file and then its successful.

Do I need to go back and do "add application">install more applications ?

Thanks!

Richie
thumbnail
Akira Akira, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Junior Member Beiträge: 80 Beitrittsdatum: 24.09.10 Neueste Beiträge
I want convert path image_thumbnail_id( Wordpress) to smallImageUrl (Liferay). I need help ? Thanks
thumbnail
Juan Fernández, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Akira:
You'll need to extend WordpressUtil.java to match your requirements. Where are those pictures? Are they part of the blog entries? Basically, you'll need to parse its appeareance and then call the corresponding Liferay service where you want to add them. Will this be part of a web content or a blog entry?

Don't hesitate in asking me, and if you manage to implement it, please contribute it and I'll release a new version
Thanks,
Juan
thumbnail
Akira Akira, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Junior Member Beiträge: 80 Beitrittsdatum: 24.09.10 Neueste Beiträge
I'm busy so did not answer. This issue has been resolved.
I create 2 table. 1 table store value wp:post_id and wp:attachment_url. 1 table store value _thumbnail_id and wp:post_date. Store data temp table then insert wp:attachment_url to smallUrlImage.

<item>
		<title>Futrur</title>
		<link>/?attachment_id=21922
		<pubdate>Wed, 15 May 2013 07:38:10 +0000</pubdate>
		<dc:creator></dc:creator>
		<guid ispermalink="false">/wp-content/uploads/2013/05/Futrur1.jpg</guid>
		<description></description>
		<content:encoded></content:encoded>
		<excerpt:encoded></excerpt:encoded>
	[b]	<wp:post_id>21922</wp:post_id>[/b]
		<wp:post_date>2013-05-15 14:38:10</wp:post_date>
		<wp:post_date_gmt>2013-05-15 07:38:10</wp:post_date_gmt>
		<wp:comment_status>open</wp:comment_status>
		<wp:ping_status>open</wp:ping_status>
		<wp:post_name>futrur-2</wp:post_name>
		<wp:status>inherit</wp:status>
		<wp:post_parent>21897</wp:post_parent>
		<wp:menu_order>0</wp:menu_order>
		<wp:post_type>attachment</wp:post_type>
		<wp:post_password></wp:post_password>
		<wp:is_sticky>0</wp:is_sticky>
	[b]	<wp:attachment_url>/wp-content/uploads/2013/05/Futrur1.jpg</wp:attachment_url>[/b]
		<wp:postmeta>
			<wp:meta_key>_wp_attached_file</wp:meta_key>
			<wp:meta_value>2013/05/Futrur1.jpg</wp:meta_value>
		</wp:postmeta>
		<wp:postmeta>
			<wp:meta_key>_wp_attachment_metadata</wp:meta_key>
			<wp:meta_value>a:6:{s:5:"width";s:3:"150";s:6:"height";s:3:"100";s:14:"hwstring_small";s:23:"height='85' width='128'";s:4:"file";s:19:"2013/05/Futrur1.jpg";s:5:"sizes";a:1:{s:16:"index-categories";a:3:{s:4:"file";s:17:"Futrur1-20x13.jpg";s:5:"width";s:2:"20";s:6:"height";s:2:"13";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}</wp:meta_value>
		</wp:postmeta>
	</item>


<item>
		<title></title>
		<link>/?p=21897
		<pubdate>Wed, 15 May 2013 07:23:34 +0000</pubdate>
		<dc:creator>T</dc:creator>
		<guid ispermalink="false">/?p=21897</guid>
		<description></description>
		<content:encoded>&lt;/excerpt:encoded&gt;
		&lt;wp:post_id&gt;21897&lt;/wp:post_id&gt;
		&lt;wp:post_date&gt;2013-05-15 14:23:34&lt;/wp:post_date&gt;
		&lt;wp:post_date_gmt&gt;2013-05-15 07:23:34&lt;/wp:post_date_gmt&gt;
		&lt;wp:comment_status&gt;open&lt;/wp:comment_status&gt;
		&lt;wp:ping_status&gt;open&lt;/wp:ping_status&gt;
		&lt;wp:post_name&gt;&lt;/wp:post_name&gt;
		&lt;wp:status&gt;publish&lt;/wp:status&gt;
		&lt;wp:post_parent&gt;0&lt;/wp:post_parent&gt;
		&lt;wp:menu_order&gt;0&lt;/wp:menu_order&gt;
		&lt;wp:post_type&gt;post&lt;/wp:post_type&gt;
		&lt;wp:post_password&gt;&lt;/wp:post_password&gt;
		&lt;wp:is_sticky&gt;0&lt;/wp:is_sticky&gt;
		&lt;category domain="category" nicename="bai-viet"&gt;&lt;![CDATA[
		<category domain="post_tag" nicename="chung-toi-noi-ve-chung-toi">i</category>
		<wp:postmeta>
			<wp:meta_key>_edit_last</wp:meta_key>
			<wp:meta_value>436</wp:meta_value>
		</wp:postmeta>
		<wp:postmeta>
			<wp:meta_key>views</wp:meta_key>
			<wp:meta_value>291</wp:meta_value>
		</wp:postmeta>
	[b]	<wp:postmeta>
			<wp:meta_key>_thumbnail_id</wp:meta_key>
			<wp:meta_value>21922</wp:meta_value>
		</wp:postmeta>
		[/b]
	
		<wp:comment>
			<wp:comment_id>27891</wp:comment_id>
			<wp:comment_author></wp:comment_author>
			<wp:comment_author_email></wp:comment_author_email>
			<wp:comment_author_url></wp:comment_author_url>
			<wp:comment_author_ip>10.2.28.125</wp:comment_author_ip>
			<wp:comment_date>2013-05-15 14:33:40</wp:comment_date>
			<wp:comment_date_gmt>2013-05-15 07:33:40</wp:comment_date_gmt>
			<wp:comment_content>:!:</wp:comment_content>
			<wp:comment_approved>1</wp:comment_approved>
			<wp:comment_type></wp:comment_type>
			<wp:comment_parent>0</wp:comment_parent>
			<wp:comment_user_id>1201</wp:comment_user_id>
		</wp:comment>
	</content:encoded></item>
thumbnail
Juan Fernández, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Akira Akira:
I'm busy so did not answer. This issue has been resolved.


Good to know, Akira!
Will you share your code with the community so that I can improve the plugin and release a new version with this new feature?
Thanks!
Juan
Mario Rossi, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 2 Beitrittsdatum: 28.05.13 Neueste Beiträge
Akira Akira:
I'm busy so did not answer. This issue has been resolved.
I create 2 table. 1 table store value wp:post_id and wp:attachment_url. 1 table store value _thumbnail_id and wp:post_date. Store data temp table then insert wp:attachment_url to smallUrlImage.

<item>
		<title>Futrur</title>
		<link>/?attachment_id=21922
		<pubdate>Wed, 15 May 2013 07:38:10 +0000</pubdate>
		<dc:creator></dc:creator>
		<guid ispermalink="false">/wp-content/uploads/2013/05/Futrur1.jpg</guid>
		<description></description>
		<content:encoded></content:encoded>
		<excerpt:encoded></excerpt:encoded>
	[b]	<wp:post_id>21922</wp:post_id>[/b]
		<wp:post_date>2013-05-15 14:38:10</wp:post_date>
		<wp:post_date_gmt>2013-05-15 07:38:10</wp:post_date_gmt>
		<wp:comment_status>open</wp:comment_status>
		<wp:ping_status>open</wp:ping_status>
		<wp:post_name>futrur-2</wp:post_name>
		<wp:status>inherit</wp:status>
		<wp:post_parent>21897</wp:post_parent>
		<wp:menu_order>0</wp:menu_order>
		<wp:post_type>attachment</wp:post_type>
		<wp:post_password></wp:post_password>
		<wp:is_sticky>0</wp:is_sticky>
	[b]	<wp:attachment_url>/wp-content/uploads/2013/05/Futrur1.jpg</wp:attachment_url>[/b]
		<wp:postmeta>
			<wp:meta_key>_wp_attached_file</wp:meta_key>
			<wp:meta_value>2013/05/Futrur1.jpg</wp:meta_value>
		</wp:postmeta>
		<wp:postmeta>
			<wp:meta_key>_wp_attachment_metadata</wp:meta_key>
			<wp:meta_value>a:6:{s:5:"width";s:3:"150";s:6:"height";s:3:"100";s:14:"hwstring_small";s:23:"height='85' width='128'";s:4:"file";s:19:"2013/05/Futrur1.jpg";s:5:"sizes";a:1:{s:16:"index-categories";a:3:{s:4:"file";s:17:"Futrur1-20x13.jpg";s:5:"width";s:2:"20";s:6:"height";s:2:"13";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}</wp:meta_value>
		</wp:postmeta>
	</item>


<item>
		<title></title>
		<link>/?p=21897
		<pubdate>Wed, 15 May 2013 07:23:34 +0000</pubdate>
		<dc:creator>T</dc:creator>
		<guid ispermalink="false">/?p=21897</guid>
		<description></description>
		<content:encoded>&lt;/excerpt:encoded&gt;
		&lt;wp:post_id&gt;21897&lt;/wp:post_id&gt;
		&lt;wp:post_date&gt;2013-05-15 14:23:34&lt;/wp:post_date&gt;
		&lt;wp:post_date_gmt&gt;2013-05-15 07:23:34&lt;/wp:post_date_gmt&gt;
		&lt;wp:comment_status&gt;open&lt;/wp:comment_status&gt;
		&lt;wp:ping_status&gt;open&lt;/wp:ping_status&gt;
		&lt;wp:post_name&gt;&lt;/wp:post_name&gt;
		&lt;wp:status&gt;publish&lt;/wp:status&gt;
		&lt;wp:post_parent&gt;0&lt;/wp:post_parent&gt;
		&lt;wp:menu_order&gt;0&lt;/wp:menu_order&gt;
		&lt;wp:post_type&gt;post&lt;/wp:post_type&gt;
		&lt;wp:post_password&gt;&lt;/wp:post_password&gt;
		&lt;wp:is_sticky&gt;0&lt;/wp:is_sticky&gt;
		&lt;category domain="category" nicename="bai-viet"&gt;&lt;![CDATA[
		<category domain="post_tag" nicename="chung-toi-noi-ve-chung-toi">i</category>
		<wp:postmeta>
			<wp:meta_key>_edit_last</wp:meta_key>
			<wp:meta_value>436</wp:meta_value>
		</wp:postmeta>
		<wp:postmeta>
			<wp:meta_key>views</wp:meta_key>
			<wp:meta_value>291</wp:meta_value>
		</wp:postmeta>
	[b]	<wp:postmeta>
			<wp:meta_key>_thumbnail_id</wp:meta_key>
			<wp:meta_value>21922</wp:meta_value>
		</wp:postmeta>
		[/b]
	
		<wp:comment>
			<wp:comment_id>27891</wp:comment_id>
			<wp:comment_author></wp:comment_author>
			<wp:comment_author_email></wp:comment_author_email>
			<wp:comment_author_url></wp:comment_author_url>
			<wp:comment_author_ip>10.2.28.125</wp:comment_author_ip>
			<wp:comment_date>2013-05-15 14:33:40</wp:comment_date>
			<wp:comment_date_gmt>2013-05-15 07:33:40</wp:comment_date_gmt>
			<wp:comment_content>:!:</wp:comment_content>
			<wp:comment_approved>1</wp:comment_approved>
			<wp:comment_type></wp:comment_type>
			<wp:comment_parent>0</wp:comment_parent>
			<wp:comment_user_id>1201</wp:comment_user_id>
		</wp:comment>
	</content:encoded></item>


Thanks for sharing this Akira.
I was looking for a way to convert path image_thumbnail_id( Wordpress) to smallImageUrl (Liferay) and your solution works like a charm.
gordon daniels, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
Hi Juan:

Thanks for this portlet. Is there any documentation that tells how to configure it. I talked one of my friends into using liferay (now they are not friend :-)) but she has a wordpress blog and wants to import it into liferay. Any instructions would be helpful.

thanks
thumbnail
Juan Fernández, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Gordon!
Not much to explain here, as it is quite simple. You just need to do two things:
1) Export your wordpress site. This will generate an XML file. (How to export a Wordpress site)
2) Inport this XML file using the Wordpress Importer: you'll see all the generated entries, images, tags, categories, etc in you Liferay Portal.
That's it! emoticon

If you have any issues, please report them and I'll do my best to help you (or fix anything if there's an error)
Best,
Juan
gordon daniels, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
thanks for the prompt reply. Since i don't use wordpress did not know that. Will give it a try and let you know what we think.

thanks again
gordon daniels, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
Juan: I imported my friends wordpress bllog and was surprised at the outcome. It created entrieds on the navigation menu, and the content shows only in the wordpress portlet. You have to click on the tabs in the navigation bar and some text appears in portlet. It looks horrible. Am I doing something wrong:? I thought if you had a blog page then the wordrpress blog would appear on that page. Sort of like an ifframe solution.
thumbnail
Juan Fernández, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Gordon:

it is not an iFrame like solution. Let me explain how it works. The Wordpress importer imports the content (basically text, images, tages, categories and comments) from Wordpress to Liferay by recreating them inside Liferay. Once the content is in Liferay you can format, edit and show it wherever you want: in several pages, in different portlets...

Regarding the pages that appear in the navigation, that is a recreation of your friend's blog pages. In Wordpress there are two kind of pages: content and blog pages. For the content ones I create a web content display (which is what you see in the screenshot). For the blogs, I create a blog entry in Liferay (check the blog portlet to see all the imported entries).

I agree that if you see only the content, it looks ugly, but that is because no theme or appeareance improvements are applied to the page. A full migration would include creating a theme that replicates the appeareance of the original Wordpress site in Liferay.

The screenshot is not clear enough, but I suspect there are character encoding errors in the text. If that's the case, I'll need you to send me the XML file to further analyze it.

I hope I helped you. In case you keep finding weird stuff or something you consider a bug, please let me know and I'll do my best to fix it for you.

Thanks a lot for your feedback!
Juan
gordon daniels, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
Juan: Thanks for the reply. Now I understand, that makes all the difference. Just one question: I don't want the import of the blog to add page tabs to the navigation bar., is that possible?

thanks again
thumbnail
Juan Fernández, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Gordon:
Yes, there's a way. In the configuration view there's an option called "Import Pages" which is checked by default.
You can uncheck it to avoid generating the pages in your site.

Tell me if it works or you find any issues
Best,
Juan
gordon daniels, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
Juan: thanks - really appreciate it.
Ahmad El-Melegy, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beitrag: 1 Beitrittsdatum: 10.02.14 Neueste Beiträge
I have installed it but every time I want to use it I get this message "Wordpress Importer is temporarily unavailable."



I am using 6.2 CE GA1 with tomcat
thumbnail
Juan Fernández, geändert vor 10 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Ahmad El-Melegy:
usually it is not a good idea to install portlets from previous versions on new releases. The Wordpress Importer was created for 6.0 and then upgraded to 6.1. I'll try to update it to latest Liferay Portal 6.2 GA 1 and post it here when I have some spare time.
Best,
Juan
Artem Khojoyan, geändert vor 9 Jahren.

Upgraded to 6.2

New Member Beiträge: 17 Beitrittsdatum: 19.02.07 Neueste Beiträge
Hi Juan,

Thanks for such a great tool!

I recently had a migration task from WordPress to Liferay. And after some research I've found your tool, which was unfortunately not working under the latest 6.2. So I have done some minor rework on it to support the 6.2 CE. I believe it would be helpful for not only me, so let me post the updated portlet here.
I am able to import a wordpress website and blogs into my Liferay-6.2-CE with almost no issues.

Thanks,
Artem Khojoyan
thumbnail
Juan Fernández, geändert vor 9 Jahren.

RE: Upgraded to 6.2

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Wow Artem! Thanks a lot for this!! It means a lot for the Liferay community!
Thanks for sharing the upgraded portlet!
I have just committed it to my github repository so that others can also benefit from it - https://github.com/juanferrub/liferay-wordpress-importer/releases/tag/1.2-6.2
Thanks again for your contribution!
Juan
thumbnail
Sanjay Kunni Kannan, geändert vor 9 Jahren.

RE: Upgraded to 6.2

New Member Beiträge: 17 Beitrittsdatum: 15.05.09 Neueste Beiträge
Hi Juan,

Does this Wordpress to Liferay importer tool imports Wordpress wiki too.

Regards,
Sanjay
thumbnail
Juan Fernández, geändert vor 9 Jahren.

RE: Upgraded to 6.2

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Sanjay:
I have not tested it, so I can not tell you if it will work or not. If you are interested on it, could you please test and share your experience with us in the forums?
Thanks a lot for your interest,
Best,
Juan
S Noori, geändert vor 9 Jahren.

RE: Upgraded to 6.2

New Member Beiträge: 7 Beitrittsdatum: 08.11.10 Neueste Beiträge
Juan,

How does one import the files and media to preserve the link?
thumbnail
Juan Fernández, geändert vor 9 Jahren.

RE: Upgraded to 6.2

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Dear S Noori:
Sorry but I don't understand your question. Can you please provide a more detailed explaination of what you're trying to accomplish?
Thanks,
Juan
Karishma Tiwari, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 4 Beitrittsdatum: 03.10.14 Neueste Beiträge
HI Juan,

Glad to see your Wordpress Importer solution, however I have been trying to bring up the war file on my tomcat7 (running on centos), getting the error:

HTTP 404
description The requested resource (/WordpressImporter-portlet-6.1.0.1.2%20%281%29/) is not available.

Pls advice if I am missing something? Can I just load the war file onto tomcat manager and run it, or do I need to plugin through the liferay portal?

TIA
Karishma Tiwari, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 4 Beitrittsdatum: 03.10.14 Neueste Beiträge
Hi Juan,

Some update here, I went to my liferay portal and installed the wordpress impoter war file. All I got is this upload wordpress file button, how do I upload a wordpress file? Do I need to compile my wordpress scripts into a format or something?
Appreciate yr help on this.

Thanks again!
thumbnail
Juan Fernández, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Karishma: go to wordpress and export your blog/site. It will generate an xml file that you can then upload to the wordpress importer portlet.
If you see the logs you should see messages saying what was imported and then you should see the content showing up in your portal.
Good luck! ;)
Juan
Karishma Tiwari, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 4 Beitrittsdatum: 03.10.14 Neueste Beiträge
Thanks for the guidance, Juan!

I managed to do the import successfully! some questions:
1) How do I remove the page tabs from the navigation bar?
2) How to edit the imported pages? Should I open it into another portlet?
thumbnail
Juan Fernández, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Karishma:
once the pages are in Liferay you can manage and edit them as any normal page. Just go to Admin -> Pages and you'll them all.
Best,
Juan
Karishma Tiwari, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 4 Beitrittsdatum: 03.10.14 Neueste Beiträge
Hi Juan,
Thanks so much for your replies.
I have a portal (wordpress) and web application (on php and mysql db) that I need to migrate to Liferay and for the life of myself (so much for the ray in liferay) I am not able to find much info/guidance on doing php application on Liferay.

I have done the wordpress importing using your application, thanks so much for providing that. Now my liferay portal is all haywired.

I have questions as below
1) Is it possible to migrate wordpress interface/template to Liferay?

2) How can be migrate PHP scripting and mysql setup to the Liferay?

3) How do I edit PHP pages/portlets? The first try of uploading a portlet in a .zip format was successful but subsequently it stopped working. Any idea?

Searching for the keywords on Liferay forums did not help much either. I am just wondering if migration is feasible, or do I need to write line by line into the new liferay portal?

Any help is much appreciated, TIA!
thumbnail
Juan Fernández, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Karishma:
I am really sorry, but I think I can't help you there emoticon
I have never migrated a full PHP app from Wordpress to Liferay, not templates. I have just migrated content (blog entries, pages, images, tags, etc) and that's why I created the Wordpress Importer.
Let me ask for a favor: If you manage to accomplish your migration task, please document the experience and share it with our open source community: other users in the future will love to read about your experiences.
I wish you luck for your project
Best,
Juan
Matthew Sheets, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 2 Beitrittsdatum: 28.12.11 Neueste Beiträge
Hello Juan,

Thank you for your continued work on the Wordpress to Liferay Importer, I wanted to ask if anyone else had the issue of commenters names being duplicated?

So if "John Smith" wrote a comment on Wordpress when I run the importer it becomes "John Smith John Smith" I think this is caused by the Wordpress XML only having 1 "name" field and Liferay looking for 2?

Any ideas would be helpful as I have a rather large Wordpress import I am trying to clean up.

Thanks!
thumbnail
Juan Fernández, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

Liferay Legend Beiträge: 1261 Beitrittsdatum: 02.10.08 Neueste Beiträge
Hi Matthew:
thanks for your kind words.
I haven't seen that issue before, but I wanted to ask you something: are you a developer? If that's the case, I recommend you to have a look at the method that reads the comments from wordpress to see where it might be failing:

https://github.com/juanferrub/liferay-wordpress-importer/blob/master/portlets/WordpressImporter-portlet/docroot/WEB-INF/src/com/liferay/util/WordpressUtil.java#L510

I suspect that wordpress have changed the comments author label (I call it Nickname) and we are somehow collecting it wrong...
I am sorry, but right now I can not debug/test what's going on, but could you have a look at it and tell me what's going on? Maybe just having a look at your wordpress xml file and searching for that label we might discover something.

Thanks!
Matthew Sheets, geändert vor 9 Jahren.

RE: Wordpress Importer 1.2 released!

New Member Beiträge: 2 Beitrittsdatum: 28.12.11 Neueste Beiträge
Hello Juan,

After looking over it briefly I am wondering if it's referencing the name twice?

https://github.com/juanferrub/liferay-wordpress-importer/blob/master/portlets/WordpressImporter-portlet/docroot/WEB-INF/src/com/liferay/util/WordpressUtil.java#L613

Looks like it might be calling the user name (that was just set as the name) and the "nickName", "user.getUserId(), nickName"

Just a thought real fast.