{"id":2647,"date":"2013-04-02T13:58:46","date_gmt":"2013-04-02T13:58:46","guid":{"rendered":"http:\/\/rataki.eu\/blog\/?page_id=2647"},"modified":"2013-04-10T15:43:40","modified_gmt":"2013-04-10T15:43:40","slug":"about-this-blog","status":"publish","type":"page","link":"https:\/\/pierre.bodilis.fr\/blog\/?page_id=2647","title":{"rendered":"About this blog"},"content":{"rendered":"<h3>What about this site?<\/h3>\n<p>This photoblog is powered by <a href=\"http:\/\/wordpress.org\/\">wordpress<\/a>, formerly by <a href=\"http:\/\/www.pixelpost.org\/\">pixelpost<\/a>. <\/p>\n<h3>Pixelpost to WordPress<\/h3>\n<p>NOW EASIER, <a href=\"http:\/\/wordpress.org\/extend\/plugins\/pixelpost-importer\/\">importer is now available on WordPress repository<\/a>.<\/p>\n<p>PixelPost, although a cool project, is now dying (if not dead already). I looked for an other platform, more modern and still alive, and I ended up on WordPress. At first, I was interested in the plugin YAPB, but it appeared that this plugin was from a time when WordPress lacked lots of features, but not anymore; so I developed migration importers to migrate a pixelpost blog to wordpress:<\/p>\n<ul>\n<li>the post importer: set up your pixelpost database info, and let it work for a while. it&#8217;ll import categories, posts and comments. It&#8217;ll left a new table in the database, used by the provided index.php to keep the old link alive, by redirecting them to the new uri.<\/li>\n<li>the ratings importer: provided you used the ajax rating plugin in pixelpost, and want to keep those in wordpress using wp-postratings, this plugin does this kind of magic: for each pixelpost post, the plugin updates the wordpress post with the same marks.<\/li>\n<\/ul>\n<h4>Installation<\/h4>\n<ul>\n<li>Upload <a href=\"http:\/\/wordpress.org\/extend\/plugins\/pixelpost-importer\/\">pixelpost-importer<\/a> to the \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress<\/li>\n<\/ul>\n<p>Or even better, use the Admin plugins interface and look for &#8220;pixelpost importer&#8221; and install the plugin like any other plugin.<\/p>\n<h4>Import Categories, Posts and Comments<\/h4>\n<p>First, download the <a href=\"https:\/\/github.com\/pbodilis\/odyssey_pp2wp\/archive\/master.zip\">the post importer<\/a>. Unzip the files in <code>wp-content\/plugins<\/code>, then go to wordpress\/installed plugins page, and activate the plugin. Then go to the Tools&gt;Import page, and select Pixelpost. You should arrive to the importer setting page:<\/p>\n<p><a href=\"http:\/\/rataki.eu\/blog\/wp-content\/uploads\/2013\/04\/odyssey_pp2wp_screenshot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2655\" alt=\"odyssey_pp2wp_screenshot\" src=\"http:\/\/rataki.eu\/blog\/wp-content\/uploads\/2013\/04\/odyssey_pp2wp_screenshot-300x192.png\" width=\"300\" height=\"192\" srcset=\"https:\/\/pierre.bodilis.fr\/blog\/wp-content\/uploads\/2013\/04\/odyssey_pp2wp_screenshot-300x192.png 300w, https:\/\/pierre.bodilis.fr\/blog\/wp-content\/uploads\/2013\/04\/odyssey_pp2wp_screenshot.png 848w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Once categories have been imported, the post are then imported. This may take a loooooong time. A percentage indicates where you&#8217;re at in the migration process. Once done, you can use the provided index.php file to keep the old links from pixelpost to wordpress. Note that the plugin needs to remain installed to work, and the table <code>\"$prefix + odyssey_pp2wp\"<\/code> should not be dropped. Provided the PixelPost and the WordPress are installed on the same host, you can set up an &#8220;index.php&#8221; where PixelPost was installed:<\/p>\n<pre>\r\n<?php\r\n\r\ndefine('WORDPRESS_LOAD', \/* insert here the path to wordpress's wp-load.php *\/);\r\n\r\nif( ! isset($wp_did_header) ) {\r\n    $wp_did_header = true;\r\n    require_once( WORDPRESS_LOAD );\r\n    wp();\r\n}\r\n\r\n$link = home_url('\/');\r\n\r\nif( isset( $_GET['showimage']) &#038;&#038; class_exists('PP_Importer') ) {\r\n    $pp_post_id = intval( $_GET['showimage'] );\r\n    $pp_importer = new PP_Importer();\r\n    $wp_post_id = $pp_importer->get_pp2wp_wp_post_id($pp_post_id);\r\n    $link = get_permalink( $wp_post_id );\r\n} else if( isset( $_GET['x'] ) ) {\r\n    switch($_GET['x']) {\r\n        case 'rss':\r\n            $link = get_bloginfo('rss2_url');\r\n            break;\r\n        case 'browse': \/\/ todo one day\u0153\r\n            break;\r\n    }\r\n}\r\n\r\nheader( \"Status: 301 Moved Permanently\", false, 301 );\r\nheader( \"Location: \" . $link );\r\nexit();\r\n<\/pre>\n<h4>Import Rates<\/h4>\n<p>If you used a rating plugin like <a href=\"http:\/\/www.pixelpost.org\/extend\/addons\/ajax-photo-ratings\/\">ajax photo ratings<\/a> plugin in pixelpost, and would like to use an equivalent plugin such as <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-postratings\/\">wp-postratings<\/a> in wordpress, I have what you need too! Once you installed the post ratings plugin, go to the Tools&gt;Import page, and select Pixelpost ajax ratings. The same settings as the pixelpost importer should be set, and click on import. It should again take a long time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What about this site? This photoblog is powered by wordpress, formerly by pixelpost. Pixelpost to WordPress NOW EASIER, importer is now available on WordPress repository. PixelPost, although a cool project, is now dying (if not dead already). I looked for an other platform, more modern and still alive, and I ended up on WordPress. At [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2620,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2647","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=\/wp\/v2\/pages\/2647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2647"}],"version-history":[{"count":19,"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=\/wp\/v2\/pages\/2647\/revisions"}],"predecessor-version":[{"id":2654,"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=\/wp\/v2\/pages\/2647\/revisions\/2654"}],"up":[{"embeddable":true,"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=\/wp\/v2\/pages\/2620"}],"wp:attachment":[{"href":"https:\/\/pierre.bodilis.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}