Support for titles.

git-svn-id: http://svn.automattic.com/wordpress/trunk@299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-08-07 20:58:27 +00:00
parent a14dc229b7
commit cf33c1e0b2
1 changed files with 2 additions and 3 deletions

View File

@ -61,6 +61,7 @@ case "step1":
$post_date = $postinfo[0]; $post_date = $postinfo[0];
$post_content = $postinfo[2]; $post_content = $postinfo[2];
$post_number = $postinfo[3]; $post_number = $postinfo[3];
$post_title = $postinfo[4];
$post_author = trim(addslashes($postinfo[1])); $post_author = trim(addslashes($postinfo[1]));
// we'll check the author is registered already // we'll check the author is registered already
@ -126,8 +127,6 @@ case "step1":
$post_content = addslashes($post_content); $post_content = addslashes($post_content);
$post_content = str_replace('<br>', '<br />', $post_content); // the XHTML touch... ;) $post_content = str_replace('<br>', '<br />', $post_content); // the XHTML touch... ;)
$post_title = '';
$result = $wpdb->query(" $result = $wpdb->query("
INSERT INTO $tableposts INSERT INTO $tableposts
(ID, post_author,post_date,post_content,post_title,post_category) (ID, post_author,post_date,post_content,post_title,post_category)
@ -191,7 +190,7 @@ default:
<p>Log into your Blogger account.<br /> <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 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): 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 /> 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> 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> <p>You're done with the hard part. :)</p>