Forum Replies Created
-
In reply to: Trouble with custom activity function
I’m wondering why you’re writing a custom query to get user meta? That’s what the
get_user_meta()function is for.Ref: https://codex.wordpress.org/Function_Reference/get_user_meta
In reply to: Trouble with custom activity functionsw_partner_activityisn’t a BuddyPress hook. Are you using a plugin?In reply to: Start number of post on posts stream on pageIn that case, try asking here.
is_page()has been problematic for me in the past (when using with BuddyPress) but I thought those problems had been resolved. Feel free to open a Trac ticket for this.In reply to: Start number of post on posts stream on pageWhen you say posts, do you mean WordPress posts, or BuddyPress activity items? Both “streams” are different and will require different solutions.
In reply to: No notifications for repliesIn that case @fried_eggz, can you open a ticket for this on Trac?
In reply to: Pagination on buddypress.org SiteHi @valuser
Can you open a Trac ticket for this?
In reply to: No notifications for repliesThis should be working. Have you installed any plugins that may be conflicting?
Make sure you have the setting checked under members/{username}/settings/notifications/
@mcpeanut I’m unable to test right now but can you give this a try on Twenty Fifteen or Twenty Sixteen and if the problem persists, would you mind opening a Trac ticket for this? Copying and pasting some of what you’ve wrote already should be fine.
The core devs might not see this forum topic.
In reply to: BP registration form not working on mobile viewYour best bet is to provide the theme author with some screenshots of the problem and hopefully they can issue a fix. It’s probably worth deactivating all plugins and custom code before taking the screengrabs, to be sure nothing is conflicting.
Try this:
$thread = new BP_Messages_Thread( bp_get_the_thread_id() ); echo $thread->last_message_id;bp_get_the_thread_id()is what you will need.In reply to: Profile Avatar cropping problemYou did the right thing by deactivating all plugins and then reactivating each one to find the culprit. Try doing that again, but this time refresh and test cropping after each plugin activation. The very moment cropping stops working, bam, you have your culprit 🙂
In reply to: Profile Avatar cropping problemHi Joe and Nat,
Can you provide some more details?
- plugins used
- theme used
- WP and BP versions
- any console errors or notices
In reply to: Hide deactivated users from members loop@cityfox the only problem with that approach is it doesn’t consider pagination.
Hi @bruce30
The code I posted isn’t for cutting and pasting. It’s the name of the functions you could use to complete the task. And the text that follows is an overview of the things you’ll need to do when using those functions.
Hi @bruce30
You would use
bp_messages_update_meta()andbp_messages_get_meta()to add data to and retrieve data from the table. One approach could be to add the user’s ID once the message is viewed and display some kind of indicator on the page to the rest of the message participants.In reply to: Remove add friend button for member typeOops, my apologies. This should work:
function browserco_filter_add_friend_button( $button ) { $member_type = bp_get_member_type( bp_displayed_user_id() ); if ( 'business' !== $member_type ) { return $button; } return ""; } add_filter( 'bp_get_add_friend_button', 'browserco_filter_add_friend_button' );Thanks @r-a-y, I think I was looking at an out-of-date database. 🙂
I don’t think there’s a message meta table so you’d need to save some data to user meta when
bp_after_message_thread_contentfires.Alternatively there may be a plugin available but I’m not aware of one.
You should let the theme author know there’s a problem, and hopefully they can issue a fix.
In reply to: Remove add friend button for member typeTry this:
function browserco_filter_add_friend_button( $button ) { $member_type = bp_get_member_type( bp_displayed_user_id() ); if ( 'business' !== $member_type ) { return $button; } return ""; } add_filter( 'browserco_filter_add_friend_button', 'bp_get_add_friend_button' );Could be a theme issue. Which theme are you using? Does the same thing happen if you use Twenty Fifteen or Twenty Sixteen?
You can open a bug report for this on Trac (the login details will be the same as those you use here in this forum).
In reply to: Buddypress privacy for tabsBP Simple Private might be helpful?