Skip to:
Content
Pages
Categories
Search
Top
Bottom

Short code bbp-forum-form Doesn’t allows to create forum without a parent


  • yorcht
    Participant

    @yorcht

    Hello, the shortcode [bbp-forum-form] force to choose a parent forum. No Parent option is not working. Either we allow the final user (not me) to accedd WP admin… or have to change forum structore. Any way to avoid this?
    Thanks in advance!
    Jorge

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

  • Robkk
    Moderator

    @robkk

    You can copy form-forum.php from the bbPress plugin templates into a folder called bbpress in your child theme and remove 'show_none' => __( '(No Parent)', 'bbpress' ), so that they have to choose a parent forum.

    Look for this in the file.

    <p>
    	<label for="bbp_forum_parent_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />
    
    		<?php
    			bbp_dropdown( array(
    				'select_id' => 'bbp_forum_parent_id',
    				'show_none' => __( '(No Parent)', 'bbpress' ),
    				'selected'  => bbp_get_form_forum_parent(),
    				'exclude'   => bbp_get_forum_id()
    			) );
    		?>
    </p>

    End up with something like this.

    <p>
    	<label for="bbp_forum_parent_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />
    
    		<?php
    			bbp_dropdown( array(
    				'select_id' => 'bbp_forum_parent_id',
    				'selected'  => bbp_get_form_forum_parent(),
    				'exclude'   => bbp_get_forum_id()
    			) );
    		?>
    </p>

    yorcht
    Participant

    @yorcht

    Hi, thanx but what I want is to not to have to select a forum when create a new one. Like in wordpress admin panel. Just create the new forum with short codes at the same level that others. On top. Is it possible?


    Robkk
    Moderator

    @robkk

    Possibly, I haven’t messed with something like that yet though.

    I know it may be annoying to select a forum, but it is not really a big deal.

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