Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • shanebp
    Moderator

    @shanebp

    My mistake – the required hooks do exist.
    Here is an example of adding a column to the Groups Admin page.

    > I’d like to show the pending members in the groups page.

    You can see the pending requests by visiting the Group page > Manage > Requests.


    shanebp
    Moderator

    @shanebp

    The groups admin page code does not include hooks for adding a column – afaik.
    Wrong – see below.


    shanebp
    Moderator

    @shanebp

    Your issue is specific to your installation. And nobody will register on your site so that they can see
    the page in question.

    Given that you are using Avada and the Shortcodes for Buddypress plugin – there is very little chance that anyone here can help you.

    > … list the groups to this page within the setting …

    Sounds like an issue with Avada > BuddyPress
    For that page, rather than use Avada to build the page, you may need to create a page and assign a hand-coded template to it.
    There is lots of info on how to do that.
    For example: https://ithemes.com/tutorials/applying-wordpress-page-template/


    shanebp
    Moderator

    @shanebp

    Do not ever – EVER – post your admin credentials on a public web page.

    [ Would you hand a copy of your house keys to ‘x’ number of random strangers you pass on the street ? ]

    I have removed the credentials and replaced them with the error message that you are seeing.
    I don’t have a solution to your issue.
    I suspect the BuddyPress prompt to reset the permalinks is a symptom of an WordPress issue in your installation.
    You might try asking on the https://wordpress.org/support/ forums.


    shanebp
    Moderator

    @shanebp

    bp_is_user_forums() is not used in the current BuddyPress template files.

    The fatal errors are due old BuddyPress files coming from your child theme – not from buddypress plugin files.

    PHP Fatal error: Uncaught Error: Call to undefined function bp_is_user_forums() in /nas/content/live/thefluentself/wp-content/themes/fluent-self-2017/buddypress/members/single/home.php:88

    Perhaps there is a new version of your theme ?
    Or you could ask the theme creators about the error?

    You could try deleting all BuddyPress files in your child theme.
    Or you could try updating the buddypress/members/single/home.php file in your child theme.


    shanebp
    Moderator

    @shanebp

    Did you try asking on the bbPress support forums ?


    shanebp
    Moderator

    @shanebp

    > What is the best approach to do this without editing the database directly?

    The best approach is not to do it.
    Store your extra options in the group meta table; that’s what it is for.


    shanebp
    Moderator

    @shanebp

    Why use a shortcode when you can just use this:
    <?php echo bp_displayed_user_id(); ?>

    If you still want to use a shortcode, then share the code that you have already and actually tried.


    shanebp
    Moderator

    @shanebp

    No.
    You have to assign pages to BP.
    Go to Settings > BuddyPress > Pages and assign pages – you may need to create them first.


    shanebp
    Moderator

    @shanebp

    Did you ask LearnDash re whether they have tested with the latest BP?
    Did you try switching to a WP theme like 2017 to see if the issue is in your preferred theme?

    Did you examine your error logs?
    Did you try using WP_Debug ?
    https://codex.wordpress.org/WP_DEBUG


    shanebp
    Moderator

    @shanebp

    When not on a profile screen, use xprofile_get_field_data and pass in the user’s ID.

    xprofile_get_field_data


    shanebp
    Moderator

    @shanebp

    Have you tried using wpautop ?


    shanebp
    Moderator

    @shanebp

    Thanks for posting your solution – which has been updated with your correction.


    shanebp
    Moderator

    @shanebp

    You have the id of that member: $friendship->friend_user_id
    Getting the name is done via WP functions.
    For example: get_userdata


    shanebp
    Moderator

    @shanebp

    Have you tried using the hook provided in the group > create template?

    For example, in this file: buddypress\bp-templates\bp-legacy\buddypress\groups\create.php
    Look for the group avatar section and use this hook:
    do_action( 'bp_after_group_avatar_creation_step' );


    shanebp
    Moderator

    @shanebp

    BuddyPress does not handle payments or paywalls.
    You’ll need a paid membership plugin.
    There are some free ones in the WP plugin repo that you could try out.

    So, your question is not really about BuddyPress.
    Ultimately the decision on how / what to implement will depend on your research and the specifics of your project.


    shanebp
    Moderator

    @shanebp

    I provided a link to show you how to find the filter hooks for any of the functions that you listed. You use them like any other WP filter hook.
    For example:

    function mitchellbc_bp_get_message_thread_from( $from ) {
    
        // manipulate $from however you want
        $from = '<span class="text">' . $from .  '</span>'; 
    
        return $from; 
    }
    add_filter( 'bp_get_message_thread_from', 'mitchellbc_bp_get_message_thread_from', 1, 1 );

    shanebp
    Moderator

    @shanebp

    Use the filter hooks to modify the output.
    For example, see the filter hook for: bp_message_thread_from()


    shanebp
    Moderator

    @shanebp

    Are you saying bp_loggedin_user_domain() did not work?
    If so, buddypress may not be available when that filter hook fires.

    You could try using this: http://mysiteurl/members/me/
    When clicked, BuddyPress will redirect the me to the profile page of the logged-in user.


    shanebp
    Moderator

    @shanebp

    It sounds like you introduced an error.
    Probably easy to fix…

    Check your php error logs.
    You may need to turn on wordpress debug so that any error message is captured.


    shanebp
    Moderator

    @shanebp

    Whether you use BuddyPress or not, you would need to write custom code to handle the access restrictions that you described.


    shanebp
    Moderator

    @shanebp

    It’s doubtful anyone will sign up to see the error.

    Did you check your browser’s javascript console for errors while on that page?

    Did you ask the theme creators ( BuddyBoss ) about your issue ?

    Are you using some code or plugin that minifys javascript ?
    If so, try turning it off.


    shanebp
    Moderator

    @shanebp

    Try something like this in your shortcode:

    $args = array( 
        'group_id' => 666,  // set the ID somehow
        'exclude_admins_mods' => false
    );
    
    $group_members_result = groups_get_group_members( $args );
    $group_members = array();
    
    foreach(  $group_members_result['members'] as $member ) {
    	$group_members[] = $member->ID;
    }
     
    return implode(", ", $group_members);

    Check the $args by reviewing groups_get_group_members() in buddypress\bp-groups\bp-groups-functions.php


    shanebp
    Moderator

    @shanebp

    So does buddypress usually use the regular wordpress login user name? If a site just uses bbpress and buddypress – people set up an acccount just through wordpress and bbpress/buddypress use that?

    Yes and yes.


    shanebp
    Moderator

    @shanebp

    Yikes, afaik, that is not done by BuddyPress.
    It looks like you have a plugin or other code that allows emails as user names.
    My guess re the ‘2-2-‘ bits is that more than one user was created with that email.
    ( Try a test registration using a unique email )
    WP dictates that login names have to be unique.

    BuddyPress uses the login names for @ mentions.
    So does bbPress – for example, this forum where your @ mention name is: badusername

    So, again, afaik, it will not be reasonably possible to simplify the @ mention names.
    With considerable and complicated customization, it might be possible.

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