Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I put the New Forum Post form on the front page?


  • 3sixty
    Participant

    @3sixty

    How do I put the new forum post form on the front page? I copy/pasted the form code there from the forums template, and the ajax “new topic” button works, but submitting a post does not seem to stick in the database.

    Is there a change I can make to the form or some other core BP code? I found the bp_forums_new_topic function in bp-forums.php but wasn’t able to trigger it with a new post so I don’t quite understand how it works yet.

Viewing 3 replies - 1 through 3 (of 3 total)
  • have a look at the function function bp_forums_directory_forums_setup() { which inserts the code to catch a new topic posts.

    Unfortunately the first check is if ( $bp->current_component == $bp->forums->slug ) { so if you place the post new topic code on a different section it will fail.

    though you could mimic that function for your own needs


    3sixty
    Participant

    @3sixty

    hmm, getting there… I changed the first check to

    if ( $bp->current_component == $bp->forums->slug || $bp->current_component == '' ) {

    That actually sets up the front page to a forum page, so not exactly what we need. Will continue to look at that function and see what can be tweaked.

    Thanks for the lead!


    @mercime
    Keymaster

    @mercime

    Used this in WP installation and is working in WPMU/BP

    https://wordpress.org/extend/plugins/bbpress-latest-discussion/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I put the New Forum Post form on the front page?’ is closed to new replies.
Skip to toolbar