Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Add forum option in "Post in" in activity

  • @emineminero

    Participant

    Is there any way to add an “post in forum” option? I have the problem that a lot of users ask questions in their activity and not in the foru.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @danbp

    Participant

    Most users goes to what seems them the easiest.

    3 solutions:
    – remove the What’s new form
    – add a message above or below the form
    – use a giant FORUM button ! 😉

    You can use this snippet to show them a message (add it to your child-theme functions.php or to bp-custom.php

    function bpfr_post_in_msg() {
    	echo 'your message to users goes here';
    }
    add_action( 'bp_before_activity_post_form', 'bpfr_post_in_msg' ); // above what's new form
    add_action( 'bp_after_activity_post_form', 'bpfr_post_in_msg' ); // below what's new form

    To remove the form, use an empty post-form.php containing only the opening & closin php tags
    and add it to /child-theme/activity/post-form.php

    The original file is in bp-templates/bp-legacy/buddypress/activity/post-form.php

    @emineminero

    Participant

    Oh, well actually adding a message above the form may help, thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Add forum option in "Post in" in activity’ is closed to new replies.
Skip to toolbar