Plugin Directory

Changeset 678864


Ignore:
Timestamp:
03/09/2013 11:02:28 PM (13 years ago)
Author:
codebycarter
Message:

tagging version 1.1.2

Location:
wp-bulletin-board
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-bulletin-board/tags/1.1.2/php/wpbb-view-forum-topic.php

    r637720 r678864  
    1414    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1515    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        }
    2325    } else {
    2426        $read_permissions = wpbb_user_has_permission($user_id, $forum, 'read');
    2527        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            }
    3337        }
    3438    }
     
    118122            ?>
    119123            <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); ?>
    121125            </div>
    122126            <?php
     
    244248                                </a>
    245249                                <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); ?>
    247251                            </td>
    248252                            <?php
     
    254258                            </p>
    255259                            <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(']]>', ']]&gt;', $content);
     263                                ?>
    257264                            </p>
    258265                            <hr>
     
    284291                                <a href='<?php echo add_query_arg(array('profile' => $post->author), wpbb_permalink()); ?>'><?php echo $author->display_name; ?></a>
    285292                                <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);
    287294                            }
    288295                            ?>
     
    293300                            </p>
    294301                            <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(']]>', ']]&gt;', $content);
     305                                ?>
    296306                            </p>
    297307                            <hr>
  • wp-bulletin-board/tags/1.1.2/php/wpbb-view-forum.php

    r639235 r678864  
    1010    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1111    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        }
    1921    }
    2022
     
    137139        ?>
    138140        <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>
    145147            <?php
    146148            foreach ($topics as $topic) {
  • wp-bulletin-board/tags/1.1.2/php/wpbb-view-subforum-topic.php

    r639235 r678864  
    1414    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1515    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        }
    2325    } else {
    2426        // Check they can access the subforum, too
     
    2628        $view_permissions = wpbb_user_has_permission($user_id, $subforum);
    2729        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            }
    3539        } else {
    3640            // Check read permissions in subforum
    3741            $read_permissions = wpbb_user_has_permission($user_id, $subforum);
    3842            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                }
    4652            }
    4753        }
     
    113119            ?>
    114120            <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); ?>
    116122            </div>
    117123            <?php
     
    248254                            {
    249255                                $user_posts = get_user_meta($topic->author, 'wpbb_posts', true);
    250                                 printf(__('Posts: %s'), $user_posts);
     256                                printf(__('Posts: %s', 'wp-bb'), $user_posts);
    251257                            }
    252258                            ?>
     
    257263                            </p>
    258264                            <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(']]>', ']]&gt;', $content);
     268                                ?>
    260269                            </p>
    261270                            <hr>
     
    294303                                <br />
    295304                                <?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); ?>
    297306                            </td>
    298307                            <td>
     
    301310                                </p>
    302311                                <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(']]>', ']]&gt;', $content);
     315                                    ?>
    304316                                </p>
    305317                                <hr>
  • wp-bulletin-board/tags/1.1.2/php/wpbb-view-subforum.php

    r639235 r678864  
    1313    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1414    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        }
    2224    } else {
    2325        $view_permissions = wpbb_user_has_permission($user_id, $subforum);
    2426        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            }
    3236        }
    3337    }
     
    147151                        }
    148152                    }
    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");
    150154                    ?>
    151155                </td>
  • wp-bulletin-board/tags/1.1.2/readme.txt

    r639235 r678864  
    11=== WP Bulletin Board ===
    22Contributors: codebycarter
    3 Donate link: http://codebycarter.x10.mx/wp/donate/
    43Tags: forum, bulletin board, twitter, facebook, discussion, discussion board, messaging, private message, topic, post, pagination, profile, subforum, wpbb
    54Requires at least: 3.0
    6 Tested up to: 3.5
    7 Stable tag: 1.1.1
     5Tested up to: 3.5.1
     6Stable tag: 1.1.2
    87License: GPLv2 or later
    98License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8988== Changelog ==
    9089
     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
    9196= 1.1.1 =
    9297* 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  
    11<?php
     2
    23/*
    34    Plugin Name: WPBB
    45    Plugin URI: http://wordpress.org/extend/plugins/wp-bulletin-board/
    56    Description: An easy to use Bulletin board for Wordpress with Facebook and Twitter integration.
    6     Version: 1.1.1
     7    Version: 1.1.2
    78    Author: Jay Carter
    89    Author URI: http://codebycarter.com
     
    2526    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2627*/
    27 
    28 error_reporting(E_ALL);
    2928
    3029global $wpdb;
     
    433432
    434433        // 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', '');
    436435   
    437436        // Create/Edit Category
     
    474473        if (!file_exists($template_directory.'/wpbb-template.php'))
    475474        {
    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);
    487480            }
    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);
    493487            }
    494488        }
  • wp-bulletin-board/trunk/php/wpbb-view-forum-topic.php

    r637720 r678864  
    1414    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1515    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        }
    2325    } else {
    2426        $read_permissions = wpbb_user_has_permission($user_id, $forum, 'read');
    2527        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            }
    3337        }
    3438    }
     
    118122            ?>
    119123            <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); ?>
    121125            </div>
    122126            <?php
     
    244248                                </a>
    245249                                <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); ?>
    247251                            </td>
    248252                            <?php
     
    254258                            </p>
    255259                            <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(']]>', ']]&gt;', $content);
     263                                ?>
    257264                            </p>
    258265                            <hr>
     
    284291                                <a href='<?php echo add_query_arg(array('profile' => $post->author), wpbb_permalink()); ?>'><?php echo $author->display_name; ?></a>
    285292                                <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);
    287294                            }
    288295                            ?>
     
    293300                            </p>
    294301                            <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(']]>', ']]&gt;', $content);
     305                                ?>
    296306                            </p>
    297307                            <hr>
  • wp-bulletin-board/trunk/php/wpbb-view-forum.php

    r639235 r678864  
    1010    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1111    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        }
    1921    }
    2022
     
    137139        ?>
    138140        <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>
    145147            <?php
    146148            foreach ($topics as $topic) {
  • wp-bulletin-board/trunk/php/wpbb-view-subforum-topic.php

    r639235 r678864  
    1414    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1515    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        }
    2325    } else {
    2426        // Check they can access the subforum, too
     
    2628        $view_permissions = wpbb_user_has_permission($user_id, $subforum);
    2729        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            }
    3539        } else {
    3640            // Check read permissions in subforum
    3741            $read_permissions = wpbb_user_has_permission($user_id, $subforum);
    3842            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                }
    4652            }
    4753        }
     
    113119            ?>
    114120            <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); ?>
    116122            </div>
    117123            <?php
     
    248254                            {
    249255                                $user_posts = get_user_meta($topic->author, 'wpbb_posts', true);
    250                                 printf(__('Posts: %s'), $user_posts);
     256                                printf(__('Posts: %s', 'wp-bb'), $user_posts);
    251257                            }
    252258                            ?>
     
    257263                            </p>
    258264                            <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(']]>', ']]&gt;', $content);
     268                                ?>
    260269                            </p>
    261270                            <hr>
     
    294303                                <br />
    295304                                <?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); ?>
    297306                            </td>
    298307                            <td>
     
    301310                                </p>
    302311                                <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(']]>', ']]&gt;', $content);
     315                                    ?>
    304316                                </p>
    305317                                <hr>
  • wp-bulletin-board/trunk/php/wpbb-view-subforum.php

    r639235 r678864  
    1313    $view_permissions = wpbb_user_has_permission($user_id, $forum);
    1414    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        }
    2224    } else {
    2325        $view_permissions = wpbb_user_has_permission($user_id, $subforum);
    2426        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            }
    3236        }
    3337    }
     
    147151                        }
    148152                    }
    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");
    150154                    ?>
    151155                </td>
  • wp-bulletin-board/trunk/readme.txt

    r639235 r678864  
    11=== WP Bulletin Board ===
    22Contributors: codebycarter
    3 Donate link: http://codebycarter.x10.mx/wp/donate/
    43Tags: forum, bulletin board, twitter, facebook, discussion, discussion board, messaging, private message, topic, post, pagination, profile, subforum, wpbb
    54Requires at least: 3.0
    6 Tested up to: 3.5
    7 Stable tag: 1.1.1
     5Tested up to: 3.5.1
     6Stable tag: 1.1.2
    87License: GPLv2 or later
    98License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8988== Changelog ==
    9089
     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
    9196= 1.1.1 =
    9297* 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  
    11<?php
     2
    23/*
    34    Plugin Name: WPBB
    45    Plugin URI: http://wordpress.org/extend/plugins/wp-bulletin-board/
    56    Description: An easy to use Bulletin board for Wordpress with Facebook and Twitter integration.
    6     Version: 1.1.1
     7    Version: 1.1.2
    78    Author: Jay Carter
    89    Author URI: http://codebycarter.com
     
    2526    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2627*/
    27 
    28 error_reporting(E_ALL);
    2928
    3029global $wpdb;
     
    433432
    434433        // 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', '');
    436435   
    437436        // Create/Edit Category
     
    474473        if (!file_exists($template_directory.'/wpbb-template.php'))
    475474        {
    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);
    487480            }
    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);
    493487            }
    494488        }
Note: See TracChangeset for help on using the changeset viewer.