Changeset 1285 for trunk/wp-admin/import-blogger.php
- Timestamp:
- 05/16/2004 05:04:09 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import-blogger.php
r1108 r1285 40 40 $bgmm = zeroise($bgm,2); 41 41 42 $archivefile = "../$bgy"."_"."$bgmm"."_01_ cafelog.php";42 $archivefile = "../$bgy"."_"."$bgmm"."_01_wordpress.php"; 43 43 44 44 if (file_exists($archivefile)) { … … 49 49 echo "<li>$bgy/$bgmm "; 50 50 51 $posts = explode('< cafelogpost>', $archive);51 $posts = explode('<wordpresspost>', $archive); 52 52 53 53 for ($i = 1; $i < (count($posts)+1); $i = $i + 1) { … … 73 73 $pass1 = addslashes('password'); 74 74 $user_nickname = addslashes($post_author); 75 $user_email = addslashes('user@ cafelog.com');75 $user_email = addslashes('user@wordpress.org'); 76 76 $user_url = addslashes(''); 77 77 $user_joindate = addslashes($user_joindate); … … 198 198 <h3>Second step: let's play with Blogger</h3> 199 199 <p>Log into your Blogger account.<br /> 200 Go to the Settings, and make Blogger publish your files in the directory where your b2 resides. Change the Date/Time format to be mm/dd/yyyy hh:mm:ss AM/PM (the first choice in the dropdown menu). In Archives: set the frequency to 'monthly' and the archive filename to 'cafelog.php' (without the quotes), set the ftp archive path to make Blogger publish the archives in your b2directory. Click 'save changes'.<br />200 Go to the Settings, and make Blogger publish your files in the directory where your WordPress resides. Change the Date/Time format to be mm/dd/yyyy hh:mm:ss AM/PM (the first choice in the dropdown menu). In Archives: set the frequency to 'monthly' and the archive filename to 'wordpress.php' (without the quotes), set the ftp archive path to make Blogger publish the archives in your WordPress directory. Click 'save changes'.<br /> 201 201 Go to the Templates. Replace your existing template with this line (copy and paste): 202 <blockquote><Blogger>< cafelogpost><$BlogItemDateTime$>|||<$BlogItemAuthorNickname$>|||<$BlogItemBody$>|||<$BlogItemNumber$>|||<$BlogItemSubject$></Blogger></blockquote>202 <blockquote><Blogger><wordpresspost><$BlogItemDateTime$>|||<$BlogItemAuthorNickname$>|||<$BlogItemBody$>|||<$BlogItemNumber$>|||<$BlogItemSubject$></Blogger></blockquote> 203 203 Go to the Archives, and click 'republish all'.<br /> 204 Check in your FTP that you've got the archive files published. They should look like this example: <code>2001_10_01_ cafelog.php</code>. If they aren't there, redo the republish process.</p>204 Check in your FTP that you've got the archive files published. They should look like this example: <code>2001_10_01_wordpress.php</code>. If they aren't there, redo the republish process.</p> 205 205 <p>You're done with the hard part. :)</p> 206 206
Note: See TracChangeset
for help on using the changeset viewer.