/* Plugin Name: Thanks Plugin URI: http://devt.caffeinatedbliss.com/bbpress/thanks Description: Empowers users to leave a vote of thanks for posts Author: Paul Hawke Author URI: http://paul.caffeinatedbliss.com/ Version: 0.7 */ $DEFAULTS = array( "thanks_output_none" => "", "thanks_output_one" => "# vote of thanks", "thanks_output_many" => "# votes of thanks", "thanks_voting" => "Add your vote of thanks", "thanks_position" => "after", "thanks_voters" => "no", "thanks_voters_prefix" => "(", "thanks_voters_suffix" => ")", ); require_once( "thanks-admin.php" ); require_once( "thanks-output.php" ); function thanks_js() { $src = BB_PLUGIN_URL.'thanks/thanks-plugin.js'; wp_register_script('thanks-plugin-js', $src, array('jquery')); wp_enqueue_script('thanks-plugin-js'); } function thanks_head() { ?> post_id; $user = bb_get_current_user(); $uid = ($logged_in) ? (int) $user->ID : false; echo "