<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[BuddyPress] [2155] trunk:
Added update post box to site wide activity widget for logged in users.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>2155</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-11-29 16:11:37 +0000 (Sun, 29 Nov 2009)</dd>
</dl>
<h3>Log Message</h3>
<pre>Added update post box to site wide activity widget for logged in users.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivitywidgetsphp">trunk/bp-activity/bp-activity-widgets.php</a></li>
<li><a href="#trunkbpactivityjswidgetactivityjs">trunk/bp-activity/js/widget-activity.js</a></li>
<li><a href="#trunkbpthemesbpdefault_inccssscreencss">trunk/bp-themes/bp-default/_inc/css/screen.css</a></li>
<li><a href="#trunkbpthemesbpsnparentactivityjustmephp">trunk/bp-themes/bp-sn-parent/activity/just-me.php</a></li>
<li><a href="#trunkbpthemesbpsnparentgroupssinglehomephp">trunk/bp-themes/bp-sn-parent/groups/single/home.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivitywidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-widgets.php (2154 => 2155)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-widgets.php        2009-11-29 14:11:11 UTC (rev 2154)
+++ trunk/bp-activity/bp-activity-widgets.php        2009-11-29 16:11:37 UTC (rev 2155)
</span><span class="lines">@@ -26,39 +26,86 @@
</span><span class="cx">                          <a class="rss-image" href="' . bp_get_sitewide_activity_feed_link() . '" title="' . __( 'Site Wide Activity RSS Feed', 'buddypress' ) . '">' . __( '[RSS]', 'buddypress' ) . '</a>'
</span><span class="cx">                  . $after_title; ?>
</span><span class="cx">
</span><del>-        <?php if ( is_user_logged_in() ) : ?>
-        <div class="item-list-tabs">
-                <ul>
-                        <li class="selected" id="activity-all"><a href="<?php bp_root_domain() ?>"><?php _e( 'All Members', 'buddypress' ) ?></a></li>
-                        <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-friends/' ?>"><?php _e( 'My Friends', 'buddypress') ?></a></li>
-                        <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-groups/' ?>"><?php _e( 'My Groups', 'buddypress') ?></a></li>
</del><ins>+                <?php if ( is_user_logged_in() ) : ?>
+                <form action="" method="post" id="whats-new-form" name="whats-new-form">
+                        <div id="whats-new-avatar">
+                                <?php bp_loggedin_user_avatar('width=40&height=40') ?>
+                                <span class="loading"></span>
+                        </div>
</ins><span class="cx">
</span><del>-                        <?php do_action( 'bp_activity_types' ) ?>
</del><ins>+                        <h5>
+                                <?php
+                                        $fullname = (array)explode( ' ', $bp->loggedin_user->fullname );
+                                        printf( __( "What's new %s?", 'buddypress' ), $fullname[0] )
+                                ?>
+                        </h5>
</ins><span class="cx">
</span><del>-                        <li id="activity-filter-select">
-                                <select>
-                                        <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option>
-                                        <option value="new_wire_post"><?php _e( 'Updates Only', 'buddypress' ) ?></option>
-                                        <option value="new_forum_post,new_forum_topic"><?php _e( 'Group Forum Activity Only', 'buddypress' ) ?></option>
-                                        <option value="new_blog_post,new_blog_comment"><?php _e( 'Blog Activity Only', 'buddypress' ) ?></option>
</del><ins>+                        <div id="whats-new-content">
+                                <div id="whats-new-textarea">
+                                        <textarea name="whats-new" id="whats-new" value="" /></textarea>
+                                </div>
</ins><span class="cx">
</span><del>-                                        <?php do_action( 'bp_activity_filter_options' ) ?>
-                                </select>
-                        </li>
-                </ul>
-        </div>
-        <?php endif; ?>
</del><ins>+                                <div id="whats-new-options">
+                                        <div id="whats-new-submit">
+                                                <span class="ajax-loader"></span> &nbsp;
+                                                <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Update', 'callisto' ) ?>" />
+                                        </div>
</ins><span class="cx">
</span><del>-        <div class="activity">
-                <?php // The loop will be loaded here via AJAX on page load to retain settings. ?>
-        </div>
</del><ins>+                                        <div id="whats-new-post-in-box">
+                                                <?php _e( 'Post in', 'callisto' ) ?>:
</ins><span class="cx">
</span><del>-        <form action="" name="activity-widget-form" id="activity-widget-form" method="post">
-                <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?>
-                <input type="hidden" id="aw-querystring" name="aw-querystring" value="" />
-                <input type="hidden" id="aw-oldestpage" name="aw-oldestpage" value="1" />
-        </div>
</del><ins>+                                                <select id="whats-new-post-in" name="whats-new-post-in">
+                                                        <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ) ?></option>
+                                                        <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical' ) ) : while ( bp_groups() ) : bp_the_group(); ?>
+                                                                <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>
+                                                        <?php endwhile; endif; ?>
+                                                </select>
+                                        </div>
+                                </div>
</ins><span class="cx">
</span><ins>+                                <div class="clear"></div>
+
+                        </div>
+
+                        <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
+                </form>
+                <?php endif; ?>
+
+                <div class="item-list-tabs">
+                        <ul>
+                                <li class="selected" id="activity-all"><a href="<?php bp_root_domain() ?>"><?php _e( 'All Members', 'buddypress' ) ?></a></li>
+
+                                <?php if ( is_user_logged_in() ) : ?>
+                                        <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-friends/' ?>"><?php _e( 'My Friends', 'buddypress') ?></a></li>
+                                        <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-groups/' ?>"><?php _e( 'My Groups', 'buddypress') ?></a></li>
+                                <?php endif; ?>
+
+                                <?php do_action( 'bp_activity_types' ) ?>
+
+                                <li id="activity-filter-select">
+                                        <select>
+                                                <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option>
+                                                <option value="new_wire_post"><?php _e( 'Updates Only', 'buddypress' ) ?></option>
+                                                <option value="new_forum_post,new_forum_topic"><?php _e( 'Group Forum Activity Only', 'buddypress' ) ?></option>
+                                                <option value="new_blog_post,new_blog_comment"><?php _e( 'Blog Activity Only', 'buddypress' ) ?></option>
+
+                                                <?php do_action( 'bp_activity_filter_options' ) ?>
+                                        </select>
+                                </li>
+                        </ul>
+                </div>
+
+
+                <div class="activity">
+                        <?php // The loop will be loaded here via AJAX on page load to retain settings. ?>
+                </div>
+
+                <form action="" name="activity-widget-form" id="activity-widget-form" method="post">
+                        <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?>
+                        <input type="hidden" id="aw-querystring" name="aw-querystring" value="" />
+                        <input type="hidden" id="aw-oldestpage" name="aw-oldestpage" value="1" />
+                </div>
+
</ins><span class="cx">         <?php echo $after_widget; ?>
</span><span class="cx">         <?php
</span><span class="cx">         }
</span><span class="lines">@@ -144,7 +191,9 @@
</span><span class="cx">                                         <form action="" method="post" name="activity-comment-form" id="ac-form-<?php bp_activity_id() ?>" class="ac-form">
</span><span class="cx">                                                 <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=25&height=25' ) ?></div>
</span><span class="cx">                                                 <div class="ac-reply-content">
</span><del>-                                                        <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac-input-<?php bp_activity_id() ?>"></textarea>
</del><ins>+                                                        <div class="ac-textarea">
+                                                                <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac-input-<?php bp_activity_id() ?>"></textarea>
+                                                        </div>
</ins><span class="cx">                                                         <input type="submit" name="ac-form-submit" value="<?php _e( 'Post', 'buddypress' ) ?> &rarr;" />
</span><span class="cx">                                                 </div>
</span><span class="cx">                                                 <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ) ?>
</span></span></pre></div>
<a id="trunkbpactivityjswidgetactivityjs"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/js/widget-activity.js (2154 => 2155)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/js/widget-activity.js        2009-11-29 14:11:11 UTC (rev 2154)
+++ trunk/bp-activity/js/widget-activity.js        2009-11-29 16:11:37 UTC (rev 2155)
</span><span class="lines">@@ -4,6 +4,62 @@
</span><span class="cx">         if ( j('div.widget_bp_activity_widget').length )
</span><span class="cx">                 bp_activity_widget_post( j.cookie('bp_atype'), j.cookie('bp_afilter') );
</span><span class="cx">
</span><ins>+        /* New posts */
+        j("input#aw-whats-new-submit").click( function() {
+                var button = j(this);
+                var form = button.parent().parent().parent().parent();
+
+                form.children().each( function() {
+                        if ( j.nodeName(this, "textarea") || j.nodeName(this, "input") )
+                                j(this).attr( 'disabled', 'disabled' );
+                });
+
+                j( 'form#' + form.attr('id') + ' span.ajax-loader' ).show();
+
+                /* Remove any errors */
+                j('div.error').remove();
+                button.attr('disabled','disabled');
+
+                j.post( ajaxurl, {
+                        action: 'post_update',
+                        'cookie': encodeURIComponent(document.cookie),
+                        '_wpnonce_post_update': j("input#_wpnonce_post_update").val(),
+                        'content': j("textarea#whats-new").val(),
+                        'group': j("#whats-new-post-in").val()
+                },
+                function(response)
+                {
+                        j( 'form#' + form.attr('id') + ' span.ajax-loader' ).hide();
+
+                        form.children().each( function() {
+                                if ( j.nodeName(this, "textarea") || j.nodeName(this, "input") )
+                                        j(this).attr( 'disabled', '' );
+                        });
+
+                        /* Check for errors and append if found. */
+                        if ( response[0] + response[1] == '-1' ) {
+                                form.prepend( response.substr( 2, response.length ) );
+                                j( 'form#' + form.attr('id') + ' div.error').hide().fadeIn( 200 );
+                                button.attr("disabled", '');
+                        } else {
+                                if ( 0 == j("ul.activity-list").length ) {
+                                        j("div.error").slideUp(100).remove();
+                                        j("div.activity").append( '<ul id="site-wide-stream" class="activity-list item-list">' );
+                                }
+
+                                j("ul.activity-list").prepend(response);
+                                j("li.new-update").hide().slideDown( 300 );
+                                j("li.new-update").removeClass( 'new-update' );
+                                j("textarea#whats-new").val('');
+
+                                /* Re-enable the submit button after 8 seconds. */
+                                setTimeout( function() { button.attr("disabled", ''); }, 8000 );
+                        }
+                });
+
+                return false;
+        });
+
</ins><span class="cx">         /* List tabs event delegation */
</span><span class="cx">         j('div.item-list-tabs').click( function(event) {
</span><span class="cx">                 var target = j(event.target).parent();
</span><span class="lines">@@ -39,6 +95,7 @@
</span><span class="cx">                 /* Load more updates at the end of the page */
</span><span class="cx">                 if ( target.attr('class') == 'load-more' ) {
</span><span class="cx">                         j("li.load-more span.ajax-loader").show();
</span><ins>+
</ins><span class="cx">                         var oldest_page = ( j("input#aw-oldestpage").val() * 1 ) + 1;
</span><span class="cx">
</span><span class="cx">                         j.post( ajaxurl, {
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_inccssscreencss"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/css/screen.css (2154 => 2155)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/css/screen.css        2009-11-29 14:11:11 UTC (rev 2154)
+++ trunk/bp-themes/bp-default/_inc/css/screen.css        2009-11-29 16:11:37 UTC (rev 2155)
</span><span class="lines">@@ -1444,6 +1444,11 @@
</span><span class="cx">         padding-left: 15px;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+.widget_bp_activity_widget {
+        float: left;
+        width: 100%;
+}
+
</ins><span class="cx"> .widget_bp_activity_widget span.time-since {
</span><span class="cx">         font-size: 0.9em;
</span><span class="cx"> }
</span><span class="lines">@@ -1574,17 +1579,27 @@
</span><span class="cx">                                 background-repeat: no-repeat;
</span><span class="cx">                         }
</span><span class="cx">
</span><del>-                        div.activity-comments form textarea {
-                                width: 93%;
-                                font-family: inherit;
-                                font-size: 0.9em;
-                                color: #555;
</del><ins>+                        div.activity-comments form .ac-textarea {
</ins><span class="cx">                                 padding: 8px;
</span><del>-                                height: 60px;
</del><ins>+                                border: 1px inset #ccc;
+                                background: #fff;
+                                margin-bottom: 10px;
+                                -moz-border-radius: 3px;
+                                -webkit-border-radius: 3px;
+                                border-radius: 3px;
</ins><span class="cx">                         }
</span><del>-                                div.activity-comments form input {
-                                        margin-top: 5px;
</del><ins>+                                div.activity-comments form textarea {
+                                        width: 100%;
+                                        font-family: inherit;
+                                        font-size: 0.9em;
+                                        color: #555;
+                                        height: 60px;
+                                        border: none;
+                                        padding: 0;
</ins><span class="cx">                                 }
</span><ins>+                                        div.activity-comments form input {
+                                                margin-top: 5px;
+                                        }
</ins><span class="cx">
</span><span class="cx">                         div.activity-comments form div.ac-reply-avatar {
</span><span class="cx">                                 float: left;
</span><span class="lines">@@ -1605,6 +1620,10 @@
</span><span class="cx">         padding: 15px;
</span><span class="cx">         margin: 10px 0 20px 0;
</span><span class="cx"> }
</span><ins>+        .widget_bp_activity_widget form#whats-new-form {
+                margin-bottom: 5px;
+        }
+
</ins><span class="cx">         form#whats-new-form h5 {
</span><span class="cx">                 margin: 0;
</span><span class="cx">                 font-weight: normal;
</span><span class="lines">@@ -1623,25 +1642,33 @@
</span><span class="cx">                 padding-left: 22px;
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        form#whats-new-form #whats-new-textarea {
+                padding: 8px;
+                border: 1px inset #ccc;
+                background: #fff;
+                margin-bottom: 10px;
+                -moz-border-radius: 3px;
+                -webkit-border-radius: 3px;
+                border-radius: 3px;
+        }
</ins><span class="cx">         form#whats-new-form textarea {
</span><del>-                width: 96.5%;
</del><ins>+                width: 100%;
</ins><span class="cx">                 height: 60px;
</span><del>-                padding: 10px;
-                font-size: 1.2em;
-                font-family: Arial, tahoma, verdana, sans-serif;
</del><ins>+                font-size: 1.1em;
+                font-family: inherit;
</ins><span class="cx">                 color: #555;
</span><del>-                margin-bottom: 10px;
</del><ins>+                border: none;
+                margin: 0;
+                padding: 0;
</ins><span class="cx">         }
</span><span class="cx">
</span><del>-        form#whats-new-form #whats-new-latest {
-                float: left;
-                width: 35%;
-                font-size: 0.9em;
-                color: #888;
</del><ins>+        form#whats-new-form #whats-new-options select {
+                max-width: 150px;
</ins><span class="cx">         }
</span><span class="cx">
</span><del>-        form#whats-new-form #whats-new-options {
</del><ins>+        form#whats-new-form #whats-new-submit {
</ins><span class="cx">                 float: right;
</span><ins>+                margin: 0;
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx"> /**** BLOGS *****************/
</span></span></pre></div>
<a id="trunkbpthemesbpsnparentactivityjustmephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-parent/activity/just-me.php (2154 => 2155)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-parent/activity/just-me.php        2009-11-29 14:11:11 UTC (rev 2154)
+++ trunk/bp-themes/bp-sn-parent/activity/just-me.php        2009-11-29 16:11:37 UTC (rev 2155)
</span><span class="lines">@@ -36,15 +36,14 @@
</span><span class="cx">                                                 <h5><?php printf( __( "What's new %s?", 'buddypress' ), bp_dtheme_firstname() ) ?></h5>
</span><span class="cx">
</span><span class="cx">                                                 <div id="whats-new-content">
</span><del>-                                                        <textarea name="whats-new" id="whats-new" value="" /></textarea>
</del><ins>+                                                        <div id="whats-new-textarea">
+                                                                <textarea name="whats-new" id="whats-new" value="" /></textarea>
+                                                        </div>
</ins><span class="cx">
</span><del>-                                                        <div id="whats-new-options">
</del><span class="cx">                                                                 <div id="whats-new-submit">
</span><del>-                                                                        <span class="ajax-loader"></span> &nbsp;
</del><ins>+                                                                        <span class="ajax-loader"></span>
</ins><span class="cx">                                                                         <input type="submit" name="whats-new-submit" id="whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ) ?>" />
</span><span class="cx">                                                                 </div>
</span><del>-                                                        </div>
-
</del><span class="cx">                                                 </div>
</span><span class="cx">
</span><span class="cx">                                                 <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
</span><span class="lines">@@ -87,7 +86,9 @@
</span><span class="cx">                                                                                 <form action="" method="post" name="activity-comment-form" id="ac-form-<?php bp_activity_id() ?>" class="ac-form">
</span><span class="cx">                                                                                         <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=25&height=25' ) ?></div>
</span><span class="cx">                                                                                         <div class="ac-reply-content">
</span><del>-                                                                                                <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac-input-<?php bp_activity_id() ?>"></textarea>
</del><ins>+                                                                                                <div class="ac-textarea">
+                                                                                                        <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac-input-<?php bp_activity_id() ?>"></textarea>
+                                                                                                </div>
</ins><span class="cx">                                                                                                 <input type="submit" name="ac-form-submit" value="<?php _e( 'Post', 'buddypress' ) ?> &rarr;" />
</span><span class="cx">                                                                                         </div>
</span><span class="cx">                                                                                         <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ) ?>
</span></span></pre></div>
<a id="trunkbpthemesbpsnparentgroupssinglehomephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-parent/groups/single/home.php (2154 => 2155)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-parent/groups/single/home.php        2009-11-29 14:11:11 UTC (rev 2154)
+++ trunk/bp-themes/bp-sn-parent/groups/single/home.php        2009-11-29 16:11:37 UTC (rev 2155)
</span><span class="lines">@@ -69,13 +69,13 @@
</span><span class="cx">                                                                 <h5><?php printf( __( "What's new in %s?", 'buddypress' ), bp_get_group_name() ) ?></h5>
</span><span class="cx">
</span><span class="cx">                                                                 <div id="whats-new-content">
</span><del>-                                                                        <textarea name="whats-new" id="whats-new" value="" /></textarea>
</del><ins>+                                                                        <div id="whats-new-textarea">
+                                                                                <textarea name="whats-new" id="whats-new" value="" /></textarea>
+                                                                        </div>
</ins><span class="cx">
</span><del>-                                                                        <div id="whats-new-options">
-                                                                                <div id="whats-new-submit">
-                                                                                        <span class="ajax-loader"></span> &nbsp;
-                                                                                        <input type="submit" name="whats-new-submit" id="whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ) ?>" />
-                                                                                </div>
</del><ins>+                                                                        <div id="whats-new-submit">
+                                                                                <span class="ajax-loader"></span>
+                                                                                <input type="submit" name="whats-new-submit" id="whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ) ?>" />
</ins><span class="cx">                                                                         </div>
</span><span class="cx">
</span><span class="cx">                                                                         <input type="hidden" name="whats-new-post-in" id="whats-new-post-in" value="<?php bp_group_id() ?>" />
</span><span class="lines">@@ -116,7 +116,10 @@
</span><span class="cx">                                                                                         <form action="" method="post" name="activity-comment-form" id="ac-form-<?php bp_activity_id() ?>" class="ac-form">
</span><span class="cx">                                                                                                 <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=25&height=25' ) ?></div>
</span><span class="cx">                                                                                                 <div class="ac-reply-content">
</span><del>-                                                                                                        <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac-input-<?php bp_activity_id() ?>"></textarea>
</del><ins>+                                                                                                        <div class="ac-textarea">
+                                                                                                                <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac-input-<?php bp_activity_id() ?>"></textarea>
+                                                                                                        </div>
+
</ins><span class="cx">                                                                                                         <input type="submit" name="ac-form-submit" value="<?php _e( 'Post', 'buddypress' ) ?> &rarr;" />
</span><span class="cx">                                                                                                 </div>
</span><span class="cx">                                                                                                 <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ) ?>
</span></span></pre>
</div>
</div>
</body>
</html>