WordPress.org

Ready to get started?Download WordPress

Forums

Frisco for BuddyPress
[resolved] Add "Start new topic" link to main menu (6 posts)

  1. angslycke
    Member
    Posted 1 year ago #

    Hi everyone!

    I'm running a community and want to make it easier for my users to start a new forum topic. Now they have to click the link "Start a new topic" at the top of the forums directory to show the form at the bottom of the same page. I want this form to always be visible, and want to add a link to my main menu to the main menu to allow them to start a new topic from there.

    Simply copying the link from the "Start a new topic" link to my main menu doesn't work.

    Does anyone have any idea on how to do this? Thanks in advance!

    http://wordpress.org/extend/themes/frisco-for-buddypress/

  2. David Carson
    Member
    Theme Author

    Posted 1 year ago #

    Not really a Frisco theme issue since this functionality is derived from bp-default theme.

    But have a look at wp-content/plugins/buddypress/bp-themes/bp-default/_inc/global.js and see /* Hide Forums Post Form */ section near the top of the file.

    I'm not familiar enough with JS/AJAX to post a solution. But an easy way would be to change the logic so that the form always shows. And then just have your menu link point to the anchor link http://yourdomain.com/forums/#new-topic-post.

  3. angslycke
    Member
    Posted 1 year ago #

    David,

    thanks for your quick response! I found the section you're refering to, thanks for pointing me to the right file. Tried changing the first part from .hide to .show (not familiar with JS/AJAX either) and now the form is always visible, and I'm able to link to it in the way you described.

    However, now I have to click twice on the "Start a new topic" link at the top of the page to get to the form at the bottom of the page. Well, halfway there. Thanks!

    Considered creating a new page template and simply copying the form from the forums directory page there and linking people to that. Should also work, right?

  4. David Carson
    Member
    Theme Author

    Posted 1 year ago #

    Considered creating a new page template and simply copying the form from the forums directory page there and linking people to that. Should also work, right?

    Probably. But then you'll need to maintain that page and change code with future updates to BuddyPress.

    Maybe instead remove or comment out the forums js code (show/hide) from global.js (copy the file and put it in your Frisco theme folder to avoid editing core BP file). Then make sure the form is always visible with CSS - I think you can just make sure #new-topic-post is display:block in your custom stylesheet.

  5. David Carson
    Member
    Theme Author

    Posted 1 year ago #

    Marking this as resolved. Thanks.

  6. angslycke
    Member
    Posted 1 year ago #

    Thanks David! Returned to this post today since the change I had before got lost in a BuddyPress update. Really helpful advice!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic