-
cleon orion's profile was updated 10 years, 10 months ago
-
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. -
StudentFilmmakers's profile was updated 10 years, 10 months ago
-
alasto rdraco's profile was updated 10 years, 10 months ago
-
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
-
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 -
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 -
Natali's profile was updated 10 years, 11 months ago
-
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.
-
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 -
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?
-
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 ); -
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 ); -
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.
-
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.
-
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
$idin my snippet with the actual ID of the notification. You should be able to get that withbp_get_the_notification_id()if you’re using my snippet within the loop. -
Abacus Epos Online's profile was updated 10 years, 11 months ago
-
Naya India's profile was updated 10 years, 11 months ago
-
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 anBP_Notifications_Notificationobject so to getitem_idyou’d just access it like this:$obj = bp_notifications_get_notification( $id );
echo $obj->item_id; -
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_idorsecondary_item_id. Then, if you have the notification ID, you can retrieve the data (post ID) at a later date withbp_notifications_get_notification() - Load More