Skip to:
Content

BuddyPress.org

Ticket #2346: is_forum_enabled_forum_index.patch

File is_forum_enabled_forum_index.patch, 731 bytes (added by boonebgorges, 17 years ago)
  • bp-themes/bp-default/forums/index.php

     
    3838                                                        <label><?php _e( 'Post In Group Forum:', 'buddypress' ) ?></label>
    3939                                                        <select id="topic_group_id" name="topic_group_id">
    4040                                                                <?php while ( bp_groups() ) : bp_the_group(); ?>
    41                                                                         <?php if ( 'public' == bp_get_group_status() ) : ?>
     41                                                                        <?php if ( 'public' == bp_get_group_status() && bp_group_is_forum_enabled() ) : ?>
    4242                                                                                <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>
    4343                                                                        <?php endif; ?>
    4444                                                                <?php endwhile; ?>