Forum Replies Created
sorry, i hate bumping, i know, but i rly need an answer to this!!
sounds like what I am looking for! would you mind going through how you did it?
I have this:
global $bp, $bp_unfiltered_uri;
if (!is_user_logged_in() &&
(MEMBERS_SLUG == $bp_unfiltered_uri
|| BP_GROUPS_SLUG == $bp->current_component
|| 'ask/' == $bp->current_component
bp_core_redirect( $bp->root_domain );
add_action( 'wp', 'oci_restrict_access', 3 );
But it still goes to the ASK page.
Am I doing something wrong?
FIXED! I think…
I went into bp-core.php
Line 70: define( ‘HOME_BLOG_SLUG’, apply_filters( ‘bp_home_blog_slug’, blog’ ) );
Changed it to:
Line 70: define( ‘HOME_BLOG_SLUG’, apply_filters( ‘bp_home_blog_slug’, ‘videos’ ) );
Been having a look at it, could it be something to do with the code I was given?
$c = ‘videos’;
Thats the code I got from here, but should it not be:
$c = ‘videos’;
Hi sorry, I was on holiday there and only getting back to this.
I created the PHP file called bp-custom.php and put it in wp-content/mu-plugins/
I put that code in that file, including the PHP open and close tags, but its still the same!!
Just to remind anyone reading this from here, all I want to do is change the name of:
as I am using my blog to show videos only.
i done all that, but nothing changed?
you can see when u click on videos, the top bar shows /blogs. at the moment the menu name has changed. would this effect the stuff in bp-custom.php?
Thanks for that, but what do I do with it when I make the bp-custom.php and put that code in it? Do I need to do anything else, because it didnt change anything.
Im not very good with PHP, so sorry about the hassle.