que es mas parecido al facebook me da error y no puedo acceder al menu para cambiarlo, el error que me da es este
Fatal error: Call to undefined function bp_forums_is_installed_correctly() in /home/a1054820/public_html/wp-content/plugins/buddypress/bp-forums/bp-forums-loader.php on line 102
no se si el archivo que hay que modificar es el bp-forums-loader.php pongo aqui el codigo , ya que no se donde esta el error
Código PHP:
Ver original
<?php /** * BuddyPress Forums Loader * * A discussion forums component. Comes bundled with bbPress stand-alone. * * @package BuddyPress * @subpackage Forums Core */ // Exit if accessed directly class BP_Forums_Component extends BP_Component { /** * Start the forums component creation process * * @since 1.5 */ function __construct() { parent::start( 'forums', __( 'Discussion Forums', 'buddypress' ), BP_PLUGIN_DIR ); } /** * Setup globals * * The BP_FORUMS_SLUG constant is deprecated, and only used here for * backwards compatibility. * * @since 1.5 * @global obj $bp */ function setup_globals() { global $bp; // Define the parent forum ID // Define a slug, if necessary // The location of the bbPress stand-alone config file $this->bbconfig = $bp->site_options['bb-config-location']; // All globals for messaging component. // Note that global_tables is included in this array. 'path' => BP_PLUGIN_DIR, 'slug' => BP_FORUMS_SLUG, 'has_directory' => true, 'notification_callback' => 'messages_format_notifications', 'search_string' => __( 'Search Forums...', 'buddypress' ), ); parent::setup_globals( $globals ); } /** * Include files */ function includes() { // Files to include 'actions', 'screens', 'classes', 'filters', 'template', 'functions', ); // Admin area if ( is_admin() ) $includes[] = 'admin'; // bbPress stand-alone $includes[] = 'bbpress-sa'; parent::includes( $includes ); } /** * Setup BuddyBar navigation * * @global obj $bp */ function setup_nav() { global $bp; // Stop if forums haven't been set up yet if ( !bp_forums_is_installed_correctly() ) return; // Stop if there is no user displayed or logged in return; // Add 'Forums' to the main navigation 'name' => __( 'Forums', 'buddypress' ), 'slug' => $this->slug, 'position' => 80, 'screen_function' => 'bp_member_forums_screen_topics', 'default_subnav_slug' => 'topics', 'item_css_id' => $this->id ); // Determine user to use $user_domain = $bp->displayed_user->domain; $user_login = $bp->displayed_user->userdata->user_login; $user_domain = $bp->loggedin_user->domain; $user_login = $bp->loggedin_user->userdata->user_login; } else { return; } // User link $forums_link = trailingslashit( $user_domain . $this->slug ); // Additional menu if friends is active 'name' => __( 'Topics Started', 'buddypress' ), 'slug' => 'topics', 'parent_url' => $forums_link, 'parent_slug' => $this->slug, 'screen_function' => 'bp_member_forums_screen_topics', 'position' => 20, 'item_css_id' => 'topics' ); // Additional menu if friends is active 'name' => __( 'Replied To', 'buddypress' ), 'slug' => 'replies', 'parent_url' => $forums_link, 'parent_slug' => $this->slug, 'screen_function' => 'bp_member_forums_screen_replies', 'position' => 40, 'item_css_id' => 'replies' ); // Favorite forums items. Disabled until future release. /* $sub_nav[] = array( 'name' => __( 'Favorites', 'buddypress' ), 'slug' => 'favorites', 'parent_url' => $forums_link, 'parent_slug' => $this->slug, 'screen_function' => 'bp_member_forums_screen_favorites', 'position' => 60, 'item_css_id' => 'favorites' ); */ parent::setup_nav( $main_nav, $sub_nav ); } /** * Set up the admin bar * * @global obj $bp */ function setup_admin_bar() { global $bp; // Prevent debug notices // Menus for logged in user if ( is_user_logged_in() ) { // Setup the logged in user variables $user_domain = $bp->loggedin_user->domain; $user_login = $bp->loggedin_user->userdata->user_login; $forums_link = trailingslashit( $user_domain . $this->slug ); // Add the "My Account" sub menus 'parent' => $bp->my_account_menu_id, 'id' => 'my-account-' . $this->id, 'title' => __( 'Forums', 'buddypress' ), 'href' => trailingslashit( $forums_link ) ); // Topics 'parent' => 'my-account-' . $this->id, 'title' => __( 'Topics Started', 'buddypress' ), 'href' => trailingslashit( $forums_link . 'topics' ) ); // Replies 'parent' => 'my-account-' . $this->id, 'title' => __( 'Replies', 'buddypress' ), 'href' => trailingslashit( $forums_link . 'replies' ) ); // Favorites 'parent' => 'my-account-' . $this->id, 'title' => __( 'Favorite Topics', 'buddypress' ), 'href' => trailingslashit( $forums_link . 'favorites' ) ); } parent::setup_admin_bar( $wp_admin_nav ); } /** * Sets up the title for pages and <title> * * @global obj $bp */ function setup_title() { global $bp; // Adjust title based on view if ( bp_is_forums_component() ) { if ( bp_is_my_profile() ) { $bp->bp_options_title = __( 'Forums', 'buddypress' ); } else { 'item_id' => $bp->displayed_user->id, 'type' => 'thumb' ) ); $bp->bp_options_title = $bp->displayed_user->fullname; } } parent::setup_title(); } } // Create the forums component $bp->forums = new BP_Forums_Component(); ?>