Ticket #1139: no-user-no-post.patch
File no-user-no-post.patch, 1.7 KB (added by , 15 years ago) |
---|
-
index.php
22 22 </div> 23 23 24 24 <div class="bp-widget"> 25 <h4><?php _e( 'Forum', 'buddypress' ); ?> <span><a href="#post-new-topic" title="<?php _e( 'Post New', 'buddypress' ) ?>"><?php _e( 'Post New →', 'buddypress' ) ?></a></span></h4>25 <h4><?php _e( 'Forum', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> <span><a href="#post-new-topic" title="<?php _e( 'Post New', 'buddypress' ) ?>"><?php _e( 'Post New →', 'buddypress' ) ?></a></span><?php endif; ?></h4> 26 26 27 27 <form action="<?php bp_forum_action() ?>" method="post" id="forum-topic-form" class="standard-form"> 28 28 <?php if ( bp_has_topics() ) : ?> -
topic.php
25 25 <?php if ( bp_has_topic_posts() ) : ?> 26 26 <form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form"> 27 27 28 <h4><a href="<?php bp_forum_permalink() ?>">← <?php _e( 'Forum', 'buddypress' ); ?></a> <span><a href="#post-topic-reply" title="<?php _e( 'Post New', 'buddypress' ) ?>"><?php _e( 'Post Reply →', 'buddypress' ) ?></a></span></h4>28 <h4><a href="<?php bp_forum_permalink() ?>">← <?php _e( 'Forum', 'buddypress' ); ?></a><?php if ( is_user_logged_in() ) : ?> <span><a href="#post-topic-reply" title="<?php _e( 'Post New', 'buddypress' ) ?>"><?php _e( 'Post Reply →', 'buddypress' ) ?></a></span><? endif; ?></h4> 29 29 30 30 <div class="pagination"> 31 31