Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 19 replies - 1 through 19 (of 19 total)
  • Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Nevermind, I use a walkaround for creating the plugin “BP Groups Suggestions”, based on the ‘BP Groups Suggest Widget’ (http://buddydev.com/plugins/bp-group-suggest/) which gave the idea for extending it to a full plugin.

    You can download it from http://wordpress.org/plugins/bp-groups-suggestions/

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Which version of Buddypress you have?
    Do you use WP Toolbar or the BuddyBar?
    The above works (at least for me) with BuddyBar.

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    You can try the following.
    Into your /plugins folder create a file bp-custom.php.
    Into the file put the following code:

    
    function custom_bp_adminbar_login_menu() {
        global $bp;
        global $wp;
        remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2);
        if (is_user_logged_in())
            return false;
        echo '<li class="bp-login no-arrow"><a href="NEW_LOGIN_URL">' . __('Log In', 'buddypress') . '</a></li>';
        // Show "Sign Up" link if user registrations are allowed
        if (bp_get_signup_allowed()) {
            echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __('Sign Up', 'buddypress') . '</a></li>';
        }
    }
    
    add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1);
    

    Bests,
    Lena

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi, I tested my plugin BP Group Documents (download link http://blogs.sch.gr/stergatu/files/2013/06/buddypress-group-documents0_6.zip) against BP 1.8 beta-1, wp 3.5.1.
    The plugin extends BP_Group_Extension and uses the _construct, edit_screen, display() etc functions.
    I noticed the following strange behaviour.
    Group create step screen OK
    Admin group page screen OK
    Edit group page screen OK
    Display screen and nav tab of plugin NOT showing at all.
    I don’t get any error log or debug messages with wp_debug.

    Any clues / directions?

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    @mercime hi.
    Yes, I’m in a process of it.

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi, BP group documents plugin now compatible with BP1.7 in beta version can be found on http://lenasterg.wordpress.com/2013/04/30/buddypress-group-documents-for-bp-1-7-and-wp-3-5-1/

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi, @sarathbabu_k,
    I updated the BP Group Documents for BP 1.7.
    You can downloaded from lenasterg.wordpress.com/2013/04/30/buddypress-group-documents-for-bp-1-7-and-wp-3-5-1/.

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi,
    Possible this week a beta version of BP group documents compatible with BP1.7, will be uploaded in http://lenasterg.wordpress.com

    Cheers Lena

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi @elangley I ‘m glad you use buddypress group documents.
    If you have made an updated version can you please share it?

    Thanks
    Lena

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    @dexpositoromero.
    Thanks for the solution.
    It worked!!

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi Dwenaus.
    If a moderator if log in, the create mail screen doesn’t appear at all.

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi Dwenaus.
    You forgot to fix it in 2.7.5 version.

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Small fix if you get javascripts errors on Firefox like ‘jQuery is not defined’.

    In file bp-group-tags.php replace line:

    `wp_enqueue_script(‘gtags=group-tags’, WP_PLUGIN_URL.’/buddypress-group-tags/group-tags.js’);`

    with the following:

    `wp_enqueue_script(‘gtags=group-tags’, WP_PLUGIN_URL.’/buddypress-group-tags/group-tags.js’,array(‘jquery’));`

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    I don’t recommend to change the core files of buddypress. The best way to do it is to write a custom code (I don’t know how to guide you).
    So if you don’t mind changing the core files, here is a quick way.

    Open /buddypress/bp-core/bp-core-classes.php and change the
    $sql = “AND pd.value LIKE ‘%%$search_terms%%’”;
    to
    $sql = “AND (pd.value LIKE ‘%%$search_terms%%’ OR u.user_login LIKE’%%$search_terms%%’)” ;

    If someone can guide us how to do it in bp-custom.php, it would be great.

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    If you want to display both usernames and display names you can use this version in your theme’s functions.php:

    /*Display Username and display name in Directory */
    function my_member_username() {
    global $members_template;
    if ( empty($members_template->member->fullname) ) {
    $members_template->member->fullname = $members_template->member->display_name;
    }
    $toReturn =$members_template->member->fullname .’ @’.$members_template->member->user_login;
    return $toReturn;
    }
    add_filter( ‘my_member_username’, ‘wp_filter_kses’ );
    add_filter( ‘my_member_username’, ‘stripslashes’ );
    add_filter( ‘my_member_username’, ‘strip_tags’ );

    add_filter(‘bp_member_name’,’my_member_username’);

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Has anybody found the correct link for Greek language yet?
    If yes let us know.

Viewing 19 replies - 1 through 19 (of 19 total)