Skip to:

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • I know this is an old topic, but I also heard about another plugin for WP called “teachpress.” You could take a look at that one. I’m in the process of working on “yet another blog,” that I intend to become an online learning environment – that’s why I posted. :)

    I jumped the gun. I had only updated WP, and hadn’t yet updated BP plugin to go along with it.
    Thanks, tho!


    About that code you tweaked for your variable headers: are you using the custom header that comes bundled? Or did you have to disable that to get your code to work? (Just wondering before I try it ’cause I stress about the WSOD sometimes … LOL.)


    I’m trying to figure exactly what might happen before I try it. I definitely don’t want the WSOD again. So my question is this: can the following code



    be run in the functions.php file? Or does it have to be run in the theme header file?

    I want to display my custom header on the front page, but not the subsequent pages. I’d like the subsequent pages (behind the walls of my pretty little patch) to display a smaller (in height) header, so that the pages don’t look so darn cluttered to logged-in users.


    Duh on me.
    Thanks, again!

    Sure. Here’s the code:

    `function sh_walled_garden()
    global $bp;

    if( bp_is_register_page() || bp_is_activation_page() || is_page(terms-of-service) || is_page(privacy-policy) )

    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( $bp->root_domain .’/’. BP_REGISTER_SLUG );
    add_action( ‘get_header’, ‘sh_walled_garden’ );`

    The activity stream, member directory … the whole nine shows up to not-logged-in users if i add anything to the exclusion line.


    Thanks heaps!
    The only issue is that if I add
    `is_page(slug)` or `bp_is_page(slug)`
    it makes everything visible again.

    Any ideas?


    I absolutely adore this code you’ve posted. It’s clean and easy to install, and there’s no extraneous junk that needs to be done. A simple copy/paste does the trick amazingly well for me.

    But here’s a question:

    I know that
    `if( bp_is_register_page() || bp_is_activation_page() )’
    is where I add slugs that make particular pages available to the public.

    I’m also using the bp-xtra-signup, which I think you contributed to. On my registration page, there’s a checkbox to check that says one agrees to the site TOS, but one has to open a link to see the TOS. When that link is clicked, it redirects to the front page of the site that logged out users are redirected to.

    I’m wondering two things: (1) I haven’t made a TOS page, so where is it? Does one come with that plugin? (Cause I have yet to find it. LOL) and (2) Where do I get that slug to add to the visible pages code line?


Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar