Skip to:
Content
Pages
Categories
Search
Top
Bottom

Lost My Pages in the Nav Menu [Resolved]

  • UPDATE: Woke up this morning went to my site and everything was back to normal!
    Wordpress 3.1.1
    Buddypress whatever is the latest (can never remember the number)
    http://www.verbradio.com
    Was playing around with some codes to be able to reach Edit Profile from Nav menu and I succeeded in adding it to the menu (although it doesn’t works just refreshes the Home page) but in doing so I lost all of the pages in my Nav bar and I can’t get them back.
    So far I have tried:
    Installing BP default theme (they show up there)
    Reinstalling my theme WP Simple Community (they don’t show up)
    Deleting the codes I installed
    Deleting the entire functions.php file and uploaded a fresh one
    Recreating the pages
    Unpublishing and republishing the missing pages
    The code I used is below:
    function user_row_actions_bp_view($actions, $user_object) {

    global $bp;
    $actions = ‘ID) . ‘”>’ . __(‘View BP’) . ‘‘;

    return $actions;
    }
    add_filter(‘user_row_actions’, ‘user_row_actions_bp_view’, 10, 2);

    I also used these codes but it seems they didn’t leave any traces behind

    Disable User Activation

    function disable_validation( $user_id ) {
    global $wpdb;
    $wpdb->query( $wpdb->prepare( “UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d”, $user_id ) );
    }
    add_action( ‘bp_core_signup_user’, ‘disable_validation’ );
    function fix_signup_form_validation_text() {
    return >false;
    }
    add_filter( ‘bp_registration_needs_activation’, ‘fix_signup_form_validation_text’ );

    Display User Name in Member Directory

    /* Display Username in Directory */
    function my_member_username() {
    global $members_template;
    return $members_template->member->user_login;
    }
    add_filter(‘bp_member_name’,’my_member_username’);

  • The topic ‘Lost My Pages in the Nav Menu [Resolved]’ is closed to new replies.
Skip to toolbar