Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,740 total)

  • shanebp
    Moderator

    @shanebp

    You need to clarify your question.

    You want a link to go to ‘My Groups’ – does that mean the Groups page on their profile that shows all the Groups they belong to?

    Or a link that goes directly to a single Group ? Assuming they only belong to one group.

    Or… ?

    You may want to share your header code by using gist and then posting the link here.
    That way we can see the exact context.


    shanebp
    Moderator

    @shanebp

    Please follow the link I provided above. It explains everything you need to know.


    shanebp
    Moderator

    @shanebp

    You can prevent auto-links in the profile areas.

    You need to create a file called bp-custom.php and then add this function to it:

    function remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action( 'bp_init', 'remove_xprofile_links' );

    shanebp
    Moderator

    @shanebp

    These are the BuddyPress forums.
    The bbPress forums are on another site.


    shanebp
    Moderator

    @shanebp

    Create a template overload of this file: buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php

    And place your code wherever you want in the overload.

    bp_displayed_user_id() is incorrect in the context of the members loop.
    Instead:

    $user_meta = get_userdata(bp_get_member_user_id());
    echo($user_meta->description);

    Or instead of an overload, use this hook: do_action( 'bp_directory_members_item' );


    shanebp
    Moderator

    @shanebp

    Your theme is causing those issues. They also exist on the login page.
    To confirm, try switching momentarily to a WP theme like 2016 and see if the issues persist.

    You will need to contact the theme creator to get answers re your formatting issues.
    Or you will need to learn how to use css.


    shanebp
    Moderator

    @shanebp

    You could edit a template.
    If you are using profile cover images, edit buddypress\members\single\cover-image-header.php
    Otherwise, edit buddypress\members\single\member-header.php

    But you can use a function instead.
    Both the templates mentioned above have two action hooks:

    do_action( 'bp_member_header_actions' );
    do_action( 'bp_profile_header_meta' );

    Choose the one that will place your button where you want it and write a function that adds the button.


    shanebp
    Moderator

    @shanebp

    The hook you mention does not provide any arguments.
    Perhaps you need to research how do_action works.
    The hook I mentioned already provides the $user_id.

    Example:

    function sultry( $user_id, $user_login, $user_password, $user_email, $usermeta ) {
       // do something with $user_id
    }
    add_action( 'bp_core_signup_user', 'sultry', 10, 5 );

    shanebp
    Moderator

    @shanebp

    Please use the code button when sharing code.

    Nobody can help you if you don’t explain the errors.

    Please use gist when sharing large blocks of code.

    If you share your code and the errors, somebody might be able to help.


    shanebp
    Moderator

    @shanebp

    Have you tried using the action hook in function bp_core_signup_user ?

    do_action( 'bp_core_signup_user', $user_id, $user_login, $user_password, $user_email, $usermeta );


    shanebp
    Moderator

    @shanebp

    wp-admin > Groups > rollover a Group name > Edit > scroll down > Add Members


    shanebp
    Moderator

    @shanebp

    You can post a job here.


    shanebp
    Moderator

    @shanebp


    shanebp
    Moderator

    @shanebp

    Probably. Try editing or deleting the 40px bits.

    When you change a css file, you’ll need to do a hard refresh ( ctrl + shift + r in windows ) to see the changes. Or clear your browser cache.


    shanebp
    Moderator

    @shanebp

    It’s something in your theme.
    To confirm, switch to a WP theme like 2015 and see if the issue persists.

    It could also be caused by some other plugin or code that affects group layout.
    You can always use browser inspection tools to find out where the white space is coming from.


    shanebp
    Moderator

    @shanebp

    Ajax calls need access to wp-admin.
    You’ve blocked it so the ajax calls will not work.
    And you see that in the areas you’ve mentioned.

    You’ll need to add this conditional to your whitelist check:
    wp_doing_ajax

    Something like: if ( ! is_admin() && wp_doing_ajax ()) {


    shanebp
    Moderator

    @shanebp

    Some other css code, perhaps in your theme, is extending that class to create round avatars.
    You’re going to have to create or modify some css.
    To find out exact info re the css, use a browser inspection tool.
    In Chrome, it is: right click > inspect.


    shanebp
    Moderator

    @shanebp

    Try removing the css class for the div. Just use <div>


    shanebp
    Moderator

    @shanebp

    You’ll need to write a custom widget.
    There is lots of docs online about writing a WP widget.
    You’ll find BP specifics in this file:
    buddypress\bp-members\classes\class-bp-core-members-widget.php


    shanebp
    Moderator

    @shanebp

    Add such tabs is a routine dev task.

    There is lots of info on how to do so.
    Google bp_core_new_nav_item and bp_core_new_subnav_item


    shanebp
    Moderator

    @shanebp

    Support for Fusion is beyond the scope of these forums.

    Perhaps Avada requires the markup that you are using, however here is the usual way:

    <div class="bp-login-widget-user-avatar"><?php bp_loggedin_user_avatar( "type=full&width=200&height=200" ); ?></div>

    You might check the html that is returned in the avatar call; it may include code that is causing your layout issues. Or the css class that you’re using

    Note: you’ll probably get a more useful response from Avada support.


    shanebp
    Moderator

    @shanebp

    Did you look in the single template files?
    buddypress\bp-templates\bp-legacy\buddypress\members\single\


    shanebp
    Moderator

    @shanebp

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php

    And then remove this code from the overload:

    <?php if ( bp_get_member_latest_update() ) : ?>
    
    	<span class="update"> <?php bp_member_latest_update(); ?></span>
    
    <?php endif; ?>

    shanebp
    Moderator

    @shanebp

    The code has been tested without issues on a dev site.
    Do not use the wp-admin editor for making changes, due to the reasons you’ve stated.
    ‘corrupted’ is a very general term.
    What entry did it create in your error_log?


    shanebp
    Moderator

    @shanebp

    It could go into your theme functions.php file.

Viewing 25 replies - 1 through 25 (of 2,740 total)
Skip to toolbar