Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove forum dropdown list so users can post topics directly to forum.


  • multi65
    Participant

    @multi65

    Hello,

    Using the [bbp-topic-form] shortcode, users will have to choose from a dropdown list in order to post a topic. Of course, this can cause some issues as users can often post in the wrong forums without knowing it.

    How can bbpresss forum functionality be configured so that users can press a ‘create a new topic’ button, press enter, and that topic is automatically posted in the forum where the ‘create a new topic’ button was situated?

    Thank you

Viewing 16 replies - 1 through 16 (of 16 total)

  • Robin W
    Moderator

    @robin-w

    not precisely what you want, but my style pack plugin has a ‘create new topic’ button which takes then to the form on that page, so achieves most of what you are after

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>buttons


    multi65
    Participant

    @multi65

    Hi Robin,

    Thank you very much for your prompt reply.

    I have used your plugin; it is extremely helpful and convenient.

    But I was forced to remove it, because I am using the ‘Youzer’ plugin for buddypress and bbpress, and it seems to not work very well with that. (i.e the appearance of the forums end up looking weird.)

    Is there some other way this can be done?

    Thank you


    Robin W
    Moderator

    @robin-w

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    add_action ( 'bbp_template_before_single_forum', 'rew_create_new_topic' ) ;
    
    function rew_create_new_topic () {
    	$text='Create New Topic' ;
    	if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) {
    	$href = '#new-post'  ;
    	echo '<div class="rew-new-topic">  <a href ="'.$href.'">'.$text.'</a></div>' ;
    	}
    }

    but you’ll have to work out how to style it yourself I’m afraid !!


    multi65
    Participant

    @multi65

    Hello Robin

    Thank you for the code.
    I added it to my child theme’s function file and the link is now displayed in my forums page.

    However, whenever I click the link it doesn’t seem to work. Meaning, it doesn’t lead to anywhere. Is there something else I need to do other than that to get the link to work?

    -M


    Robin W
    Moderator

    @robin-w

    hmmm – do you have the form showing at the bottom of the page ?


    multi65
    Participant

    @multi65

    No, actually it’s at the top.


    Robin W
    Moderator

    @robin-w

    sorry, you have the topic form at the top, or the ‘create new topic’ button at the top ?


    multi65
    Participant

    @multi65

    The ‘create new topic’ button is at the top.


    Robin W
    Moderator

    @robin-w

    but no form at the bottom?


    multi65
    Participant

    @multi65

    No, no form at the bottom.


    Robin W
    Moderator

    @robin-w

    ok, have you removed this, it should show? might be a theme or other plugin that has done this


    multi65
    Participant

    @multi65

    Ah yes, I remember that I hid the form using the content-single-forum.php file because I wanted users to click on a button to access the form. Thank you for the advice.

    The button is working now, but is there anyway to hide the form until a user has clicked on it?
    For instance putting it in another page, or only bringing it up in the same page when the ‘create new topic’ link is clicked?


    Robin W
    Moderator

    @robin-w

    there probably is but beyond free code.


    multi65
    Participant

    @multi65

    I see…so there is no way to relocate the form to another page with free code?


    Robin W
    Moderator

    @robin-w

    not unless you can find someone to write it for free 🙂


    multi65
    Participant

    @multi65

    Ok, I see. Thanks for your help anyway. 🙂

Viewing 16 replies - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.
Skip to toolbar