<!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][3624] trunk/bp-themes/bp-default: Use comment_form() to comply with WP theme standards and improves code style in comments.php.</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>3624</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-12-30 21:29:17 +0000 (Thu, 30 Dec 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use comment_form() to comply with WP theme standards and improves code style in comments.php. Fixes #2978. Props denis.ogun (via Google Code In)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpthemesbpdefault_inccssdefaultcss">trunk/bp-themes/bp-default/_inc/css/default.css</a></li>
<li><a href="#trunkbpthemesbpdefaultcommentsphp">trunk/bp-themes/bp-default/comments.php</a></li>
<li><a href="#trunkbpthemesbpdefaultfunctionsphp">trunk/bp-themes/bp-default/functions.php</a></li>
<li><a href="#trunkbpthemesbpdefaultrtlcss">trunk/bp-themes/bp-default/rtl.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpthemesbpdefault_inccssdefaultcss"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/css/default.css (3623 => 3624)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/css/default.css        2010-12-30 21:27:49 UTC (rev 3623)
+++ trunk/bp-themes/bp-default/_inc/css/default.css        2010-12-30 21:29:17 UTC (rev 3624)
</span><span class="lines">@@ -872,7 +872,7 @@
</span><span class="cx">         border-color: #c4e9bd;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form#signup_form div div.error {
</del><ins>+.standard-form#signup_form div div.error {
</ins><span class="cx">         color: #fff;
</span><span class="cx">         background: #e41717;
</span><span class="cx">         -moz-border-radius: 3px;
</span><span class="lines">@@ -967,10 +967,10 @@
</span><span class="cx"> /* &gt; Input Forms
</span><span class="cx"> -------------------------------------------------------------- */
</span><span class="cx"> 
</span><del>-form.standard-form textarea,
-form.standard-form input[type=text],
-form.standard-form select,
-form.standard-form input[type=password],
</del><ins>+.standard-form textarea,
+.standard-form input[type=text],
+.standard-form select,
+.standard-form input[type=password],
</ins><span class="cx"> .dir-search input[type=text] {
</span><span class="cx">         border: 1px inset #ccc;
</span><span class="cx">         -moz-border-radius: 3px;
</span><span class="lines">@@ -982,54 +982,54 @@
</span><span class="cx">         color: #888;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form select {
</del><ins>+.standard-form select {
</ins><span class="cx">         padding: 3px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form input[type=password] {
</del><ins>+.standard-form input[type=password] {
</ins><span class="cx">         margin-bottom: 5px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form label,
-form.standard-form span.label {
</del><ins>+.standard-form label,
+.standard-form span.label {
</ins><span class="cx">         display: block;
</span><span class="cx">         font-weight: bold;
</span><span class="cx">         margin: 15px 0 5px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form div.checkbox label,
-form.standard-form div.radio label {
</del><ins>+.standard-form div.checkbox label,
+.standard-form div.radio label {
</ins><span class="cx">         font-weight: normal;
</span><span class="cx">         margin: 5px 0 0 0;
</span><span class="cx">         font-size: 14px;
</span><span class="cx">         color: #888;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form#sidebar-login-form label {
</del><ins>+.standard-form#sidebar-login-form label {
</ins><span class="cx">         margin-top: 5px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form input[type=text] {
</del><ins>+.standard-form input[type=text] {
</ins><span class="cx">         width: 75%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form#sidebar-login-form input[type=text],
-form.standard-form#sidebar-login-form input[type=password] {
</del><ins>+.standard-form#sidebar-login-form input[type=text],
+.standard-form#sidebar-login-form input[type=password] {
</ins><span class="cx">         padding: 4px;
</span><span class="cx">         width: 95%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form #basic-details-section input[type=password],
-form.standard-form #blog-details-section input#signup_blog_url {
</del><ins>+.standard-form #basic-details-section input[type=password],
+.standard-form #blog-details-section input#signup_blog_url {
</ins><span class="cx">         width: 35%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form#signup_form input[type=text],
-form.standard-form#signup_form textarea {
</del><ins>+.standard-form#signup_form input[type=text],
+.standard-form#signup_form textarea {
</ins><span class="cx">         width: 90%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form#signup_form div.submit {
</del><ins>+.standard-form#signup_form div.submit {
</ins><span class="cx">         float: right;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1037,67 +1037,67 @@
</span><span class="cx">         margin: 0 15px 10px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form textarea {
</del><ins>+.standard-form textarea {
</ins><span class="cx">         width: 75%;
</span><span class="cx">         height: 120px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form textarea#message_content {
</del><ins>+.standard-form textarea#message_content {
</ins><span class="cx">         height: 200px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form#send-reply textarea {
</del><ins>+.standard-form#send-reply textarea {
</ins><span class="cx">         width: 97.5%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form p.description {
</del><ins>+.standard-form p.description {
</ins><span class="cx">         font-size: 11px;
</span><span class="cx">         color: #888;
</span><span class="cx">         margin: 5px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form div.submit {
</del><ins>+.standard-form div.submit {
</ins><span class="cx">         padding: 15px 0;
</span><span class="cx">         clear: both;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form div.submit input {
</del><ins>+.standard-form div.submit input {
</ins><span class="cx">         margin-right: 15px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form div.radio ul {
</del><ins>+.standard-form div.radio ul {
</ins><span class="cx">         margin: 10px 0 15px 38px;
</span><span class="cx">         list-style: disc;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form div.radio ul li {
</del><ins>+.standard-form div.radio ul li {
</ins><span class="cx">         margin-bottom: 5px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form a.clear-value {
</del><ins>+.standard-form a.clear-value {
</ins><span class="cx">         display: block;
</span><span class="cx">         margin-top: 5px;
</span><span class="cx">         outline: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form #basic-details-section,
-form.standard-form #blog-details-section,
-form.standard-form #profile-details-section {
</del><ins>+.standard-form #basic-details-section,
+.standard-form #blog-details-section,
+.standard-form #profile-details-section {
</ins><span class="cx">         float: left;
</span><span class="cx">         width: 48%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form #profile-details-section {
</del><ins>+.standard-form #profile-details-section {
</ins><span class="cx">         float: right;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form #blog-details-section {
</del><ins>+.standard-form #blog-details-section {
</ins><span class="cx">         clear: left;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form input:focus,
-form.standard-form textarea:focus,
-form.standard-form select:focus {
</del><ins>+.standard-form input:focus,
+.standard-form textarea:focus,
+.standard-form select:focus {
</ins><span class="cx">         background: #fafafa;
</span><span class="cx">         color: #555;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultcommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/comments.php (3623 => 3624)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/comments.php        2010-12-30 21:27:49 UTC (rev 3623)
+++ trunk/bp-themes/bp-default/comments.php        2010-12-30 21:29:17 UTC (rev 3624)
</span><span class="lines">@@ -1,183 +1,100 @@
</span><del>-        &lt;?php
-                if ( post_password_required() ) :
-                        echo '&lt;h3 class=&quot;comments-header&quot;&gt;' . __('Password Protected', 'buddypress') . '&lt;/h3&gt;';
-                        echo '&lt;p class=&quot;alert password-protected&quot;&gt;' . __('Enter the password to view comments.', 'buddypress') . '&lt;/p&gt;';
-                        return;
-                endif;
</del><ins>+&lt;?php
+        if ( post_password_required() ) {
+                echo '&lt;h3 class=&quot;comments-header&quot;&gt;' . __( 'Password Protected', 'buddypress' ) . '&lt;/h3&gt;';
+                echo '&lt;p class=&quot;alert password-protected&quot;&gt;' . __( 'Enter the password to view comments.', 'buddypress' ) . '&lt;/p&gt;';
+                return;
+        }
</ins><span class="cx"> 
</span><del>-                if ( is_page() &amp;&amp; !have_comments() &amp;&amp; !comments_open() &amp;&amp; !pings_open() )
-                        return;
-        ?&gt;
</del><ins>+        if ( is_page() &amp;&amp; !have_comments() &amp;&amp; !comments_open() &amp;&amp; !pings_open() )
+                return;
</ins><span class="cx"> 
</span><del>-        &lt;?php if ( have_comments() ) : ?&gt;
</del><ins>+        if ( have_comments() ) :
+                $num_comments = 0;
+                $num_trackbacks = 0;
+                foreach ( (array)$comments as $comment ) {
+                        if ( 'comment' != get_comment_type() )
+                                $num_trackbacks++;
+                        else
+                                $num_comments++;
+                }
+?&gt;
+        &lt;div id=&quot;comments&quot;&gt;
</ins><span class="cx"> 
</span><del>-                &lt;div id=&quot;comments&quot;&gt;
</del><ins>+                &lt;h3&gt;
+                        &lt;?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', $num_comments, 'buddypress' ), number_format_i18n( $num_comments ), '&lt;em&gt;' . get_the_title() . '&lt;/em&gt;' ) ?&gt;
+                &lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;?php
-                                // Only include comments
-                                $numTrackBacks = 0; $numComments = 0;
-                                foreach ( (array)$comments as $comment )
-                                        if ( 'comment' != get_comment_type() )
-                                                $numTrackBacks++;
-                                        else
-                                                $numComments++;
-                        ?&gt;
</del><ins>+                &lt;?php do_action( 'bp_before_blog_comment_list' ) ?&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;h3 id=&quot;comments&quot;&gt;
-                                &lt;?php
-                                        printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', $numComments, 'buddypress' ),
-                                        number_format_i18n( $numComments ), '&lt;em&gt;' . get_the_title() . '&lt;/em&gt;' );
-                                ?&gt;
-                        &lt;/h3&gt;
</del><ins>+                &lt;ol class=&quot;commentlist&quot;&gt;
+                        &lt;?php wp_list_comments( array( 'callback' =&gt; 'bp_dtheme_blog_comments' ) ) ?&gt;
+                &lt;/ol&gt;&lt;!-- .comment-list --&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;?php do_action( 'bp_before_blog_comment_list' ) ?&gt;
</del><ins>+                &lt;?php do_action( 'bp_after_blog_comment_list' ) ?&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;ol class=&quot;commentlist&quot;&gt;
-                                &lt;?php wp_list_comments( array( 'callback' =&gt; 'bp_dtheme_blog_comments' ) ); ?&gt;
-                        &lt;/ol&gt;&lt;!-- .comment-list --&gt;
-
-                        &lt;?php do_action( 'bp_after_blog_comment_list' ) ?&gt;
-
-                        &lt;?php if ( get_option( 'page_comments' ) ) : ?&gt;
-
-                                &lt;div class=&quot;comment-navigation paged-navigation&quot;&gt;
-
-                                        &lt;?php paginate_comments_links(); ?&gt;
-
-                                &lt;/div&gt;
-
-                        &lt;?php endif; ?&gt;
-
-                &lt;/div&gt;&lt;!-- #comments --&gt;
-
-        &lt;?php else : ?&gt;
-
-                &lt;?php if ( pings_open() &amp;&amp; !comments_open() &amp;&amp; is_single() ) : ?&gt;
-
-                        &lt;p class=&quot;comments-closed pings-open&quot;&gt;
-                                &lt;?php printf( __('Comments are closed, but &lt;a href=&quot;%1$s&quot; title=&quot;Trackback URL for this post&quot;&gt;trackbacks&lt;/a&gt; and pingbacks are open.', 'buddypress'), trackback_url( '0' ) ); ?&gt;
-                        &lt;/p&gt;
-
-                &lt;?php elseif ( !comments_open() &amp;&amp; is_single() ) : ?&gt;
-
-                        &lt;p class=&quot;comments-closed&quot;&gt;
-                                &lt;?php _e('Comments are closed.', 'buddypress'); ?&gt;
-                        &lt;/p&gt;
-
</del><ins>+                &lt;?php if ( get_option( 'page_comments' ) ) : ?&gt;
+                        &lt;div class=&quot;comment-navigation paged-navigation&quot;&gt;
+                                &lt;?php paginate_comments_links() ?&gt;
+                        &lt;/div&gt;
</ins><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><ins>+        &lt;/div&gt;&lt;!-- #comments --&gt;
+&lt;?php else : ?&gt;
+
+        &lt;?php if ( pings_open() &amp;&amp; !comments_open() &amp;&amp; is_single() ) : ?&gt;
+                &lt;p class=&quot;comments-closed pings-open&quot;&gt;
+                        &lt;?php printf( __( 'Comments are closed, but &lt;a href=&quot;%1$s&quot; title=&quot;Trackback URL for this post&quot;&gt;trackbacks&lt;/a&gt; and pingbacks are open.', 'buddypress' ), trackback_url( '0' ) ) ?&gt;
+                &lt;/p&gt;
+        &lt;?php elseif ( !comments_open() &amp;&amp; is_single() ) : ?&gt;
+                &lt;p class=&quot;comments-closed&quot;&gt;
+                        &lt;?php _e( 'Comments are closed.', 'buddypress' ) ?&gt;
+                &lt;/p&gt;
</ins><span class="cx">         &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;?php if ( comments_open() ) : ?&gt;
</del><ins>+&lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;div id=&quot;respond&quot;&gt;
</del><ins>+&lt;?php if ( comments_open() ) : ?&gt;
+        &lt;div id=&quot;respond&quot;&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;div class=&quot;comment-avatar-box&quot;&gt;
-                                &lt;div class=&quot;avb&quot;&gt;
-                                        &lt;?php if ( bp_loggedin_user_id() ) : ?&gt;
-                                                &lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() ?&gt;&quot;&gt;
-                                                        &lt;?php echo get_avatar( bp_loggedin_user_id(), 50 ); ?&gt;
-                                                &lt;/a&gt;
-                                        &lt;?php else : ?&gt;
-                                                &lt;?php echo get_avatar( 0, 50 ); ?&gt;
-                                        &lt;?php endif; ?&gt;
-                                &lt;/div&gt;
-                        &lt;/div&gt;
-
-                        &lt;div class=&quot;comment-content&quot;&gt;
-
-                                &lt;h3 id=&quot;reply&quot; class=&quot;comments-header&quot;&gt;
-                                        &lt;?php comment_form_title( __( 'Leave a Reply', 'buddypress' ), __( 'Leave a Reply to %s', 'buddypress' ), true ); ?&gt;
-                                &lt;/h3&gt;
-
-                                &lt;p id=&quot;cancel-comment-reply&quot;&gt;
-                                        &lt;?php cancel_comment_reply_link( __( 'Click here to cancel reply.', 'buddypress' ) ); ?&gt;
-                                &lt;/p&gt;
-
-                                &lt;?php if ( get_option( 'comment_registration' ) &amp;&amp; !$user_ID ) : ?&gt;
-
-                                        &lt;p class=&quot;alert&quot;&gt;
-                                                &lt;?php printf( __('You must be &lt;a href=&quot;%1$s&quot; title=&quot;Log in&quot;&gt;logged in&lt;/a&gt; to post a comment.', 'buddypress'), wp_login_url( get_permalink() ) ); ?&gt;
-                                        &lt;/p&gt;
-
</del><ins>+                &lt;div class=&quot;comment-avatar-box&quot;&gt;
+                        &lt;div class=&quot;avb&quot;&gt;
+                                &lt;?php if ( bp_loggedin_user_id() ) : ?&gt;
+                                        &lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() ?&gt;&quot;&gt;
+                                                &lt;?php echo get_avatar( bp_loggedin_user_id(), 50 ) ?&gt;
+                                        &lt;/a&gt;
</ins><span class="cx">                                 &lt;?php else : ?&gt;
</span><del>-
-                                        &lt;?php do_action( 'bp_before_blog_comment_form' ) ?&gt;
-
-                                        &lt;form action=&quot;&lt;?php echo site_url( 'wp-comments-post.php' ) ?&gt;&quot; method=&quot;post&quot; id=&quot;commentform&quot; class=&quot;standard-form&quot;&gt;
-
-                                                &lt;?php if ( $user_ID ) : ?&gt;
-
-                                                        &lt;p class=&quot;log-in-out&quot;&gt;
-                                                                &lt;?php printf( __('Logged in as &lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%2$s&lt;/a&gt;.', 'buddypress'), bp_loggedin_user_domain(), $user_identity ); ?&gt; &lt;a href=&quot;&lt;?php echo wp_logout_url( get_permalink() ); ?&gt;&quot; title=&quot;&lt;?php _e('Log out of this account', 'buddypress'); ?&gt;&quot;&gt;&lt;?php _e('Log out &amp;rarr;', 'buddypress'); ?&gt;&lt;/a&gt;
-                                                        &lt;/p&gt;
-
-                                                &lt;?php else : ?&gt;
-
-                                                        &lt;?php $req = get_option( 'require_name_email' ); ?&gt;
-
-                                                        &lt;p class=&quot;form-author&quot;&gt;
-                                                                &lt;label for=&quot;author&quot;&gt;&lt;?php _e('Name', 'buddypress'); ?&gt; &lt;?php if ( $req ) : ?&gt;&lt;span class=&quot;required&quot;&gt;&lt;?php _e('*', 'buddypress'); ?&gt;&lt;/span&gt;&lt;?php endif; ?&gt;&lt;/label&gt;
-                                                                &lt;input type=&quot;text&quot; class=&quot;text-input&quot; name=&quot;author&quot; id=&quot;author&quot; value=&quot;&lt;?php echo $comment_author; ?&gt;&quot; size=&quot;40&quot; tabindex=&quot;1&quot; /&gt;
-                                                        &lt;/p&gt;
-
-                                                        &lt;p class=&quot;form-email&quot;&gt;
-                                                                &lt;label for=&quot;email&quot;&gt;&lt;?php _e('Email', 'buddypress'); ?&gt;  &lt;?php if ( $req ) : ?&gt;&lt;span class=&quot;required&quot;&gt;&lt;?php _e('*', 'buddypress'); ?&gt;&lt;/span&gt;&lt;?php endif; ?&gt;&lt;/label&gt;
-                                                                &lt;input type=&quot;text&quot; class=&quot;text-input&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;&lt;?php echo $comment_author_email; ?&gt;&quot; size=&quot;40&quot; tabindex=&quot;2&quot; /&gt;
-                                                        &lt;/p&gt;
-
-                                                        &lt;p class=&quot;form-url&quot;&gt;
-                                                                &lt;label for=&quot;url&quot;&gt;&lt;?php _e('Website', 'buddypress'); ?&gt;&lt;/label&gt;
-                                                                &lt;input type=&quot;text&quot; class=&quot;text-input&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;&lt;?php echo $comment_author_url; ?&gt;&quot; size=&quot;40&quot; tabindex=&quot;3&quot; /&gt;
-                                                        &lt;/p&gt;
-
-                                                &lt;?php endif; ?&gt;
-
-                                                &lt;p class=&quot;form-textarea&quot;&gt;
-                                                        &lt;label for=&quot;comment&quot;&gt;&lt;?php _e('Comment', 'buddypress'); ?&gt;&lt;/label&gt;
-                                                        &lt;textarea name=&quot;comment&quot; id=&quot;comment&quot; cols=&quot;60&quot; rows=&quot;10&quot; tabindex=&quot;4&quot;&gt;&lt;/textarea&gt;
-                                                &lt;/p&gt;
-
-                                                &lt;?php do_action( 'bp_blog_comment_form' ) ?&gt;
-
-                                                &lt;p class=&quot;form-submit&quot;&gt;
-                                                        &lt;input class=&quot;submit-comment button&quot; name=&quot;submit&quot; type=&quot;submit&quot; id=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;&lt;?php _e('Submit', 'buddypress'); ?&gt;&quot; /&gt;
-                                                        &lt;?php comment_id_fields(); ?&gt;
-                                                &lt;/p&gt;
-
-                                                &lt;div class=&quot;comment-action&quot;&gt;
-                                                        &lt;?php do_action( 'comment_form', $post-&gt;ID ); ?&gt;
-                                                &lt;/div&gt;
-
-                                        &lt;/form&gt;
-
-                                        &lt;?php do_action( 'bp_after_blog_comment_form' ) ?&gt;
-
</del><ins>+                                        &lt;?php echo get_avatar( 0, 50 ) ?&gt;
</ins><span class="cx">                                 &lt;?php endif; ?&gt;
</span><ins>+                        &lt;/div&gt;
+                &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;/div&gt;&lt;!-- .comment-content --&gt;
-                &lt;/div&gt;&lt;!-- #respond --&gt;
</del><ins>+                &lt;div class=&quot;comment-content standard-form&quot;&gt;
+                        &lt;?php comment_form() ?&gt;
+                &lt;/div&gt;&lt;!-- .comment-content --&gt;
</ins><span class="cx"> 
</span><del>-                &lt;?php endif; ?&gt;
</del><ins>+        &lt;/div&gt;&lt;!-- #respond --&gt;
+&lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;?php if ( isset( $numTrackBacks ) &amp;&amp; $numTrackBacks ) : ?&gt;
-                        &lt;div id=&quot;trackbacks&quot;&gt;
</del><ins>+&lt;?php if ( !empty( $num_trackbacks ) ) : ?&gt;
+        &lt;div id=&quot;trackbacks&quot;&gt;
+                &lt;span class=&quot;title&quot;&gt;&lt;?php the_title() ?&gt;&lt;/span&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;span class=&quot;title&quot;&gt;&lt;?php the_title() ?&gt;&lt;/span&gt;
</del><ins>+                &lt;h3&gt;
+                        &lt;?php printf( _n( '%d Trackback', '%d Trackbacks', $num_trackbacks, 'buddypress' ), number_format_i18n( $num_trackbacks ) ) ?&gt;
+                &lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;?php if ( 1 == $numTrackBacks ) : ?&gt;
-                                        &lt;h3&gt;&lt;?php printf( __( '%d Trackback', 'buddypress' ), $numTrackBacks ) ?&gt;&lt;/h3&gt;
-                                &lt;?php else : ?&gt;
-                                        &lt;h3&gt;&lt;?php printf( __( '%d Trackbacks', 'buddypress' ), $numTrackBacks ) ?&gt;&lt;/h3&gt;
-                                &lt;?php endif; ?&gt;
</del><ins>+                &lt;ul id=&quot;trackbacklist&quot;&gt;
+                        &lt;?php foreach ( (array)$comments as $comment ) : ?&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;ul id=&quot;trackbacklist&quot;&gt;
-                                        &lt;?php foreach ( (array)$comments as $comment ) : ?&gt;
</del><ins>+                                &lt;?php if ( 'comment' != get_comment_type() ) : ?&gt;
+                                        &lt;li&gt;
+                                                &lt;h5&gt;&lt;?php comment_author_link() ?&gt;&lt;/h5&gt;
+                                                &lt;em&gt;on &lt;?php comment_date() ?&gt;&lt;/em&gt;
+                                        &lt;/li&gt;
+                                 &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><del>-                                                &lt;?php if ( get_comment_type() != 'comment' ) : ?&gt;
-                                                        &lt;li&gt;&lt;h5&gt;&lt;?php comment_author_link() ?&gt;&lt;/h5&gt;&lt;em&gt;on &lt;?php comment_date() ?&gt;&lt;/em&gt;&lt;/li&gt;
-                                                  &lt;?php endif; ?&gt;
-                                        &lt;?php endforeach; ?&gt;
-                                &lt;/ul&gt;
-                        &lt;/div&gt;
-                &lt;?php endif; ?&gt;
</del><ins>+                        &lt;?php endforeach; ?&gt;
+                &lt;/ul&gt;
+
+        &lt;/div&gt;
+&lt;?php endif; ?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/functions.php (3623 => 3624)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/functions.php        2010-12-30 21:27:49 UTC (rev 3623)
+++ trunk/bp-themes/bp-default/functions.php        2010-12-30 21:29:17 UTC (rev 3624)
</span><span class="lines">@@ -477,8 +477,7 @@
</span><span class="cx">  * @see wp_nav_menu()
</span><span class="cx">  * @since 1.3
</span><span class="cx">  */
</span><del>-function bp_dtheme_main_nav( $args ) {
-?&gt;
</del><ins>+function bp_dtheme_main_nav( $args ) { ?&gt;
</ins><span class="cx">         &lt;ul id=&quot;nav&quot;&gt;
</span><span class="cx">                 &lt;li&lt;?php if ( is_front_page() ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;
</span><span class="cx">                         &lt;a href=&quot;&lt;?php echo home_url() ?&gt;&quot; title=&quot;&lt;?php _e( 'Home', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Home', 'buddypress' ) ?&gt;&lt;/a&gt;
</span><span class="lines">@@ -490,6 +489,46 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * Applies BuddyPress customisations to the post comment form.
+ *
+ * @global string $user_identity The display name of the user
+ * @param array $default_labels The default options for strings, fields etc in the form
+ * @see comment_form()
+ * @since 1.3
+ */
+function bp_dtheme_comment_form( $default_labels ) {
+        global $user_identity;
+
+        $commenter = wp_get_current_commenter();
+        $req = get_option( 'require_name_email' );
+        $aria_req = ( $req ? &quot; aria-required='true'&quot; : '' );
+        $fields =  array(
+                'author' =&gt; '&lt;p class=&quot;comment-form-author&quot;&gt;' . '&lt;label for=&quot;author&quot;&gt;' . __( 'Name' ) . ( $req ? '&lt;span class=&quot;required&quot;&gt; *&lt;/span&gt;' : '' ) . '&lt;/label&gt; ' .
+                            '&lt;input id=&quot;author&quot; name=&quot;author&quot; type=&quot;text&quot; value=&quot;' . esc_attr( $commenter['comment_author'] ) . '&quot; size=&quot;30&quot;' . $aria_req . ' /&gt;&lt;/p&gt;',
+                'email'  =&gt; '&lt;p class=&quot;comment-form-email&quot;&gt;&lt;label for=&quot;email&quot;&gt;' . __( 'Email' ) . ( $req ? '&lt;span class=&quot;required&quot;&gt; *&lt;/span&gt;' : '' ) . '&lt;/label&gt; ' .
+                            '&lt;input id=&quot;email&quot; name=&quot;email&quot; type=&quot;text&quot; value=&quot;' . esc_attr(  $commenter['comment_author_email'] ) . '&quot; size=&quot;30&quot;' . $aria_req . ' /&gt;&lt;/p&gt;',
+                'url'    =&gt; '&lt;p class=&quot;comment-form-url&quot;&gt;&lt;label for=&quot;url&quot;&gt;' . __( 'Website' ) . '&lt;/label&gt;' .
+                            '&lt;input id=&quot;url&quot; name=&quot;url&quot; type=&quot;text&quot; value=&quot;' . esc_attr( $commenter['comment_author_url'] ) . '&quot; size=&quot;30&quot; /&gt;&lt;/p&gt;',
+        );
+
+        $new_labels = array(
+                'cancel_reply_link'    =&gt; '&lt;p id=&quot;cancel-comment-reply&quot;&gt;' . __( 'Cancel reply', 'buddypress' ) . '&lt;/p&gt;',
+                'comment_field'        =&gt; '&lt;p class=&quot;form-textarea&quot;&gt;&lt;label for=&quot;comment&quot;&gt;' . __( 'Comment', 'buddypress' ) . '&lt;/label&gt;&lt;textarea name=&quot;comment&quot; id=&quot;comment&quot; cols=&quot;60&quot; rows=&quot;10&quot; aria-required=&quot;true&quot;&gt;&lt;/textarea&gt;&lt;/p&gt;',
+                'comment_notes_after'  =&gt; '',
+                'comment_notes_before' =&gt; '',
+                'fields'               =&gt; apply_filters( 'comment_form_default_fields', $fields ),
+                'logged_in_as'         =&gt; '&lt;p class=&quot;log-in-out&quot;&gt;' . sprintf( __( 'Logged in as &lt;a href=&quot;%1$s&quot;&gt;%2$s&lt;/a&gt;. &lt;a href=&quot;%3$s&quot;&gt;Log out?&lt;/a&gt;', 'buddypress' ), bp_loggedin_user_domain(), $user_identity, wp_logout_url( get_permalink() ) ) . '&lt;/p&gt;',
+                'must_log_in'          =&gt; '&lt;p class=&quot;alert&quot;&gt;' . sprintf( __( 'You must be &lt;a href=&quot;%1$s&quot;&gt;logged in&lt;/a&gt; to post a comment.', 'buddypress' ), wp_login_url( get_permalink() ) )        . '&lt;/p&gt;',
+                'title_reply'          =&gt; '&lt;h3 id=&quot;reply&quot; class=&quot;comments-header&quot;&gt;' . __( 'Leave a reply', 'buddypress' ) . '&lt;/h3&gt;',
+                'title_reply_to'       =&gt; '&lt;h3 id=&quot;reply&quot; class=&quot;comments-header&quot;&gt;' . __( 'Leave a reply to %s', 'buddypress' ) . '&lt;/h3&gt;'
+        );
+
+        return apply_filters( 'bp_dtheme_comment_form', array_merge( $default_labels, $new_labels ) );
+}
+add_filter( 'comment_form_defaults', 'bp_dtheme_comment_form', 10 );
+
+
</ins><span class="cx"> // Everything beyond this point is deprecated as of BuddyPress 1.3. This will be removed in a future version.
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultrtlcss"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/rtl.css (3623 => 3624)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/rtl.css        2010-12-30 21:27:49 UTC (rev 3623)
+++ trunk/bp-themes/bp-default/rtl.css        2010-12-30 21:29:17 UTC (rev 3624)
</span><span class="lines">@@ -344,35 +344,35 @@
</span><span class="cx"> /* &gt; Input Forms
</span><span class="cx"> -------------------------------------------------------------- */
</span><span class="cx"> 
</span><del>-form.standard-form#signup_form div.submit {
</del><ins>+.standard-form#signup_form div.submit {
</ins><span class="cx">         float: left;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form#signup_form div.signup-avatar {
</del><ins>+.standard-form#signup_form div.signup-avatar {
</ins><span class="cx">         margin-left: 15px;
</span><span class="cx">         margin-right: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form div.submit input {
</del><ins>+.standard-form div.submit input {
</ins><span class="cx">         margin-left: 15px;
</span><span class="cx">         margin-right: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form div.radio ul {
</del><ins>+.standard-form div.radio ul {
</ins><span class="cx">         margin: 10px 38px 15px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form #basic-details-section,
-form.standard-form #blog-details-section,
-form.standard-form #profile-details-section {
</del><ins>+.standard-form #basic-details-section,
+.standard-form #blog-details-section,
+.standard-form #profile-details-section {
</ins><span class="cx">         float: right;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form #profile-details-section {
</del><ins>+.standard-form #profile-details-section {
</ins><span class="cx">         float: left;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-form.standard-form #blog-details-section {
</del><ins>+.standard-form #blog-details-section {
</ins><span class="cx">         clear: right;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>