Changeset 957
- Timestamp:
- 03/31/08 20:44:57 (8 months ago)
- Files:
-
- bbpress-signatures/trunk/bb-signatures.php (modified) (2 diffs)
- bbpress-signatures/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bbpress-signatures/trunk/bb-signatures.php
r901 r957 4 4 Plugin URI: http://bbpress.org/plugins/topic/63 5 5 Description: allows users to add signatures to their forum posts, including an optional per-post toggle 6 Version: 0.1 66 Version: 0.1.7 7 7 Author: _ck_ 8 8 Author URI: http://bbshowcase.org … … 159 159 function bb_signatures_checkbox() { 160 160 // this function call must unfortunately be manually placed into edit-form.php and post-form.php templates 161 global $bb_ post,$bb_signatures,$bb_signatures_on_page;161 global $bb_signatures,$bb_signatures_on_page,$posts,$bb_post; 162 162 if ($bb_signatures['allow_per_post_signature_toggle']) : 163 163 if (bb_current_user_can($bb_signatures['minimum_user_level']) ) : 164 if (is _topic() || !$user_id=$bb_post->poster_id) {$user_id=bb_get_current_user_info( 'id' );}165 if (is _topic() || !$post_id=$bb_post->post_id) {$post_id=0;}164 if (isset($posts) || !isset($bb_post->poster_id)) {$user_id=bb_get_current_user_info( 'id' );} else {$user_id=$bb_post->poster_id;} // || is_topic() 165 if (isset($posts) || !isset($bb_post->post_id)) {$post_id=0;} else {$post_id=$bb_post->post_id;} // || is_topic() 166 166 // if (fetch_user_signature($user_id)) {$checked="checked";} 167 167 if ($post_id && bb_signatures_exclude_posts_check($post_id)) {$checked=""; $disabled="1";} else {$checked="checked"; $disabled="0";} bbpress-signatures/trunk/readme.txt
r901 r957 41 41 * signatures removed from rss feeds 42 42 * bug fix to maintain setting when posts are saved after edit 43 44 = Version 0.1.7 (2008-03-31) = 45 46 * bug workaround for is_topic() failure to maintain signature toggle during edits
