Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 1,580 total)
  • Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    @tomnikkola

    Just to make sure I understand correctly, if I were to leave out “bbp_topic_create” it would leave the new topics out of the activity feed, but if one member mentioned another in the toipc, that would still display?

    Using @danbp‘s snippet, that’s exactly what will happen.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Is bp_activity_post_update an actual hook? I can’t seem to find it in BP.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    There will be plugins in the WordPress Plugin Directory that can do both of these things. Theme My Login won’t do exactly what you need but it’s a great plugin I’d recommend if you need to to bring the login page into your theme.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I haven’t tested or looked at the source but I suspect you will need to use my no_grav() function as well. You could run a quick test to be sure?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You can disable Gravatar like this:

    function no_grav() {
        return true;
    }
    add_filter( 'bp_core_fetch_avatar_no_grav', 'no_grav' );
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    That would be 30 minutes on a good day. At 6:30pm I’d hit the worst traffic imaginable (I’d be coming from the Isle of Dogs). But it’s great to hear it’s a success!

    My apologies, yes that’ll change the default avatar. I just re read your whole post and realise that may not be what you want.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Cool running club! I was looking to join a club near me but Harold Wood is about a 30 minute drive away.

    Regarding your question:

    Is there a way of passing this path to Buddypress as the default avatar?

    You can filter the default avatar URL using the bp_core_default_avatar_user hook.

    Hope this helps!

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Are activity updates a wordpress custom posts types?

    No. Activity items aren’t custom posts; instead, they live in the bp_activity table. See here for a diagram.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hi @mhawksey

    Can you open a new bug report for this on Trac referencing #5733?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    This isn’t possible out-of-the-box but there may be a plugin in the WordPress Plugin Directory that adds Disqus functionality.

    Adding items to the BuddyPress activity stream is very easy. Check out the bp_activity_add() article for more info.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    This sounds very strange. If you’re still seeing the problem after you’ve removed all custom code snippets, deactivated all plugins and reverted to TwentyFifteen, then I’d suggest you consider having a security audit done to find the source of the problem.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    ~5th line down you have exit();. That will stop execution of the function at that point.

    Ref: http://php.net/manual/en/function.exit.php

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Unfortunately “bad” bad reviews happen regularly and this is a good example. By “bad” I mean a reviewer doesn’t provide any details of the problem they’ve faced and doesn’t reply to the plugin author’s response.

    EDIT: I just noticed the review was posted just 19 hours ago so hopefully the reviewer will still respond to your comments.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I’m pretty sure @slaffik released a BuddyPress Profile Statistics plugin but I can’t seem to find it on the web right now?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I haven’t seen anything like this but it would make a good plugin if somewhere were to build it.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Take a look at the BuddyPress Template Hierarchy article. If your theme uses BuddyPress templates then you’ll be able to override them.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    That’s a good idea. If you do a search for bp_activity_add() you will see everything that creates an activity item. Some plugins use the activity stream so be sure to search any of those you may have installed as well.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Ah OK. For message notifications, you should find the message thread ID in item_id

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    If you take a look at the WordPress code base, you’ll see there is similar logic applied to username. The gist will be

    1. Query the database for a list of display names
    2. Throw an error if the desired name already exists

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    bbPress is a separate plugin. You’d need to install that as well as BuddyPress.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    That particular notification is for a private message. See where it says component_name. Post IDs won’t relate to messages

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    My apologies, I missed parentheses. It should be:

    $obj = bp_notifications_get_notification( bp_get_the_notification_id() );
    var_dump( $obj );

    Can you paste what you get with that updated snippet?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Inside the notifications loop can you do this and paste what you get?

    $obj = bp_notifications_get_notification( bp_get_the_notification_id );
    var_dump( $obj );
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You shouldn’t need to do anything to bp-notifications-functions.php so revert those changes an your code should be good to go.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You’ll need to replace $id in my snippet with the actual ID of the notification. You should be able to get that with bp_get_the_notification_id() if you’re using my snippet within the loop.

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