Skip to:
Content
Pages
Categories
Search
Top
Bottom

  • About
  • News
  • Codex
  • Develop
  • Make
  • Forums
  • Download

BuddyPress.org


  • All Members
  • RSS
  • Profile picture of cleon orion

    cleon orion's profile was updated 10 years, 10 months ago

    cleon orion

    @cleonorion9

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic documentation for remove_action activity streams in the forum Requests & Feedback 10 years, 10 months ago

    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 picture of StudentFilmmakers

    StudentFilmmakers's profile was updated 10 years, 10 months ago

    StudentFilmmakers

    @studentfilmmakers

    View Profile
  • Profile picture of alasto rdraco

    alasto rdraco's profile was updated 10 years, 10 months ago

    alasto rdraco

    @alastordraco

    View Profile
  • Profile picture of Natali

    Natali replied to the topic BuddyPress and WordPress in the forum Installing BuddyPress 10 years, 10 months ago

    Thank you so much @djsteveb. I will look at dreamhost.com. Are there any other web hosting sites you recommend?

    Thanks again so much for your response.

    Natali

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 10 months ago

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

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Making display name unique in the forum Creating & Extending 10 years, 10 months ago

    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 picture of Natali

    Natali's profile was updated 10 years, 11 months ago

    Natali

    @natmba1

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic Discussion Forums (bbpress) no longer an option? in the forum Installing BuddyPress 10 years, 11 months ago

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

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

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

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    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 picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    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 picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    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 picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    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 picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    You shouldn’t need to do anything to bp-notifications-functions.php so revert those changes.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    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.

  • Profile picture of Abacus Epos Online

    Abacus Epos Online's profile was updated 10 years, 11 months ago

    Abacus Epos Online

    @abacuseposonline

    View Profile
  • Profile picture of Naya India

    Naya India's profile was updated 10 years, 11 months ago

    Naya India

    @nayaindia

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    Just to note, bp_notifications_get_notification() returns an BP_Notifications_Notification object so to get item_id you’d just access it like this:

    $obj = bp_notifications_get_notification( $id );
    echo $obj->item_id;

  • Profile picture of Henry Wright

    Henry Wright replied to the topic Get Post ID from Notification in the forum How-to & Troubleshooting 10 years, 11 months ago

    The post ID should be passed to that function as either item_id or secondary_item_id. Then, if you have the notification ID, you can retrieve the data (post ID) at a later date with bp_notifications_get_notification()

  • Load More

WordPress.org bbPress.org BuddyPress.org Matt Blog RSS

GPL Contact Us Privacy Terms of Service X

Skip to toolbar
    • WordPress.org
      • About WordPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • bbPress.org
      • About bbPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • BuddyPress.org
      • About BuddyPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
  • Log in
  • Anonymous
    • AnonymousNot Logged In
    • Register
    • Log In