Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/25/2011 09:22:44 PM (14 years ago)
Author:
djpaul
Message:

Fix PHP notice and use groups' root slug for forum directory message

File:
1 edited

Legend:

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

    r4270 r4298  
    9090                <?php if ( is_user_logged_in() ) : ?>
    9191
    92                     <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
     92                    <?php if ( bp_is_active( 'groups' ) && bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
    9393
    9494                        <form action="" method="post" id="forum-topic-form" class="standard-form">
     
    138138                        </form><!-- #forum-topic-form -->
    139139
    140                     <?php else : ?>
     140                    <?php elseif ( bp_is_active( 'groups' ) ) : ?>
    141141
    142142                        <div id="message" class="info">
    143143
    144                             <p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p>
     144                            <p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( bp_get_groups_root_slug() . '/create/' ) ) ?></p>
    145145
    146146                        </div>
Note: See TracChangeset for help on using the changeset viewer.