<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][6827] trunk: Enables theme compat for legacy bbPress 1.x forum content</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://buddypress.trac.wordpress.org/changeset/6827">6827</a></dd>
<dt>Author</dt> <dd>boonebgorges</dd>
<dt>Date</dt> <dd>2013-03-01 21:34:55 +0000 (Fri, 01 Mar 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Enables theme compat for legacy bbPress 1.x forum content
- Don't exclude top-level forum directory page from wp_nav_menu() as long
as forums are correctly installed
- Introduces BP_Forums_Legacy_Theme_Compat
- Tweaks forum directory table styling
Fixes <a href="http://buddypress.trac.wordpress.org/ticket/4854">#4854</a>
Props imath</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpcorebpcorefiltersphp">trunk/bp-core/bp-core-filters.php</a></li>
<li><a href="#trunkbpforumsbpforumsscreensphp">trunk/bp-forums/bp-forums-screens.php</a></li>
<li><a href="#trunkbptemplatesbplegacybuddypressforumsindexphp">trunk/bp-templates/bp-legacy/buddypress/forums/index.php</a></li>
<li><a href="#trunkbptemplatesbplegacycssbuddypresscss">trunk/bp-templates/bp-legacy/css/buddypress.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpcorebpcorefiltersphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-filters.php (6826 => 6827)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-filters.php        2013-03-01 20:57:30 UTC (rev 6826)
+++ trunk/bp-core/bp-core-filters.php        2013-03-01 21:34:55 UTC (rev 6827)
</span><span class="lines">@@ -91,7 +91,7 @@
</span><span class="cx">         if ( !empty( $bp->pages->register ) )
</span><span class="cx">                 $pages[] = $bp->pages->register->id;
</span><span class="cx">
</span><del>-        if ( !empty( $bp->pages->forums ) )
</del><ins>+        if ( !empty( $bp->pages->forums ) && ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && bp_forums_has_directory() && !bp_forums_is_installed_correctly() ) ) )
</ins><span class="cx">                 $pages[] = $bp->pages->forums->id;
</span><span class="cx">
</span><span class="cx">         return apply_filters( 'bp_core_exclude_pages', $pages );
</span></span></pre></div>
<a id="trunkbpforumsbpforumsscreensphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums/bp-forums-screens.php (6826 => 6827)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums/bp-forums-screens.php        2013-03-01 20:57:30 UTC (rev 6826)
+++ trunk/bp-forums/bp-forums-screens.php        2013-03-01 21:34:55 UTC (rev 6827)
</span><span class="lines">@@ -118,3 +118,98 @@
</span><span class="cx">         bp_core_load_template( apply_filters( 'bp_forums_screen_single_topic', 'forums/single/topic' ) );
</span><span class="cx"> }
</span><span class="cx"> add_action( 'bp_screens', 'bp_forums_screen_single_topic' );
</span><ins>+
+
+/** Theme Compatability *******************************************************/
+
+/**
+ * The main theme compat class for legacy BuddyPress forums, as powered by bbPress 1.x
+ *
+ * This class sets up the necessary theme compatability actions to safely output
+ * old forum template parts to the_title and the_content areas of a theme.
+ *
+ * @since BuddyPress (1.7)
+ */
+class BP_Forum_Legacy_Theme_Compat {
+
+        /**
+         * Setup the old forums component theme compatibility
+         *
+         * @since BuddyPress (1.7)
+         */
+        public function __construct() {
+                add_action( 'bp_setup_theme_compat', array( $this, 'is_legacy_forum' ) );
+        }
+
+        /**
+         * Are we looking at something that needs old forum theme compatability?
+         *
+         * @since BuddyPress (1.7)
+         */
+        public function is_legacy_forum() {
+
+                // Bail if not looking at a group
+                if ( ! bp_is_forums_component() )
+                        return;
+
+                // forum Directory
+                if ( ( ! bp_current_action() || ( 'tag' == bp_current_action() && bp_action_variables() ) ) && ! bp_current_item() ) {
+
+                        if ( ! bp_forums_has_directory() )
+                                return false;
+
+                        if ( ! bp_forums_is_installed_correctly() ) {
+                                bp_core_add_message( __( 'The forums component has not been set up yet.', 'buddypress' ), 'error' );
+                                bp_core_redirect( bp_get_root_domain() );
+                        }
+
+                        bp_update_is_directory( true, 'forums' );
+
+                        do_action( 'bp_forums_directory_forums_setup' );
+
+                        add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'directory_dummy_post' ) );
+                        add_filter( 'bp_replace_the_content', array( $this, 'directory_content' ) );
+
+                }
+
+        }
+
+        /** Directory *************************************************************/
+
+        /**
+         * Update the global $post with directory data
+         *
+         * @since BuddyPress (1.7)
+         */
+        public function directory_dummy_post() {
+
+                // Title based on ability to create groups
+                if ( is_user_logged_in() ) {
+                        $title = __( 'Forums', 'buddypress' ) . '&nbsp;<a class="button show-hide-new bp-title-button" href="#new-topic" id="new-topic-button">' . __( 'New Topic', 'buddypress' ) . '</a>';
+                } else {
+                        $title = __( 'Forums', 'buddypress' );
+                }
+
+                bp_theme_compat_reset_post( array(
+                        'ID' => 0,
+                        'post_title' => $title,
+                        'post_author' => 0,
+                        'post_date' => 0,
+                        'post_content' => '',
+                        'post_type' => 'bp_forum',
+                        'post_status' => 'publish',
+                        'is_archive' => true,
+                        'comment_status' => 'closed'
+                ) );
+        }
+
+        /**
+         * Filter the_content with the old forum index template part
+         *
+         * @since BuddyPress (1.7)
+         */
+        public function directory_content() {
+                bp_buffer_template_part( 'forums/index' );
+        }
+}
+new BP_Forum_Legacy_Theme_Compat();
</ins></span></pre></div>
<a id="trunkbptemplatesbplegacybuddypressforumsindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-templates/bp-legacy/buddypress/forums/index.php (6826 => 6827)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-templates/bp-legacy/buddypress/forums/index.php        2013-03-01 20:57:30 UTC (rev 6826)
+++ trunk/bp-templates/bp-legacy/buddypress/forums/index.php        2013-03-01 21:34:55 UTC (rev 6827)
</span><span class="lines">@@ -1,136 +1,140 @@
</span><del>-<?php do_action( 'bp_before_directory_forums' ); ?>
</del><ins>+<div id="buddypress">
+        
+        <?php do_action( 'bp_before_directory_forums' ); ?>
</ins><span class="cx">
</span><del>-<form action="" method="post" id="forums-search-form" class="dir-form">
</del><ins>+        <form action="" method="post" id="forums-search-form" class="dir-form">
</ins><span class="cx">
</span><del>-        <?php do_action( 'bp_before_directory_forums_content' ); ?>
</del><ins>+                <?php do_action( 'bp_before_directory_forums_content' ); ?>
</ins><span class="cx">
</span><del>-        <div id="forums-dir-search" class="dir-search" role="search">
</del><ins>+                <div id="forums-dir-search" class="dir-search" role="search">
</ins><span class="cx">
</span><del>-                <?php bp_directory_forums_search_form(); ?>
</del><ins>+                        <?php bp_directory_forums_search_form(); ?>
</ins><span class="cx">
</span><del>-        </div>
-</form>
</del><ins>+                </div>
+        </form>
</ins><span class="cx">
</span><del>-<?php do_action( 'bp_before_topics' ); ?>
</del><ins>+        <?php do_action( 'bp_before_topics' ); ?>
</ins><span class="cx">
</span><del>-<form action="" method="post" id="forums-directory-form" class="dir-form">
</del><ins>+        <form action="" method="post" id="forums-directory-form" class="dir-form">
</ins><span class="cx">
</span><del>-        <div class="item-list-tabs" role="navigation">
-                <ul>
-                        <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>
</del><ins>+                <div class="item-list-tabs" role="navigation">
+                        <ul>
+                                <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>
</ins><span class="cx">
</span><del>-                        <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
</del><ins>+                                <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
</ins><span class="cx">
</span><del>-                                <li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics' ); ?>"><?php printf( __( 'My Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
</del><ins>+                                        <li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics' ); ?>"><?php printf( __( 'My Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
</ins><span class="cx">
</span><del>-                        <?php endif; ?>
</del><ins>+                                <?php endif; ?>
</ins><span class="cx">
</span><del>-                        <?php do_action( 'bp_forums_directory_group_types' ); ?>
</del><ins>+                                <?php do_action( 'bp_forums_directory_group_types' ); ?>
</ins><span class="cx">
</span><del>-                </ul>
-        </div>
</del><ins>+                        </ul>
+                </div>
</ins><span class="cx">
</span><del>-        <div class="item-list-tabs" id="subnav" role="navigation">
-                <ul>
</del><ins>+                <div class="item-list-tabs" id="subnav" role="navigation">
+                        <ul>
</ins><span class="cx">
</span><del>-                        <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
</del><ins>+                                <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
</ins><span class="cx">
</span><del>-                        <li id="forums-order-select" class="last filter">
</del><ins>+                                <li id="forums-order-select" class="last filter">
</ins><span class="cx">
</span><del>-                                <label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
-                                <select id="forums-order-by">
-                                        <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
-                                        <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
-                                        <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
</del><ins>+                                        <label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
+                                        <select id="forums-order-by">
+                                                <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
+                                                <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
+                                                <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
</ins><span class="cx">
</span><del>-                                        <?php do_action( 'bp_forums_directory_order_options' ); ?>
</del><ins>+                                                <?php do_action( 'bp_forums_directory_order_options' ); ?>
</ins><span class="cx">
</span><del>-                                </select>
-                        </li>
-                </ul>
-        </div>
</del><ins>+                                        </select>
+                                </li>
+                        </ul>
+                </div>
</ins><span class="cx">
</span><del>-        <div id="forums-dir-list" class="forums dir-list" role="main">
</del><ins>+                <div id="forums-dir-list" class="forums dir-list" role="main">
</ins><span class="cx">
</span><del>-                <?php bp_get_template_part( 'forums/forums-loop' ); ?>
</del><ins>+                        <?php bp_get_template_part( 'forums/forums-loop' ); ?>
</ins><span class="cx">
</span><del>-        </div>
</del><ins>+                </div>
</ins><span class="cx">
</span><del>-        <?php do_action( 'bp_directory_forums_content' ); ?>
</del><ins>+                <?php do_action( 'bp_directory_forums_content' ); ?>
</ins><span class="cx">
</span><del>-        <?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ); ?>
</del><ins>+                <?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ); ?>
</ins><span class="cx">
</span><del>-</form>
</del><ins>+        </form>
</ins><span class="cx">
</span><del>-<?php do_action( 'bp_after_directory_forums' ); ?>
</del><ins>+        <?php do_action( 'bp_after_directory_forums' ); ?>
</ins><span class="cx">
</span><del>-<?php do_action( 'bp_before_new_topic_form' ); ?>
</del><ins>+        <?php do_action( 'bp_before_new_topic_form' ); ?>
</ins><span class="cx">
</span><del>-<div id="new-topic-post">
</del><ins>+        <div id="new-topic-post">
</ins><span class="cx">
</span><del>-        <?php if ( is_user_logged_in() ) : ?>
</del><ins>+                <?php if ( is_user_logged_in() ) : ?>
</ins><span class="cx">
</span><del>-                <?php if ( bp_is_active( 'groups' ) && bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
</del><ins>+                        <?php if ( bp_is_active( 'groups' ) && bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
</ins><span class="cx">
</span><del>-                        <form action="" method="post" id="forum-topic-form" class="standard-form">
</del><ins>+                                <form action="" method="post" id="forum-topic-form" class="standard-form">
</ins><span class="cx">
</span><del>-                                <?php do_action( 'groups_forum_new_topic_before' ); ?>
</del><ins>+                                        <?php do_action( 'groups_forum_new_topic_before' ); ?>
</ins><span class="cx">
</span><del>-                                <a name="post-new"></a>
-                                <h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
</del><ins>+                                        <a name="post-new"></a>
+                                        <h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
</ins><span class="cx">
</span><del>-                                <?php do_action( 'template_notices' ); ?>
</del><ins>+                                        <?php do_action( 'template_notices' ); ?>
</ins><span class="cx">
</span><del>-                                <label><?php _e( 'Title:', 'buddypress' ); ?></label>
-                                <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
</del><ins>+                                        <label><?php _e( 'Title:', 'buddypress' ); ?></label>
+                                        <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
</ins><span class="cx">
</span><del>-                                <label><?php _e( 'Content:', 'buddypress' ); ?></label>
-                                <textarea name="topic_text" id="topic_text"></textarea>
</del><ins>+                                        <label><?php _e( 'Content:', 'buddypress' ); ?></label>
+                                        <textarea name="topic_text" id="topic_text"></textarea>
</ins><span class="cx">
</span><del>-                                <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
-                                <input type="text" name="topic_tags" id="topic_tags" value="" />
</del><ins>+                                        <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
+                                        <input type="text" name="topic_tags" id="topic_tags" value="" />
</ins><span class="cx">
</span><del>-                                <label><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label>
-                                <select id="topic_group_id" name="topic_group_id">
</del><ins>+                                        <label><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label>
+                                        <select id="topic_group_id" name="topic_group_id">
</ins><span class="cx">
</span><del>-                                        <option value=""><?php /* translators: no option picked in select box */ _e( '----', 'buddypress' ); ?></option>
</del><ins>+                                                <option value=""><?php /* translators: no option picked in select box */ _e( '----', 'buddypress' ); ?></option>
</ins><span class="cx">
</span><del>-                                        <?php while ( bp_groups() ) : bp_the_group(); ?>
</del><ins>+                                                <?php while ( bp_groups() ) : bp_the_group(); ?>
</ins><span class="cx">
</span><del>-                                                <?php if ( bp_group_is_forum_enabled() && ( bp_current_user_can( 'bp_moderate' ) || 'public' == bp_get_group_status() || bp_group_is_member() ) ) : ?>
</del><ins>+                                                        <?php if ( bp_group_is_forum_enabled() && ( bp_current_user_can( 'bp_moderate' ) || 'public' == bp_get_group_status() || bp_group_is_member() ) ) : ?>
</ins><span class="cx">
</span><del>-                                                        <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
</del><ins>+                                                                <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
</ins><span class="cx">
</span><del>-                                                <?php endif; ?>
</del><ins>+                                                        <?php endif; ?>
</ins><span class="cx">
</span><del>-                                        <?php endwhile; ?>
</del><ins>+                                                <?php endwhile; ?>
</ins><span class="cx">
</span><del>-                                </select><!-- #topic_group_id -->
</del><ins>+                                        </select><!-- #topic_group_id -->
</ins><span class="cx">
</span><del>-                                <?php do_action( 'groups_forum_new_topic_after' ); ?>
</del><ins>+                                        <?php do_action( 'groups_forum_new_topic_after' ); ?>
</ins><span class="cx">
</span><del>-                                <div class="submit">
-                                        <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" />
-                                        <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ); ?>" />
-                                </div>
</del><ins>+                                        <div class="submit">
+                                                <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" />
+                                                <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ); ?>" />
+                                        </div>
</ins><span class="cx">
</span><del>-                                <?php wp_nonce_field( 'bp_forums_new_topic' ); ?>
</del><ins>+                                        <?php wp_nonce_field( 'bp_forums_new_topic' ); ?>
</ins><span class="cx">
</span><del>-                        </form><!-- #forum-topic-form -->
</del><ins>+                                </form><!-- #forum-topic-form -->
</ins><span class="cx">
</span><del>-                <?php elseif ( bp_is_active( 'groups' ) ) : ?>
</del><ins>+                        <?php elseif ( bp_is_active( 'groups' ) ) : ?>
</ins><span class="cx">
</span><del>-                        <div id="message" class="info">
</del><ins>+                                <div id="message" class="info">
</ins><span class="cx">
</span><del>-                                <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>
</del><ins>+                                        <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>
</ins><span class="cx">
</span><del>-                        </div>
</del><ins>+                                </div>
</ins><span class="cx">
</span><ins>+                        <?php endif; ?>
+
</ins><span class="cx">                 <?php endif; ?>
</span><ins>+        </div><!-- #new-topic-post -->
</ins><span class="cx">
</span><del>-        <?php endif; ?>
-</div><!-- #new-topic-post -->
</del><ins>+        <?php do_action( 'bp_after_new_topic_form' ); ?>
</ins><span class="cx">
</span><del>-<?php do_action( 'bp_after_new_topic_form' ); ?>
-
-<?php do_action( 'bp_after_directory_forums_content' ); ?>
</del><span class="cx">\ No newline at end of file
</span><ins>+        <?php do_action( 'bp_after_directory_forums_content' ); ?>
+        
+</div>
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbptemplatesbplegacycssbuddypresscss"></a>
<div class="modfile"><h4>Modified: trunk/bp-templates/bp-legacy/css/buddypress.css (6826 => 6827)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-templates/bp-legacy/css/buddypress.css        2013-03-01 20:57:30 UTC (rev 6826)
+++ trunk/bp-templates/bp-legacy/css/buddypress.css        2013-03-01 21:34:55 UTC (rev 6827)
</span><span class="lines">@@ -941,6 +941,7 @@
</span><span class="cx"> #buddypress table.forum {
</span><span class="cx">         margin: 0;
</span><span class="cx">         width: auto;
</span><ins>+        clear: both;
</ins><span class="cx"> }
</span><span class="cx"> #buddypress table.forum tr.sticky td {
</span><span class="cx">         font-size: 110%;
</span></span></pre>
</div>
</div>
</body>
</html>