Re: Plugin: [REL] Signature
Does this still work anymore in bbPress 8.2?
When I went to modify the functions.php as requested in the top thread, I didn’t find a seemingly logical place to put the code.
Between lines 1382 and 1394:
$topics = array_flip((array) $bbdb->get_col("SELECT topic_id, COUNT(*) FROM $bbdb->tagged WHERE tag_id = '$tag_id' GROUP BY topic_id"));
$counts = (array) $bbdb->get_col('', 1);
if ( $tags = $bbdb->query("DELETE FROM $bbdb->tagged WHERE tag_id = '$tag_id' AND user_id = '$user_id' AND topic_id = '$topic_id'") ) :
if ( 1 == $counts[$topics[$topic_id]] ) :
$tagged = $bbdb->query("UPDATE $bbdb->tags SET tag_count = tag_count - 1 WHERE tag_id = '$tag_id'");
$bbdb->query("UPDATE $bbdb->topics SET tag_count = tag_count - 1 WHERE topic_id = '$topic_id'");
$bb_cache->flush_one( 'topic', $topic_id );
if ( 1 == count($counts) )
$destroyed = destroy_tag( $tag_id );
endif;
endif;
return array( 'tags' => $tags, 'tagged' => $tagged, 'destroyed' => $destroyed, 'sig' => array(0, __('Signature')) );
}
I put it on the second to last line, but somehow I don’t think this is correct as its not working .
When I go to my profile page, there is no option to input a signature of any sorts, so obviously I can’t have a signature show up.
Any help would be much appreciated.