Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,312 total)
  • Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    just fyi: you can replace this:
    ! bp_current_user_can( 'bp_moderate' )

    with this:
    ! is_super_admin()

    is_super_admin()

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    The errors in your log all seem to be related to LearnDash . BuddyPress calls.

    Your best bet is to show that log to the LearnDash support team.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Thanks @henrywright

    Yes, we have created some Google Map plugins.
    BP Maps for Members
    BP Maps for Groups

    And we can build a zip or postal code search plugin.

    @robertl4807 – please provide contact info.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    See this section: Customize Email Template on this codex page.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    BP recently added the BP Email API which uses its own methods.

    You can place the code in bp-custom.php rather than your theme/functions.php

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try this in your theme/functions.php

    add_action( 'bp_email', function( $email_type, $email_obj ) { $email_obj->set_from( "you@yoursite.com", "Your Site" ); }, 10, 2 );

    See codex page.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Did you try using the provided filter hook in function bp_blogs_visit_blog_button ?

    apply_filters( 'bp_get_blogs_visit_blog_button', $button )

    $button is an array that includes class elements.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    …build the CPTs in a more traditional way.

    That would be useful knowledge, but registering CPTs for BP can be a bit different.
    If you haven’t, look at this codex page.
    And you may actually want to build a custom BP component.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I’m not familiar with Pods.

    …it does not appear to fire at all

    Then it’s not being filtered when the activity loop is being output.
    Check the database activity table for an entry for one of your CPTs.
    Make a small edit and see if it appears.
    If so, the database entry is being used.
    Therefore you may need to filter the entry when it is created.

    Take a look at the filters in function save in the class BP_Activity_Activity
    or maybe
    function bp_activity_create_summary

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It sounds like you want to filter the content body of the activity item.

    There is a filter hook for that:
    apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
    in function bp_activity_content_body() in
    buddypress\bp-activity\bp-activity-template.php

    I think the main issue will be determining if the entry is related to your CPT.
    And that will be affected by how you created the CPT.
    There may be some info in the second argument – maybe in ["type"] ?

    Try:

    function ben_filter_activity_body( $content, $activity ) {
    	
    	var_dump( $activity );
    	
    	$content = ' Start of your content ' . $content;
    	
    	return $content;
    	
    }
    add_filter( 'bp_get_activity_content_body', 'ben_filter_activity_body', 25, 2 );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    The members search box is visible on mobile when using a standard WP theme like 2013.

    So there is most likely an issue with your theme.

    To confirm, trying switching momentarily to a WP theme.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I don’t believe bp_parse_args() was available when I wrote that codex page.

    But you should use it instead; it should solve your issue:
    https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I haven’t test his code but…

    I think he means that you have to set up a Profile field for zipcodes.
    Once you do that, adjust function set_lat_long so that it uses the field_id for that field.
    Then, if a member has entered a zipcode, a geo_lat and geo_long metadata should be created.

    Is distance searching really important to you?
    Would a google map showing the location of members be just as or more useful?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    A premium plugin is now available: BP Maps for Groups from PhiloPress.

    … an option to search for groups based on their location (distance).

    It does not provide distance searching,
    But a Google map showing all Groups is added to the Groups Directory page. And Group search results will include any matching on elements in the address for a Group.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Ok, try:
    $my_link = bp_loggedin_user_domain() . '/kalender';

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Why did you add quotes to the variable and turn it into a string?
    'link' => $my_link,

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try creating a variable. Something like:

    $my_link = '<a href="' . bp_loggedin_user_domain() . '/kalender">Kalender</a>';
    
    ...
    'link'     => $my_link,
    ...
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You’ll need to write custom code to do that.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You could probably adapt this:
    https://wordpress.org/plugins/bp-poke/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I’ve found another create.php

    Make a small change in it and see if it is visible.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Your task is very logical – but fraught with danger.

    Have you noticed that emails can be edited from a Profile page via Settings?
    And how a confirmation email is sent?

    And this setting: wp-admin/admin.php?page=bp-settings > Profile Sync ?

    So it’s possible but not easy.
    Display of those fields is fairly simple – but writing handlers to save those fields… eek.

    If it was me, I’d just add Profile fields for bio and website – and move on.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I would like to give suggestions, if buddypress team should be given backend options like select content type (1)HTML email (2)Plain text
    because buddypress have not given any hook for changes content type text

    You can create an enhancement ticket here using the same login as you use for these forums.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Some themes include BP files.
    To see if that is the case with your theme, try switching momentarily to a WP theme like 2013.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    requests for help in these forums don’t seem to get much attention to me

    Everyone here is a volunteer. Nobody is obligated to answer your questions – especially ones steeped in entitlement.

    If you want more attention and faster attention – hire a developer.

    Or at least use gist to share the code you’ve written in attempting to find a solution.

    For your task, I would use the Group Extension API.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Have you tried making the groups Private?

    Have you asked LearnDash?
    They have a BP extension, afaik.
    And may be able to make suggestions.

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