Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable posting to users profiles


  • jeremiahward
    Participant

    @jeremiahward

    This might seem like an odd request but on my site I have groups set up and users are auto assigned to them when they sign up on the site I’d like to keep all posts in the groups and have already hidden the posting box on the profile page but how can I disable posting to profiles from the sitewide activity page?

    WP version: 3.9.1
    BP version: 2.0.1
    Site: http://s533805875.onlinehome.us/wordpress/

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

  • jeremiahward
    Participant

    @jeremiahward

    Anyone?


    @mercime
    Keymaster

    @mercime

    @jeremiahward copy over https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-templates/bp-legacy/buddypress/activity/index.php to your child theme folder following directory structure of your-theme/buddypress/activity/index.php and remove lines 7 through 11


    jeremiahward
    Participant

    @jeremiahward

    @mercime
    Thans so much for your assistance. I have 2 follow up questions,
    Should the child theme be under themes or templates?
    when I downloaded the file the lines must be different as there are a bunch of blank lines and line 9 is <head>. Can you specify what I should be removing?


    @mercime
    Keymaster

    @mercime

    Should the child theme be under themes or templates?


    @jeremiahward
    I assumed that you created a child theme of your theme so that whatever modifications you make won’t be overridden when you upgrade your theme. As noted in WP codex, the child theme should be in the same folder as your parent theme is, i.e., wp-content/themes/your-child-theme-folder. Thus, if you go the child theme route, that index.php file mentioned above would go into wp-content/themes/your-child-theme-folder/buddypress/activity/index.php – so should the other BP files you modified


    jeremiahward
    Participant

    @jeremiahward

    @mercime

    Thanks for that clarification. All of my other modifications have been done through CSS and saved to the stylesheet of my WordPress child theme.

    Anyway, the second questions still stands, when I downloaded the file the lines must be different as there are a bunch of blank lines and line 9 is <head>. Can you specify what I should be removing?


    @mercime
    Keymaster

    @mercime

    @jeremiahward Did you download the file from buddypress.trac in the Original Format per link at the bottom of the page, i.e., index.php? And did you add that index.php to your WP child theme folder per structure I gave you in your own child theme? If you did, and it’s still not working for you because of some conflict, you can always go through the CSS route. Add this to your stylesheet:

    .activity form#whats-new-form {
    display: none;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Disable posting to users profiles’ is closed to new replies.
Skip to toolbar