Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2005-11-13 01:51:53

technosailor
Member
From: Baltimore, MD
Registered: 2005-10-30
Posts: 23
Website

Re: [issue] categories not importing properly (wordpress)

Can I also suggest, from a test import a week or so again, that you add two more items to the comments stuff. Currently, Textpattern imports all comments and sets them all to visible. This is bad when a blog has thousands of spam marked as spam or otherwise not modified.

WordPress offers comment_approved as 0,1,spam. 0 is awaiting moderation. 1 is approved. spam is self explanatory.

I added below line 43:

“.$wpdbprefix.“comments.comment_approved as status

Added at approx line 147-148:
//Do some Comment Spam Mojo
$visible = ($status == 1) ? 1 : 0;

and changed line 158 to be:

visible = $visible”,$txplink) or $results[]= mysql_error();


Aaron Brazell
Editor/Writer, [url=http://www.technosailor.com]Technosailor.com[/url]

Offline

#12 2005-11-13 02:34:19

zem
Developer emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579
Website

Re: [issue] categories not importing properly (wordpress)

Is the comment_approved field available in previous versions of WP?


Alex
tstate

Offline

Board footer

Powered by FluxBB