Skip to:
Content

BuddyPress.org


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

File:
1 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() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.