Changeset 1109
- Timestamp:
- 05/21/08 19:09:39 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-anonymous-posting/trunk/bb-anonymous-posting.php
r1102 r1109 5 5 Description: Allows anonymous users to add posts and topics 6 6 Author: Aditya Naik 7 Version: 2. 17 Version: 2.2 8 8 Author URI: http://www.adityanaik.com/ 9 9 */ … … 33 33 'read' => true 34 34 ); 35 36 35 if (bb_get_option('bb_anon_write_topics') == 'Y') 37 36 $perm_array['write_topics'] = true; … … 53 52 if (!$bb_current_user) { 54 53 $anon_id = bb_get_option('bb_anon_user_id'); 54 if (!$anon_id) { 55 bb_anon_activate_plugin(); 56 $anon_id = bb_get_option('bb_anon_user_id'); 57 } 55 58 $bb_current_user = new BB_User($anon_id); 56 59 } … … 64 67 } 65 68 66 if ( !bb_current_user_can('write_topics')) {69 if (is_forum() && bb_get_option('bb_anon_write_topics') != "Y") { 67 70 echo '<p>'; 68 71 printf(__('You must <a href="%s">log in</a> to post.'), attribute_escape( bb_get_option('uri') . 'bb-login.php' ));
