Changeset 678864
- Timestamp:
- 03/09/2013 11:02:28 PM (13 years ago)
- Location:
- wp-bulletin-board
- Files:
-
- 12 edited
- 1 copied
-
tags/1.1.2 (copied) (copied from wp-bulletin-board/trunk)
-
tags/1.1.2/php/wpbb-view-forum-topic.php (modified) (6 diffs)
-
tags/1.1.2/php/wpbb-view-forum.php (modified) (2 diffs)
-
tags/1.1.2/php/wpbb-view-subforum-topic.php (modified) (7 diffs)
-
tags/1.1.2/php/wpbb-view-subforum.php (modified) (2 diffs)
-
tags/1.1.2/readme.txt (modified) (2 diffs)
-
tags/1.1.2/wp-bb.php (modified) (4 diffs)
-
trunk/php/wpbb-view-forum-topic.php (modified) (6 diffs)
-
trunk/php/wpbb-view-forum.php (modified) (2 diffs)
-
trunk/php/wpbb-view-subforum-topic.php (modified) (7 diffs)
-
trunk/php/wpbb-view-subforum.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-bb.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-bulletin-board/tags/1.1.2/php/wpbb-view-forum-topic.php
r637720 r678864 14 14 $view_permissions = wpbb_user_has_permission($user_id, $forum); 15 15 if ($view_permissions === false) { 16 wpbb_goback1('forum_topic_denied', NULL); 17 ?> 18 <div class="wpbb-message-failure"> 19 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 20 </div> 21 <?php 22 wpbb_exit(); 16 if (wpbb_is_user_logged_in()) { 17 wpbb_goback1('forum_topic_denied', NULL); 18 ?> 19 <div class="wpbb-message-failure"> 20 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 21 </div> 22 <?php 23 wpbb_exit(); 24 } 23 25 } else { 24 26 $read_permissions = wpbb_user_has_permission($user_id, $forum, 'read'); 25 27 if ($read_permissions === false) { 26 wpbb_goback1('forum_topic_denied', NULL); 27 ?> 28 <div class="wpbb-message-failure"> 29 <?php _e('You do not have the required permissions to read topics in this forum!', 'wp-bb'); ?> 30 </div> 31 <?php 32 wpbb_exit(); 28 if (wpbb_is_user_logged_in()) { 29 wpbb_goback1('forum_topic_denied', NULL); 30 ?> 31 <div class="wpbb-message-failure"> 32 <?php _e('You do not have the required permissions to read topics in this forum!', 'wp-bb'); ?> 33 </div> 34 <?php 35 wpbb_exit(); 36 } 33 37 } 34 38 } … … 118 122 ?> 119 123 <div class="wpbb-message-failure"> 120 <?php printf(__('You must wait %s seconds since your last post before creating another.' ), $post_cutoff); ?>124 <?php printf(__('You must wait %s seconds since your last post before creating another.', 'wp-bb'), $post_cutoff); ?> 121 125 </div> 122 126 <?php … … 244 248 </a> 245 249 <br /> <?php echo get_avatar($topic->author); ?> 246 <br /> <?php printf(__('Posts: %s' ), $user_posts); ?>250 <br /> <?php printf(__('Posts: %s', 'wp-bb'), $user_posts); ?> 247 251 </td> 248 252 <?php … … 254 258 </p> 255 259 <p class="wpbb-topic-and-post-content"> 256 <?php echo convert_smilies($topic->content); ?> 260 <?php 261 $content = apply_filters('the_content', $topic->content); 262 echo $content = str_replace(']]>', ']]>', $content); 263 ?> 257 264 </p> 258 265 <hr> … … 284 291 <a href='<?php echo add_query_arg(array('profile' => $post->author), wpbb_permalink()); ?>'><?php echo $author->display_name; ?></a> 285 292 <br /><?php echo get_avatar($post->author); ?> 286 <br /><?php printf(__('Posts: %s' ), $user_posts);293 <br /><?php printf(__('Posts: %s', 'wp-bb'), $user_posts); 287 294 } 288 295 ?> … … 293 300 </p> 294 301 <p class="wpbb-topic-and-post-content"> 295 <?php echo convert_smilies($post->text); ?> 302 <?php 303 $content = apply_filters('the_content', $post->text); 304 echo $content = str_replace(']]>', ']]>', $content); 305 ?> 296 306 </p> 297 307 <hr> -
wp-bulletin-board/tags/1.1.2/php/wpbb-view-forum.php
r639235 r678864 10 10 $view_permissions = wpbb_user_has_permission($user_id, $forum); 11 11 if ($view_permissions === false) { 12 wpbb_goback1('forum-index', NULL); 13 ?> 14 <div class="wpbb-message-failure"> 15 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 16 </div> 17 <?php 18 wpbb_exit(); 12 if (wpbb_is_user_logged_in()) { 13 wpbb_goback1('forum-index', NULL); 14 ?> 15 <div class="wpbb-message-failure"> 16 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 17 </div> 18 <?php 19 wpbb_exit(); 20 } 19 21 } 20 22 … … 137 139 ?> 138 140 <table class="wpbb-table"> 139 <th><?php _e('Status' ); ?></th>140 <th><?php _e('Topic' ); ?></th>141 <th><?php _e('Author' ); ?></th>142 <th><?php _e('Posts' ); ?></th>143 <th><?php _e('Last Reply' ); ?></th>144 <th><?php _e('Action' ); ?></th>141 <th><?php _e('Status', 'wp-bb'); ?></th> 142 <th><?php _e('Topic', 'wp-bb'); ?></th> 143 <th><?php _e('Author', 'wp-bb'); ?></th> 144 <th><?php _e('Posts', 'wp-bb'); ?></th> 145 <th><?php _e('Last Reply', 'wp-bb'); ?></th> 146 <th><?php _e('Action', 'wp-bb'); ?></th> 145 147 <?php 146 148 foreach ($topics as $topic) { -
wp-bulletin-board/tags/1.1.2/php/wpbb-view-subforum-topic.php
r639235 r678864 14 14 $view_permissions = wpbb_user_has_permission($user_id, $forum); 15 15 if ($view_permissions === false) { 16 wpbb_goback1('subforum_topic_denied', NULL); 17 ?> 18 <div class="wpbb-message-failure"> 19 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 20 </div> 21 <?php 22 wpbb_exit(); 16 if (wpbb_is_user_logged_in()) { 17 wpbb_goback1('subforum_topic_denied', NULL); 18 ?> 19 <div class="wpbb-message-failure"> 20 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 21 </div> 22 <?php 23 wpbb_exit(); 24 } 23 25 } else { 24 26 // Check they can access the subforum, too … … 26 28 $view_permissions = wpbb_user_has_permission($user_id, $subforum); 27 29 if ($view_permissions === false) { 28 wpbb_goback1('subforum_topic_denied', NULL); 29 ?> 30 <div class="wpbb-message-failure"> 31 <?php _e('You do not have the required permissions to view topics in this subforum!', 'wp-bb'); ?> 32 </div> 33 <?php 34 wpbb_exit(); 30 if (wpbb_is_user_logged_in()) { 31 wpbb_goback1('subforum_topic_denied', NULL); 32 ?> 33 <div class="wpbb-message-failure"> 34 <?php _e('You do not have the required permissions to view topics in this subforum!', 'wp-bb'); ?> 35 </div> 36 <?php 37 wpbb_exit(); 38 } 35 39 } else { 36 40 // Check read permissions in subforum 37 41 $read_permissions = wpbb_user_has_permission($user_id, $subforum); 38 42 if ($read_permissions === false) { 39 wpbb_goback1('subforum_topic_denied', NULL); 40 ?> 41 <div class="wpbb-message-failure"> 42 <?php _e('You do not have the required permissions to read topics in this subforum', 'wp-bb'); ?> 43 </div> 44 <?php 45 wpbb_exit(); 43 if (wpbb_is_user_logged_in()) { 44 wpbb_goback1('subforum_topic_denied', NULL); 45 ?> 46 <div class="wpbb-message-failure"> 47 <?php _e('You do not have the required permissions to read topics in this subforum', 'wp-bb'); ?> 48 </div> 49 <?php 50 wpbb_exit(); 51 } 46 52 } 47 53 } … … 113 119 ?> 114 120 <div class="wpbb-message-failure"> 115 <?php printf(__('You must wait %s seconds since your last post before creating another.' ), $post_cutoff); ?>121 <?php printf(__('You must wait %s seconds since your last post before creating another.', 'wp-bb'), $post_cutoff); ?> 116 122 </div> 117 123 <?php … … 248 254 { 249 255 $user_posts = get_user_meta($topic->author, 'wpbb_posts', true); 250 printf(__('Posts: %s' ), $user_posts);256 printf(__('Posts: %s', 'wp-bb'), $user_posts); 251 257 } 252 258 ?> … … 257 263 </p> 258 264 <p class="wpbb-topic-and-post-content"> 259 <?php echo convert_smilies($topic->content); ?> 265 <?php 266 $content = apply_filters('the_content', $topic->content); 267 echo $content = str_replace(']]>', ']]>', $content); 268 ?> 260 269 </p> 261 270 <hr> … … 294 303 <br /> 295 304 <?php echo get_avatar($id); ?> 296 <br /> <?php if ($author) printf(__('Posts: %s' ), $user_posts); ?>305 <br /> <?php if ($author) printf(__('Posts: %s', 'wp-bb'), $user_posts); ?> 297 306 </td> 298 307 <td> … … 301 310 </p> 302 311 <p class="wpbb-topic-and-post-content"> 303 <?php echo convert_smilies($post->text); ?> 312 <?php 313 $content = apply_filters('the_content', $post->text); 314 echo $content = str_replace(']]>', ']]>', $content); 315 ?> 304 316 </p> 305 317 <hr> -
wp-bulletin-board/tags/1.1.2/php/wpbb-view-subforum.php
r639235 r678864 13 13 $view_permissions = wpbb_user_has_permission($user_id, $forum); 14 14 if ($view_permissions === false) { 15 wpbb_goback1('subforum_denied', NULL); 16 ?> 17 <div class="wpbb-message-failure"> 18 <?php _e('You do not have the required permissions view this forum!', 'wp-bb'); ?> 19 </div> 20 <?php 21 wpbb_exit(); 15 if (wpbb_is_user_logged_in()) { 16 wpbb_goback1('subforum_denied', NULL); 17 ?> 18 <div class="wpbb-message-failure"> 19 <?php _e('You do not have the required permissions view this forum!', 'wp-bb'); ?> 20 </div> 21 <?php 22 wpbb_exit(); 23 } 22 24 } else { 23 25 $view_permissions = wpbb_user_has_permission($user_id, $subforum); 24 26 if ($view_permissions === false) { 25 wpbb_goback1('subforum_denied', NULL); 26 ?> 27 <div class="wpbb-message-failure"> 28 <?php _e('You do not have the required permissions to view this subforum!', 'wp-bb'); ?> 29 </div> 30 <?php 31 wpbb_exit(); 27 if (wpbb_is_user_logged_in()) { 28 wpbb_goback1('subforum_denied', NULL); 29 ?> 30 <div class="wpbb-message-failure"> 31 <?php _e('You do not have the required permissions to view this subforum!', 'wp-bb'); ?> 32 </div> 33 <?php 34 wpbb_exit(); 35 } 32 36 } 33 37 } … … 147 151 } 148 152 } 149 printf( "<a href='$link#%s'>$subforum_topic_last_reply by $last_post_author</a>", "wpbb-post-anchor$post_anchor_id");153 printf(__("<a href='$link#%s'>$subforum_topic_last_reply by $last_post_author</a>", 'wp-bb'), "wpbb-post-anchor$post_anchor_id"); 150 154 ?> 151 155 </td> -
wp-bulletin-board/tags/1.1.2/readme.txt
r639235 r678864 1 1 === WP Bulletin Board === 2 2 Contributors: codebycarter 3 Donate link: http://codebycarter.x10.mx/wp/donate/4 3 Tags: forum, bulletin board, twitter, facebook, discussion, discussion board, messaging, private message, topic, post, pagination, profile, subforum, wpbb 5 4 Requires at least: 3.0 6 Tested up to: 3.5 7 Stable tag: 1.1. 15 Tested up to: 3.5.1 6 Stable tag: 1.1.2 8 7 License: GPLv2 or later 9 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 88 == Changelog == 90 89 90 = 1.1.2 = 91 * Fixes issue with theme integration 92 * Anything you can display or create in the WP dashboard editor will now be available in the WPBB editor, e.g. shortcodes, etc. 93 * Fixes some strings not setup for translation correctly 94 * If a guest cannot access a forum, displays a login / register message instead of insufficient permissions error. 95 91 96 = 1.1.1 = 92 97 * Fixes bug where topic/post last reply is not updating after editing or deleting a post or topic and incorrect last post author name on the forum view. -
wp-bulletin-board/tags/1.1.2/wp-bb.php
r639235 r678864 1 1 <?php 2 2 3 /* 3 4 Plugin Name: WPBB 4 5 Plugin URI: http://wordpress.org/extend/plugins/wp-bulletin-board/ 5 6 Description: An easy to use Bulletin board for Wordpress with Facebook and Twitter integration. 6 Version: 1.1. 17 Version: 1.1.2 7 8 Author: Jay Carter 8 9 Author URI: http://codebycarter.com … … 25 26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 27 */ 27 28 error_reporting(E_ALL);29 28 30 29 global $wpdb; … … 433 432 434 433 // Main WPBB page 435 add_ menu_page('WPBB Overview', 'WPBB', 'manage_options', 'wpbb_admin', 'wpbb_admin_display', '', 27.7);434 add_object_page('WPBB Overview', 'WPBB', 'manage_options', 'wpbb_admin', 'wpbb_admin_display', ''); 436 435 437 436 // Create/Edit Category … … 474 473 if (!file_exists($template_directory.'/wpbb-template.php')) 475 474 { 476 // Check directory is writable 477 if (is_writable($template_directory)) 478 { 479 // Copys wp-bb template file to your current theme 480 $template_file_path = WPBB_DIR.'/wpbb-template.php'; 481 $move_template_file = copy($template_file_path, $template_directory.'/wpbb-template.php'); 482 if (!$move_template_file) 483 { 484 $move_template_file_failed = sprintf(__('Failed to move required wp-bb template file %s to theme directory %s. Please make sure both the file and directory exist or move the wp-bb template file to your current theme directory manually'), $template_file_path, $template_directory); 485 error_log($move_template_file_failed); 486 } 475 if (!is_writable($template_directory)) 476 { 477 $chmod = true; 478 // Try to chmod folder 479 chmod($template_directory, 0755); 487 480 } 488 else 489 { 490 // Is not writable and user should change permissions accordingly 491 $template_write_failed = sprintf(__('%s is not writable. Could not create required WPBB template file forum.php. Please change the folders permissions and visit your Wordpress site again or copy the file forum.php from your wp-bb plugin folder to your template folders directory manually.'), $template_directory); 492 error_log($template_write_failed); 481 $template_file_path = WPBB_DIR.'/wpbb-template.php'; 482 $move_template_file = copy($template_file_path, $template_directory.'/wpbb-template.php'); 483 if (!$move_template_file) 484 { 485 $move_template_file_failed = sprintf(__('Failed to move required wp-bb template file %s to theme directory %s. Please make sure both the file and directory exist or move the wp-bb template file to your current theme directory manually'), $template_file_path, $template_directory); 486 error_log($move_template_file_failed); 493 487 } 494 488 } -
wp-bulletin-board/trunk/php/wpbb-view-forum-topic.php
r637720 r678864 14 14 $view_permissions = wpbb_user_has_permission($user_id, $forum); 15 15 if ($view_permissions === false) { 16 wpbb_goback1('forum_topic_denied', NULL); 17 ?> 18 <div class="wpbb-message-failure"> 19 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 20 </div> 21 <?php 22 wpbb_exit(); 16 if (wpbb_is_user_logged_in()) { 17 wpbb_goback1('forum_topic_denied', NULL); 18 ?> 19 <div class="wpbb-message-failure"> 20 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 21 </div> 22 <?php 23 wpbb_exit(); 24 } 23 25 } else { 24 26 $read_permissions = wpbb_user_has_permission($user_id, $forum, 'read'); 25 27 if ($read_permissions === false) { 26 wpbb_goback1('forum_topic_denied', NULL); 27 ?> 28 <div class="wpbb-message-failure"> 29 <?php _e('You do not have the required permissions to read topics in this forum!', 'wp-bb'); ?> 30 </div> 31 <?php 32 wpbb_exit(); 28 if (wpbb_is_user_logged_in()) { 29 wpbb_goback1('forum_topic_denied', NULL); 30 ?> 31 <div class="wpbb-message-failure"> 32 <?php _e('You do not have the required permissions to read topics in this forum!', 'wp-bb'); ?> 33 </div> 34 <?php 35 wpbb_exit(); 36 } 33 37 } 34 38 } … … 118 122 ?> 119 123 <div class="wpbb-message-failure"> 120 <?php printf(__('You must wait %s seconds since your last post before creating another.' ), $post_cutoff); ?>124 <?php printf(__('You must wait %s seconds since your last post before creating another.', 'wp-bb'), $post_cutoff); ?> 121 125 </div> 122 126 <?php … … 244 248 </a> 245 249 <br /> <?php echo get_avatar($topic->author); ?> 246 <br /> <?php printf(__('Posts: %s' ), $user_posts); ?>250 <br /> <?php printf(__('Posts: %s', 'wp-bb'), $user_posts); ?> 247 251 </td> 248 252 <?php … … 254 258 </p> 255 259 <p class="wpbb-topic-and-post-content"> 256 <?php echo convert_smilies($topic->content); ?> 260 <?php 261 $content = apply_filters('the_content', $topic->content); 262 echo $content = str_replace(']]>', ']]>', $content); 263 ?> 257 264 </p> 258 265 <hr> … … 284 291 <a href='<?php echo add_query_arg(array('profile' => $post->author), wpbb_permalink()); ?>'><?php echo $author->display_name; ?></a> 285 292 <br /><?php echo get_avatar($post->author); ?> 286 <br /><?php printf(__('Posts: %s' ), $user_posts);293 <br /><?php printf(__('Posts: %s', 'wp-bb'), $user_posts); 287 294 } 288 295 ?> … … 293 300 </p> 294 301 <p class="wpbb-topic-and-post-content"> 295 <?php echo convert_smilies($post->text); ?> 302 <?php 303 $content = apply_filters('the_content', $post->text); 304 echo $content = str_replace(']]>', ']]>', $content); 305 ?> 296 306 </p> 297 307 <hr> -
wp-bulletin-board/trunk/php/wpbb-view-forum.php
r639235 r678864 10 10 $view_permissions = wpbb_user_has_permission($user_id, $forum); 11 11 if ($view_permissions === false) { 12 wpbb_goback1('forum-index', NULL); 13 ?> 14 <div class="wpbb-message-failure"> 15 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 16 </div> 17 <?php 18 wpbb_exit(); 12 if (wpbb_is_user_logged_in()) { 13 wpbb_goback1('forum-index', NULL); 14 ?> 15 <div class="wpbb-message-failure"> 16 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 17 </div> 18 <?php 19 wpbb_exit(); 20 } 19 21 } 20 22 … … 137 139 ?> 138 140 <table class="wpbb-table"> 139 <th><?php _e('Status' ); ?></th>140 <th><?php _e('Topic' ); ?></th>141 <th><?php _e('Author' ); ?></th>142 <th><?php _e('Posts' ); ?></th>143 <th><?php _e('Last Reply' ); ?></th>144 <th><?php _e('Action' ); ?></th>141 <th><?php _e('Status', 'wp-bb'); ?></th> 142 <th><?php _e('Topic', 'wp-bb'); ?></th> 143 <th><?php _e('Author', 'wp-bb'); ?></th> 144 <th><?php _e('Posts', 'wp-bb'); ?></th> 145 <th><?php _e('Last Reply', 'wp-bb'); ?></th> 146 <th><?php _e('Action', 'wp-bb'); ?></th> 145 147 <?php 146 148 foreach ($topics as $topic) { -
wp-bulletin-board/trunk/php/wpbb-view-subforum-topic.php
r639235 r678864 14 14 $view_permissions = wpbb_user_has_permission($user_id, $forum); 15 15 if ($view_permissions === false) { 16 wpbb_goback1('subforum_topic_denied', NULL); 17 ?> 18 <div class="wpbb-message-failure"> 19 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 20 </div> 21 <?php 22 wpbb_exit(); 16 if (wpbb_is_user_logged_in()) { 17 wpbb_goback1('subforum_topic_denied', NULL); 18 ?> 19 <div class="wpbb-message-failure"> 20 <?php _e('You do not have the required permissions to view this forum!', 'wp-bb'); ?> 21 </div> 22 <?php 23 wpbb_exit(); 24 } 23 25 } else { 24 26 // Check they can access the subforum, too … … 26 28 $view_permissions = wpbb_user_has_permission($user_id, $subforum); 27 29 if ($view_permissions === false) { 28 wpbb_goback1('subforum_topic_denied', NULL); 29 ?> 30 <div class="wpbb-message-failure"> 31 <?php _e('You do not have the required permissions to view topics in this subforum!', 'wp-bb'); ?> 32 </div> 33 <?php 34 wpbb_exit(); 30 if (wpbb_is_user_logged_in()) { 31 wpbb_goback1('subforum_topic_denied', NULL); 32 ?> 33 <div class="wpbb-message-failure"> 34 <?php _e('You do not have the required permissions to view topics in this subforum!', 'wp-bb'); ?> 35 </div> 36 <?php 37 wpbb_exit(); 38 } 35 39 } else { 36 40 // Check read permissions in subforum 37 41 $read_permissions = wpbb_user_has_permission($user_id, $subforum); 38 42 if ($read_permissions === false) { 39 wpbb_goback1('subforum_topic_denied', NULL); 40 ?> 41 <div class="wpbb-message-failure"> 42 <?php _e('You do not have the required permissions to read topics in this subforum', 'wp-bb'); ?> 43 </div> 44 <?php 45 wpbb_exit(); 43 if (wpbb_is_user_logged_in()) { 44 wpbb_goback1('subforum_topic_denied', NULL); 45 ?> 46 <div class="wpbb-message-failure"> 47 <?php _e('You do not have the required permissions to read topics in this subforum', 'wp-bb'); ?> 48 </div> 49 <?php 50 wpbb_exit(); 51 } 46 52 } 47 53 } … … 113 119 ?> 114 120 <div class="wpbb-message-failure"> 115 <?php printf(__('You must wait %s seconds since your last post before creating another.' ), $post_cutoff); ?>121 <?php printf(__('You must wait %s seconds since your last post before creating another.', 'wp-bb'), $post_cutoff); ?> 116 122 </div> 117 123 <?php … … 248 254 { 249 255 $user_posts = get_user_meta($topic->author, 'wpbb_posts', true); 250 printf(__('Posts: %s' ), $user_posts);256 printf(__('Posts: %s', 'wp-bb'), $user_posts); 251 257 } 252 258 ?> … … 257 263 </p> 258 264 <p class="wpbb-topic-and-post-content"> 259 <?php echo convert_smilies($topic->content); ?> 265 <?php 266 $content = apply_filters('the_content', $topic->content); 267 echo $content = str_replace(']]>', ']]>', $content); 268 ?> 260 269 </p> 261 270 <hr> … … 294 303 <br /> 295 304 <?php echo get_avatar($id); ?> 296 <br /> <?php if ($author) printf(__('Posts: %s' ), $user_posts); ?>305 <br /> <?php if ($author) printf(__('Posts: %s', 'wp-bb'), $user_posts); ?> 297 306 </td> 298 307 <td> … … 301 310 </p> 302 311 <p class="wpbb-topic-and-post-content"> 303 <?php echo convert_smilies($post->text); ?> 312 <?php 313 $content = apply_filters('the_content', $post->text); 314 echo $content = str_replace(']]>', ']]>', $content); 315 ?> 304 316 </p> 305 317 <hr> -
wp-bulletin-board/trunk/php/wpbb-view-subforum.php
r639235 r678864 13 13 $view_permissions = wpbb_user_has_permission($user_id, $forum); 14 14 if ($view_permissions === false) { 15 wpbb_goback1('subforum_denied', NULL); 16 ?> 17 <div class="wpbb-message-failure"> 18 <?php _e('You do not have the required permissions view this forum!', 'wp-bb'); ?> 19 </div> 20 <?php 21 wpbb_exit(); 15 if (wpbb_is_user_logged_in()) { 16 wpbb_goback1('subforum_denied', NULL); 17 ?> 18 <div class="wpbb-message-failure"> 19 <?php _e('You do not have the required permissions view this forum!', 'wp-bb'); ?> 20 </div> 21 <?php 22 wpbb_exit(); 23 } 22 24 } else { 23 25 $view_permissions = wpbb_user_has_permission($user_id, $subforum); 24 26 if ($view_permissions === false) { 25 wpbb_goback1('subforum_denied', NULL); 26 ?> 27 <div class="wpbb-message-failure"> 28 <?php _e('You do not have the required permissions to view this subforum!', 'wp-bb'); ?> 29 </div> 30 <?php 31 wpbb_exit(); 27 if (wpbb_is_user_logged_in()) { 28 wpbb_goback1('subforum_denied', NULL); 29 ?> 30 <div class="wpbb-message-failure"> 31 <?php _e('You do not have the required permissions to view this subforum!', 'wp-bb'); ?> 32 </div> 33 <?php 34 wpbb_exit(); 35 } 32 36 } 33 37 } … … 147 151 } 148 152 } 149 printf( "<a href='$link#%s'>$subforum_topic_last_reply by $last_post_author</a>", "wpbb-post-anchor$post_anchor_id");153 printf(__("<a href='$link#%s'>$subforum_topic_last_reply by $last_post_author</a>", 'wp-bb'), "wpbb-post-anchor$post_anchor_id"); 150 154 ?> 151 155 </td> -
wp-bulletin-board/trunk/readme.txt
r639235 r678864 1 1 === WP Bulletin Board === 2 2 Contributors: codebycarter 3 Donate link: http://codebycarter.x10.mx/wp/donate/4 3 Tags: forum, bulletin board, twitter, facebook, discussion, discussion board, messaging, private message, topic, post, pagination, profile, subforum, wpbb 5 4 Requires at least: 3.0 6 Tested up to: 3.5 7 Stable tag: 1.1. 15 Tested up to: 3.5.1 6 Stable tag: 1.1.2 8 7 License: GPLv2 or later 9 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 88 == Changelog == 90 89 90 = 1.1.2 = 91 * Fixes issue with theme integration 92 * Anything you can display or create in the WP dashboard editor will now be available in the WPBB editor, e.g. shortcodes, etc. 93 * Fixes some strings not setup for translation correctly 94 * If a guest cannot access a forum, displays a login / register message instead of insufficient permissions error. 95 91 96 = 1.1.1 = 92 97 * Fixes bug where topic/post last reply is not updating after editing or deleting a post or topic and incorrect last post author name on the forum view. -
wp-bulletin-board/trunk/wp-bb.php
r639235 r678864 1 1 <?php 2 2 3 /* 3 4 Plugin Name: WPBB 4 5 Plugin URI: http://wordpress.org/extend/plugins/wp-bulletin-board/ 5 6 Description: An easy to use Bulletin board for Wordpress with Facebook and Twitter integration. 6 Version: 1.1. 17 Version: 1.1.2 7 8 Author: Jay Carter 8 9 Author URI: http://codebycarter.com … … 25 26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 27 */ 27 28 error_reporting(E_ALL);29 28 30 29 global $wpdb; … … 433 432 434 433 // Main WPBB page 435 add_ menu_page('WPBB Overview', 'WPBB', 'manage_options', 'wpbb_admin', 'wpbb_admin_display', '', 27.7);434 add_object_page('WPBB Overview', 'WPBB', 'manage_options', 'wpbb_admin', 'wpbb_admin_display', ''); 436 435 437 436 // Create/Edit Category … … 474 473 if (!file_exists($template_directory.'/wpbb-template.php')) 475 474 { 476 // Check directory is writable 477 if (is_writable($template_directory)) 478 { 479 // Copys wp-bb template file to your current theme 480 $template_file_path = WPBB_DIR.'/wpbb-template.php'; 481 $move_template_file = copy($template_file_path, $template_directory.'/wpbb-template.php'); 482 if (!$move_template_file) 483 { 484 $move_template_file_failed = sprintf(__('Failed to move required wp-bb template file %s to theme directory %s. Please make sure both the file and directory exist or move the wp-bb template file to your current theme directory manually'), $template_file_path, $template_directory); 485 error_log($move_template_file_failed); 486 } 475 if (!is_writable($template_directory)) 476 { 477 $chmod = true; 478 // Try to chmod folder 479 chmod($template_directory, 0755); 487 480 } 488 else 489 { 490 // Is not writable and user should change permissions accordingly 491 $template_write_failed = sprintf(__('%s is not writable. Could not create required WPBB template file forum.php. Please change the folders permissions and visit your Wordpress site again or copy the file forum.php from your wp-bb plugin folder to your template folders directory manually.'), $template_directory); 492 error_log($template_write_failed); 481 $template_file_path = WPBB_DIR.'/wpbb-template.php'; 482 $move_template_file = copy($template_file_path, $template_directory.'/wpbb-template.php'); 483 if (!$move_template_file) 484 { 485 $move_template_file_failed = sprintf(__('Failed to move required wp-bb template file %s to theme directory %s. Please make sure both the file and directory exist or move the wp-bb template file to your current theme directory manually'), $template_file_path, $template_directory); 486 error_log($move_template_file_failed); 493 487 } 494 488 }
Note: See TracChangeset
for help on using the changeset viewer.