Re: how to detect plugins incompatible with bbPress 1.0
The way I deal with fixing topicmeta is like this, though there may be other ways:
old:
if ( $topics = (array) $bbdb->get_col("SELECT topic_id FROM $bbdb->topicmeta WHERE meta_key = 'rating'") ) :
new:
if (bb_get_option('bb_db_version')>1600) {$item="object_id as topic_id"; $table="$bbdb->meta WHERE object_type='bb_topic' AND";}
else {$item="topic_id"; $table="$bbdb->topicmeta WHERE";}
if ( $topics = (array) $bbdb->get_col("SELECT $item FROM $table meta_key = 'rating'") ) :