Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Create New Topic button

@robin-w

Moderator

if you can do some basic editing and understand a bit of php, then this with some work shouldbe what you are after

add_action ( 'bbp_template_before_single_forum', 'bsp_display_buttons' ) ;

function bsp_new_topic_button () {
	global $bsp_style_settings_buttons;
	if (!empty ($bsp_style_settings_buttons['new_topic_description'] )) $text=$bsp_style_settings_buttons['new_topic_description'] ;
	else $text=__('Create New Topic', 'bbp-style-pack') ;
	if ($bsp_style_settings_buttons['button_type'] == 2)  $class=$bsp_style_settings_buttons['Buttonclass'] ;
	else $class='bsp_button1' ;
	if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) {
	$href = apply_filters ('bsp_new_topic_button' , '#new-post' ) ;
	echo '<a class="'.$class.'" href ="'.$href.'">'.$text.'</a>' ;
	}
}

function bsp_create_new_topicb () {
	echo '<div><a class="bsptopic" name="bsptopic"></a></div>' ;
	}
add_action( 'bbp_theme_before_topic_form', 'bsp_create_new_topicb' ) ;
Skip to toolbar