Support for titles.

git-svn-id: https://develop.svn.wordpress.org/trunk@299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-08-07 20:58:27 +00:00
parent eb88ccfeca
commit 467960096a
1 changed files with 2 additions and 3 deletions

View File

@ -61,6 +61,7 @@ case "step1":
$post_date = $postinfo[0];
$post_content = $postinfo[2];
$post_number = $postinfo[3];
$post_title = $postinfo[4];
$post_author = trim(addslashes($postinfo[1]));
// we'll check the author is registered already
@ -126,8 +127,6 @@ case "step1":
$post_content = addslashes($post_content);
$post_content = str_replace('<br>', '<br />', $post_content); // the XHTML touch... ;)
$post_title = '';
$result = $wpdb->query("
INSERT INTO $tableposts
(ID, post_author,post_date,post_content,post_title,post_category)
@ -191,7 +190,7 @@ default:
<p>Log into your Blogger account.<br />
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 b2 directory. Click 'save changes'.<br />
Go to the Templates. Replace your existing template with this line (copy and paste):
<blockquote>&lt;Blogger>&lt;cafelogpost>&lt;$BlogItemDateTime$>|||&lt;$BlogItemAuthorNickname$>|||&lt;$BlogItemBody$>|||&lt;$BlogItemNumber$>&lt;/Blogger></blockquote>
<blockquote>&lt;Blogger>&lt;cafelogpost>&lt;$BlogItemDateTime$>|||&lt;$BlogItemAuthorNickname$>|||&lt;$BlogItemBody$>|||&lt;$BlogItemNumber$>|||&lt;$BlogItemSubject$>&lt;/Blogger></blockquote>
Go to the Archives, and click 'republish all'.<br />
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>
<p>You're done with the hard part. :)</p>