export wordpress posts to a mediawiki - wordpress

I have a website with Wordpress template, I want to export just all my posts and import them to mediwiki.
I was wondering, is there any plugin, website or any other especial tool for doing this?
I also have access to both sql files!
Thanks in advance.

This is two problems. Export then import. Wordpress has a built in export ability but it may require installation of an official plugin to make full use of it. Check tools in the Wordpress admin menu.
Mediwiki will require it's own PHP and/or XML scripts for importing and I've never used it to help you on that part.

there is a possibility to parse a rss feed or wordpress export file to create a file which you can use with the following program.
http://meta.wikimedia.org/wiki/MediaWiki_Bulk_Page_Creator

Can you export your posts into HTML?
IF so, just google for "HTML to wiki", for instance: http://labs.seapine.com/htmltowiki.cgi
Just beware that there might be some errors.
Otherwise it is not so hard to implement a converter.

Related

Wordpress migration to a new developed webpage

Case:
A old website developed with wordpress and run for serveral years.
Now, this wordpress website is giveup and will be re-developed to a new website which is not using wordpress anymore.
Old data i.e. article content, uploaded image file, members' info etc will be migrated to the new website.
Question:
1. Is it any tools for this type of migration?
2. If there is no tool for data transfer and I need to export the content from mysql, where can I get the article content in database?
3. Where can I find the uploaded file?
Data migration is always dependant on two things.
1. If your current framework/CMS can export the data you have, and
2. If the new framework/CMS can import data that you have just exported.
Since both frameworks are different, i.e. WordPress to any other CMS, your new CMS must be able to map the exported XML files. Which means, it must be able to customize the import process to tell what bits of data is Title, Content, Categories etc.
To answer your questions
Is it any tools for this type of migration?
Since you didn't mention what you new framework is, no one can really suggest a tool. Just google for "WordPress to YOUR-NEW-FRAMEWORK migraiton" and you'll get a number of tools. If the new framework is a custom PHP framework then I think you'll have to import the data manually or code an import script for it.
WordPress has a pretty good export tool. Check this page to learn how to export WordPress content.
Where can I find the uploaded file?
The uploaded files are referenced in the exported XML file, so at the time of import anywhere else, they can be fetched and downloaded if you can. Otherwise, you can find them in the uploads directory located at YOUR-SITE-ROOT/wp-content/uploads/
UPDATE:
As you are not targetting any framework/CMS but want to show the data with custom PHP, I'd suggest two methods.
Use the current database that WordPress is using and build your PHP script around it, benefiting from wp_posts and wp_postmeta tables.
A better way to go with this is using the WP REST API. This way, you keep the WordPress installation as is and still use it's data in your custom PHP site. Advantage of this method is that you won't have to bug your mind with scripting around database structures you have less information of.

Is it possible to implement dropzone to upload images to wordpress media library?

Can dropzone be setup to handle files and insert them into the wordpress media libary? I have seen some ways to upload files to the server, but I don't know how to include them into the wp library.
Thanks
This has been asked before - and yes it's possible but I wouldn't call it an easy task because you have to add the wordpress code as well into it.
See the answer here

How do I use Google Custom Search with Drupal without installing a module?

I'd like a more capable search for my website. My current search is unable to ignore spelling mistakes and since our site is a multi lingual we really need this capability. Google has a great way of doing this.
I'm aware of the Google custom search, how do I install this to drupal without installing a module?
Thanks in advance!
Here is the documentation for how to add GCS to your web site by pasting some code into your template (or a block or node)
https://developers.google.com/custom-search/docs/element.
I did this method on http://www.greens.org.nz/ so see that web site for a working example.

Wordpress: Editing pages with another editor

Relatively simple question, but I can't find the answer: How can I edit static pages (or posts) with my own editor instead of using WordPress? I'm not asking about the details of how to FTP, but instead where can I actually find the pages I created using WordPress in the WordPress directory?
Thanks.
The content of the pages you create are stored in the mySQL database rather than as static files so you cannot just see them if you look through the directory. The software reads out the data from the db when requested and renders it according to various settings.
As for editing your wordpress pages/entries using an external editor, wordpress supports an XML RPC interface which can be used to communicate with it. For an example of an emacs extension to edit WP articles, check out http://www.tolchz.net/2008/01/06/posting-to-wordpress-with-emacs-webloggerel/. I'm sure many other editors have this facility as well (including, I'm led to believe, Microsoft Word).
Finally, if you want to use the web interface but use your own editor for the textboxes where you edit pages/articles, check out the it's all text plugin for Firefox.
Windows Live Writer is an excellent editor for this purpose. The latest version (2011) surprisingly better than the first, which was already more than I expected for a freebie, and a small project team.
Make sure you avoid all the extra "Live" options and just leave the Writer checked for install. And in WP admin settings, enable XML RPC.
wp generates dynamic pages - that means the pages only exist the moment they are requested. You would first need to "statify" them - simply downlowding would do, but there's also plugins that can do this.. Usually needed for optimizing speed/cache
Looking for "wordpress static pages plugin" might help..
PS: this would do the job of making wp 'static'
http://wordpress.org/extend/plugins/really-static/

Pull data from WordPress

What's the best way to pull data from Wordpress database? I think creating a plugin would be nice. Is there a tutorial out there that do the job? Or a plugin that does it? Pull content of the page via JSON/XML.
Cheers,
Mickey
Here's the link to the plugin:
http://wordpress.org/extend/plugins/json-api/
A generic easy way to export data from a mySQL database in XML format could be phpmyadmin.net
If you are looking to integrate HTML from Wordpress in a PHP-driven site, the easiest and fastest way is to include the WordPress main include, and use the native WP functions to get hold of the data.
Wordpress Codex: Integrating Wordpress with your website
Wordpress Codex: The Loop
Just one caveat from experience: Wordpress is fat. Including the wordpress header file will eat up 8-12 MB of your allocated per-script memory (usually somewhere between 16-64 MB) from the start. You may be able to steer around that, however, by loading the Wordpress data in a different script, or caching the requests (probably a good idea anyway).
WordPress also has basic built-in RSS export functionality.

Resources