-
Henry Wright replied to the topic Change @name from username in the forum How-to & Troubleshooting 8 years, 11 months ago
The username will be used in the profile URL so there’s no way of hiding it fully.
-
Henry Wright replied to the topic Some members can't access their profile, weird redirect in the forum How-to & Troubleshooting 8 years, 11 months ago
Try disabling all plugins to see if the problem still happens.
-
Henry Wright replied to the topic bp-custom.php bp nav in the forum How-to & Troubleshooting 8 years, 11 months ago
Maybe the
999
priority is too late? Try setting it to something like8
. This is guesswork so forgive me. -
Henry Wright replied to the topic Fatal error: Allowed memory size … exhausted … wp-db.php in the forum How-to & Troubleshooting 8 years, 11 months ago
You should try to find out what’s causing such a huge memory usage. Start off with the default Twenty Fifteen theme and no plugins activated. Then activate your plugins one-by-one, to find the culprit.
-
Henry Wright replied to the topic Error – BP_MESSAGES_AUTOCOMPLETE_ALL in the forum How-to & Troubleshooting 8 years, 11 months ago
I changed the source code
It’s never a good idea to change the plugin’s source. You should revert that change. Any custom code snippets you might have should go into either your theme’s functions.php file or a bp-custom.php file (if you have one).
-
Henry Wright replied to the topic Trouble with custom activity function in the forum Creating & Extending 8 years, 11 months ago
You could use a control statement inside
my_func()
? For ex:if ( 'something' === 'something' ) {
// Do something better than this...
$ret['blah'] = 'blah';
}
The exact condition you use will depend on what you’re trying to do.
-
Henry Wright replied to the topic Trouble with custom activity function in the forum Creating & Extending 8 years, 11 months ago
Ah OK, cool. In that case you may also be interested to hear about
bp_parse_args()
. I think it’s a better way of doing what you want. This approach will also handle the loop pagination for you. For example:function my_func( $ret ) {
[Read more]
// Your custom stuff here.
return $ret;
}
add_filter( 'bp_after_has_activities_parse_args', 'my_func'… -
Henry Wright replied to the topic Trouble with custom activity function in the forum Creating & Extending 8 years, 11 months ago
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
-
Henry Wright replied to the topic Trouble with custom activity function in the forum Creating & Extending 8 years, 11 months ago
sw_partner_activity
isn’t a BuddyPress hook. Are you using a plugin? -
Henry Wright replied to the topic Start number of post on posts stream on page in the forum How-to & Troubleshooting 8 years, 11 months ago
In that case, try asking here.
-
Henry Wright replied to the topic Help filtering my custom activity pages with parse_args in the forum Creating & Extending 8 years, 11 months ago
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. -
Henry Wright replied to the topic Start number of post on posts stream on page in the forum How-to & Troubleshooting 8 years, 11 months ago
When you say posts, do you mean WordPress posts, or BuddyPress activity items? Both “streams” are different and will require different solutions.
-
Henry Wright replied to the topic No notifications for replies in the forum How-to & Troubleshooting 8 years, 11 months ago
In that case @fried_eggz, can you open a ticket for this on Trac?
-
Henry Wright replied to the topic Pagination on buddypress.org Site in the forum Miscellaneous 8 years, 11 months ago
Hi @valuser
Can you open a Trac ticket for this?
-
Henry Wright replied to the topic No notifications for replies in the forum How-to & Troubleshooting 8 years, 11 months ago
This should be working. Have you installed any plugins that may be conflicting?
Make sure you have the setting checked under members/{username}/settings/notifications/
-
Henry Wright replied to the topic Buddypress bug still happening 1 year after mentioning it here,effects all users in the forum Miscellaneous 8 years, 11 months ago
@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.
-
Henry Wright replied to the topic BP registration form not working on mobile view in the forum How-to & Troubleshooting 8 years, 11 months ago
Your 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.
-
Henry Wright replied to the topic is it possible know if the receiver read the message? in the forum How-to & Troubleshooting 8 years, 11 months ago
Try this:
$thread = new BP_Messages_Thread( bp_get_the_thread_id() );
echo $thread->last_message_id; -
Henry Wright replied to the topic is it possible know if the receiver read the message? in the forum How-to & Troubleshooting 8 years, 11 months ago
bp_get_the_thread_id()
is what you will need. -
Henry Wright replied to the topic Profile Avatar cropping problem in the forum How-to & Troubleshooting 8 years, 11 months ago
You 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 🙂
- Load More
@henrywright
Active 8 months, 1 week ago