Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Just add an the following IF Statement

    
    if (current_user_can('level_10')){
    
    } 

    Add the above if condition around the following code in wp-content/plugins/buddypress/bp-settings/bp-settings-loader.php

    
    $main_nav = array(
    'name'                    => __( 'Settings', 'buddypress' ),
    'slug'                    => $this->slug,
    'position'                => 100,
    'show_for_displayed_user' => bp_core_can_edit_settings(),
    'screen_function'         => 'bp_core_screen_general_settings',
    'default_subnav_slug'     => 'general'
    );
    
    

    I wrote some custom code which may help you out…..
    `
    $query = mysql_query(“SELECT * FROM bp_groups_members WHERE user_id = $user_id “);
    $numrows = mysql_num_rows($query);
    if ($numrows !=0 ){
    $row = mysql_fetch_Assoc($query);
    $group_id= $row; }
    $query1 = mysql_query(“SELECT * FROM bp_groups WHERE id = $group_id “);
    $numrows1 = mysql_num_rows($query1);
    if ($numrows1 !=0 ){
    $row1 = mysql_fetch_Assoc($query1);
    $group_name= $row1; } `

    and then just used following code to display the group name
    `

    ()

    `

    Got it!
    go to yoursite.com/wp-admin/admin.php?page=bp-page-settings (Or buddypress-> Pages in CMS)
    There you will see an option of creating a new page for Registration…
    just click on it and you will be sorted..
    Thanks

    And you are not sure about the correct location of that file ???
    “Once Again” What were you trying to delete ??? Your theme or what ?

    Do u know what you have deleted???
    What files were you deleting?? Was you deleting your theme files ??

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