Skip to:
Content

BuddyPress.org

Changeset 5184


Ignore:
Timestamp:
09/24/2011 02:59:19 AM (13 years ago)
Author:
boonebgorges
Message:

Don't let non-logged-in users see the New Topic and New Reply subnav items in group forums. Fixes #3610. Props r-a-y

Location:
trunk/bp-themes/bp-default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/forums/single/topic.php

    r4812 r5184  
    3434                        <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    3535                            <ul>
    36                                 <li>
    37                                     <a href="#post-topic-reply" class="show-hide-new"><?php _e( 'New Reply', 'buddypress' ) ?></a>
    38                                 </li>
     36                                <?php if ( is_user_logged_in() ) : ?>
     37                                    <li>
     38                                        <a href="#post-topic-reply" class="show-hide-new"><?php _e( 'New Reply', 'buddypress' ) ?></a>
     39                                    </li>
     40                                <?php endif; ?>
    3941
    4042                                <?php if ( bp_forums_has_directory() ) : ?>
  • trunk/bp-themes/bp-default/groups/single/forum.php

    r4803 r5184  
    1414        <ul>
    1515
    16             <li>
    17                 <a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ) ?></a>
    18             </li>
     16            <?php if ( is_user_logged_in() ) : ?>
     17
     18                <li>
     19                    <a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ) ?></a>
     20                </li>
     21
     22            <?php endif; ?>
    1923
    2024            <?php if ( bp_forums_has_directory() ) : ?>
  • trunk/bp-themes/bp-default/groups/single/forum/topic.php

    r5080 r5184  
    77        <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    88            <ul>
    9                 <li>
    10                     <a href="<?php bp_forum_topic_new_reply_link() ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ) ?></a>
    11                 </li>
     9                <?php if ( is_user_logged_in() ) : ?>
     10
     11                    <li>
     12                        <a href="<?php bp_forum_topic_new_reply_link() ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ) ?></a>
     13                    </li>
     14
     15                <?php endif; ?>
    1216
    1317                <?php if ( bp_forums_has_directory() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.