-
John Simpson replied to the topic Activity 'Load More' strange behaviour in the forum How-to & Troubleshooting 2 years ago
@vapvarun Many thanks, if it’s not too stupid a question, at what point would I be able to remove BP Classic. I’m assuming the answer might be “when all the other plugin authors have updated their code”. But of course, that might be quite a while.
-
vuaclub's profile was updated 2 years ago
-
Varun Dubey replied to the topic Activity 'Load More' strange behaviour in the forum How-to & Troubleshooting 2 years ago
Hi @johnsimpson64, the latest version of BP (v12.2.0) was released yesterday. You can give it a try and test it again. At my end, I wasn’t able to replicate the issue you were facing with the “load more” feature – it seems to be working fine. However, I suggest that you try deactivating all custom codes related to BP and other BP plugins on your…[Read more]
-
Varun Dubey replied to the topic `bp_messages_star_set_action` utilizes `bp_displayed_user_id`, not correct? in the forum Miscellaneous 2 years ago
@thesun2012 bp_legacy_theme_ajax_messages_star_handler is not mandatory; you can also create your custom handler based on it
for example
function wbcom_custom_buddypress_ajax_handler() {
check_ajax_referer('custom-bp-ajax-nonce', 'security');$displayed_user_id = isset($_POST['displayed_user_id']) && !empty($_POST['displayed_user_id'])…[Read more]
-
Zauli Maids – Orlando FL's profile was updated 2 years ago
-
experteyedoctor's profile was updated 2 years ago
-
Konnifel's profile was updated 2 years ago
-
Doris Almira's profile was updated 2 years ago
-
Book Delhi to Mumbai Flight Online From Superbmytrip's profile was updated 2 years ago
-
John Simpson's profile was updated 2 years ago
-
Zauli Maids's profile was updated 2 years ago
-
Welcome to Grandeur Autos's profile was updated 2 years ago
-
John replied to the topic `bp_messages_star_set_action` utilizes `bp_displayed_user_id`, not correct? in the forum Miscellaneous 2 years ago
The issue I’m facing is related to integrating BuddyPress into my theme. I’ve relocated the entire Messages component to a custom page that isn’t the default BuddyPress page. When users click on the Star and Unstar buttons, the functionality doesn’t work as intended. This is because it is loaded via AJAX using the
bp_legacy_theme_ajax_messages_star…[Read more] -
ShaniCorplimited's profile was updated 2 years ago
-
Greens Medical Group's profile was updated 2 years ago
-
ROYALSLOT88's profile was updated 2 years ago
-
Varun Dubey replied to the topic `bp_messages_star_set_action` utilizes `bp_displayed_user_id`, not correct? in the forum Miscellaneous 2 years ago
@thesun2012 Use bp_loggedin_user_id() to tie the action of starring or unstarring a message to the user logged in and performing the action. This function returns the ID of the user who is currently logged into the site. When a user is viewing their profile, both bp_displayed_user_id() and bp_loggedin_user_id() will return the same user ID, as the…[Read more]
-
Health Food Press's profile was updated 2 years ago
-
jun88pluscom's profile was updated 2 years ago
-
John started the topic `bp_messages_star_set_action` utilizes `bp_displayed_user_id`, not correct? in the forum Miscellaneous 2 years ago
Hello Team,
I have explored a minor issue while working with BP, please have a look https://github.com/buddypress/buddypress/blob/8478bd9366c28015b5a2c3d91aef08ce49c32bc3/src/bp-messages/bp-messages-star.php#L249
I guess it shuold be the logged-in user ID instead of the displayed user ID, could you solve this please?
Thanks.
- Load More