isLoggedIn()) { convert_showLogin('weblog.php'); } if (!$member->isAdmin()) { convert_doError('Only Super-Admins are allowed to perform blog conversions'); } $ver = convert_getNucleusVersion(); if ($ver > 210) convert_doError("You should check the Nucleus website for updates to this convert tool. This one might not work with your current Nucleus installation."); // include PRAX lib (to read XML files easily) include ('PRAX.php'); switch($action) { case "login": // drop through default: bc_getBloggerBlogID(); } // step 1: get the Blogger Blog ID function bc_getBloggerBlogID() { global $HTTP_SERVER_VARS, $PHP_SELF; convert_head(); ?>
The first step in the conversion is to export all your we::blog entries into one single file.
The full procedure is explained below:
<!-- Your weblog template --> <html> <head> <title>GaGa WebCam Log</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- ********************************************************************************** --> <!-- DO NOT REMOVE OR CHANGE ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING --> <!-- ********************************************************************************** --> <!-- <weblog> translate {:-)} {<img src="/weblog/image/emoticon/smiley.gif">} translate_template {[#edit]} {[IF $edit_link][<a href="[$edit_link]">edit</a>][ENDIF]} translate_template {[#date_header]} {[IF $date_header]<p class="commentdateheader">[$post_day]/[$post_month]/[$post_year]</p>[ENDIF]} translate_template {[#comments_page]} {[IF $generation]} translate_template {[/#comments_page]} {[ENDIF]} translate_template {[#main_page]} {[IF $generation][ELSE]} translate_template {[/#main_page]} {[ENDIF]} translate_template {[#messages]} {[LOOP $messages]} translate_template {[/#messages]} {[ENDLOOP]} translate_template {[#archives]} {[LOOP $archives]} translate_template {[/#archives]} {[ENDLOOP]} translate_template {[#hidden_message]} { [IF $message_status_hide] [IF $is_owner] <p class="commenttitle" id="[$message_id]"><font color="#FF0000" face="tahoma">::HIDDEN::</font> [IF $comment_link]<a class="navigate" href="[$comment_link]">[ENDIF][$message_title][IF $comment_link]</a>[ENDIF] [IF $edit_link][<a class="navigate" href="[$edit_link]">edit</a>][ENDIF]</p> [ENDIF] [ENDIF] } translate_template {[#visible_message]} {[IF $message_status_hide][ELSE]} translate_template {[/#visible_message]} {[ENDIF]} translate_template {[#post]} {[IF $add_comment_link]<br><p class="addcomment">[ <a class="navigate" href="[$add_comment_link]">[IF $generation]add a comment[ELSE]post a message[ENDIF]</a> ]</p>[ENDIF]} translate_template {[#comment]} { [IF $comment_link] <a class="navigate" href="[$comment_link]"><nobr>[$num_comments] comments</nobr></a> [ENDIF] } translate_template {[#post_datetime]} {[$post_month]/[$post_day]/[$post_year] [$post_hour]:[$post_minute] PM} translate_template {[#mod_datetime]} {[$mod_month_abbrev] [$mod_day], [$mod_year] at [$mod_hour]:[$mod_minute]} share { template; } generation.0 { comments: yes; show_depth: 1; max_comments: 1000; max_days: 365; sort_comments: new_to_old; sort_days: new_to_old; permissions: owner; } generation.1 { comments: yes; show_depth: 1; max_comments: 1000; max_days: 365; sort_comments: new_to_old; sort_days: new_to_old; permissions: all; } generation.2 { comments: no; } generation.open { comments: yes; show_depth: 16; max_comments: 1000; } timezone { +2 } </weblog> --> <!-- ********************************************************************************** --> <!-- DO NOT REMOVE OR CHANGE ANYTHING ABOVE THIS LINE UNLESS YOU KNOW WHAT YOU'RE DOING --> <!-- ********************************************************************************** --> </head> <body> <style type = "text/css"> <!-- .pagetitle { font-family: Comic Sans MS; font-size: 10pt; font-weight: bold; color: #000000; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px } .pagebody { font-family: Comic Sans MS; font-size: 9pt; color: #000000; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px } .pagebyline { font-family: Comic Sans MS; font-size: 8pt; color: #666666; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px } .addcomment { font-family: Comic Sans MS; font-size: 8pt; font-weight: bold; color: #000000; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px } .commenttitle { font-family: Comic Sans MS; font-size: 10pt; font-weight: bold; color: #000000; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px } .commentbody { font-family: Comic Sans MS; font-size: 9pt; color: #000000; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px } .commentbyline { font-family: Comic Sans MS; font-size: 8pt; color: #666666; margin-top: 0px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px } .commentdateheader { font-family: Comic Sans MS; font-size: 8pt; color: #000000; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px } .navigate { font-family: Comic Sans MS; font-size: 8pt; font-weight: bold; color: #000000 } .responseto { font-family: Comic Sans MS; font-size: 8pt; color: #666666; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right:0px } a.navigate:link { color: rgb(0,102,153); text-decoration : underline; } a.navigate:visited { color: rgb(0,153,102); text-decoration : underline; } a.navigate:hover { color: rgb(0,102,102); text-decoration : underline; } --> </style> <!-- the contents of the weblog --> <!-- main weblog page --> <?xml version="1.0"?> [#main_page] <bloggerblog> [#messages][#visible_message] <blogentry> <body><![CDATA[[$message_body]]]></body> <title>[$message_title]</title> <date>[$post_month]/[$post_day]/[$post_year] [$post_hour_dd]:[$post_minute]:[$post_second] [$post_time_ap]m</date> <author>[$author_nickname]</author> </blogentry> [/#visible_message] [/#messages] </bloggerblog> [/#main_page] </body> </html>Don't forget to save changes!
<bloggerblog>
and end with </bloggerblog>
)Now you have a file called blogger.xml. Upload it in the same directory as the convert files (/nucleus/convert) and continue to the next step.