Reply To: Adding Login To Bottom of Forums and Topics
Thanks tharsheblows! That works perfectly. I thought I might also add a “Register here” link beneath that but I guess just adding an echo statement within the if statement is not the way to do this, it didn’t get outputted.
function mjj_new_reply_login(){
if( !bbp_current_user_can_access_create_reply_form() && !bbp_is_topic_closed() && !bbp_is_forum_closed( bbp_get_topic_forum_id() ) ){
bbp_get_template_part(‘form’, ‘user-login’);
echo ‘Register here‘;
}
}