Skip to:
Content
Pages
Categories
Search
Top
Bottom

OVERRIDE BLOG PRIVACY SETTINGS FOR BUDDY PRESS

  • Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    I want a closed network with bp where everything is blocked from public view. I have the privacy plugin from wpmudev premium where it automatically sets the privacy settings for all the blogs. In my site only logged in users can view the blogs. When this is activated, the BuddyPress blog listing page and the search functions do not show any blogs. As soon as I make the blogs public, they show up on the search pages as well as the Recent Posts widget for BP.

    My question is this: Can I hack the code that checks the blog privacy setting and turn it off so that even if the blog is private, it will still show up in the blog listing page as well as in the search functions.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    ANd if so, how and where would I look to do this?

    Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    You don’t have to shout kennibc. You’ll have to rewrite most of this file /mu-plugins/bp-blogs/bp-blogs-classes.php. All the sql queries that have something like ‘WHERE public = 1′ are your target.

    Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    Sorry for shouting. Didn’t mean too… gees where are my online manners!!!

    What should I replace it with ( wb.public = 0 )? Or do I just delete it all together?

    THANKS! (shout intended)

    -Chris

    Avatar of Jalien
    jalien
    Participant

    @jalien

    I was working on the same problem. Have a look at this thread. I’m not sure how secure my solution is, but it was quick and if you come up with some better coding to handle it, then let us know. See:

    http://buddypress.org/forums/topic.php?id=1508

    Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    Thanks Jalien. Your post worked perfectly for the Blog Listing Page. However, there is also the sidebar widget which pulls the most recent posts from the private blogs which is not working. Because the blogs are private, I guess I need to find that widget file as well so I can make the changes.

    Any suggestions? I will be searching…

    Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    OK… Finally got it all working:

    In the file: /mu-plugins/bp-blogs/bp-blogs-classes.php

    Change wb.public =1 > wb.public = -1

    Change b.public =1 > b.public = -1

    The first change does the Blog Listing Page. The second handles the Sidebar Recent Posts Widget.

    Thanks to Jalien and Burtadsit for their help.

    - A bit about my project -

    I work for a K-12 District in Dearborn, Michigan with about 18,000 K-12 Students. We have a state mandate that students graduate with a minimum of 20 hours of online structured experiences. (We all know that students do way more than this, but now we have to report on it). I am creating a online social networking site so that students can create blogs for each of their classes, form groups for student counsel and other clubs, and all the benefits of being able to create student portfolios. This BP+WPMU system also has many other benefits for things where the teacher may have a special project where the students need to create a website… well now they can do that!

    It was also imperative that this be a “Walled Garden” because we did not want outsiders to have access to students. I do have the ability to individually make blogs public for select projects as requested by a teacher. Also, it is all based on LDAP logins so students at anytime can login with their District ID and Password and create a blog or join a group eliminating me from needing to manage so many students and verifying that they are indeed students.

    We also have Moodle, so a last minute suggestion would be to somehow let BP+WPMU and Moodle share logins and files as a eLearning portfolio system. We were piloting Mahara.org software which does this, but I got feedback from students and teachers who were unhappy with the navigation and way the software functioned. They were hoping for something more intuitive and easier to use with less steps. Not to take away from that project because I understood how to use it, but I think they will like the BP-WPMU better because we already have 700+ teachers blogging on another WPMU system, so they know the admin panels already.

    Avatar of Gpo1
    gpo1
    Participant

    @gpo1

    @kennibc.That’s good.

    How do you make members & groups private?

    Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    I had to make the whole site private using this plugin:

    http://premium.wpmudev.org/project/sitewide-privacy-options-for-wordpress-mu

    There is a free version of this plugin, but we wanted to be able to override the settings by site admin only.

    You cannot access any page on the site without logging in first. This works for us since we don’t want outside access to students. On rare occasions where the teacher wants the students to blog publicly, I can override the setting for the specific blogs.

    Avatar of Gpo1
    gpo1
    Participant

    @gpo1

    Do you need to configure buddypress files for it to work?

    Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    Nope. Nothing other than what was descirbed above so that the plugins would override the privacy settings and work.

    Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Kennibc, great work!

    I have a k-12 project I am using BP for as well, so welcome to the club!

    Avatar of Chris Kenniburg
    kennibc
    Participant

    @kennibc

    What state or school? I’d be interested in feedback on how the students are using it or is it for staff?

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

The topic ‘OVERRIDE BLOG PRIVACY SETTINGS FOR BUDDY PRESS’ is closed to new replies.