[wp-forums] Identifying bozo against spam

Rich Pedley elfin at elfden.co.uk
Sun Dec 12 22:28:49 UTC 2010


I find it really difficult to distinguish posts that are bozo'ed 
against those that are true spam. This is due in part to the way that 
the bozo plugin is coded.

In bozo.php we currently have:

function bb_bozo_post_del_class( $classes, $post_id, $post )
{
if ( 1 < $post->post_status && bb_current_user_can('browse_deleted')  ) {
		if ( $classes ) {
			return $classes . ' bozo';
		}
		return 'bozo';
	}
	return $classes;
}

This is adding the class 'bozo' to every post marked as spam, 
irrespective of whether the user is actually a bozo or not.

If the if statement was changed to:

if ( 1 < $post->post_status && bb_current_user_can('browse_deleted') 
&& bb_get_usermeta($post->poster_id,'is_bozo') )

and a little bit of CSS was added (I just used this as a test)

table.widefat tr.bozo td.author{
background:#fff;
}

Then the bozo'ed users would stand out more and be able to be identified.


Would this be a worthy addition on the forums for us?

Rich


More information about the wp-forums mailing list