Forum Replies Created
-
In reply to: Exclude groups from get_total_group_count
Considering you need to use a custom where clause to get your data, you should do what @shanebp suggests here:
Just make it a custom function that you call wherever you want.
My tweak only makes sense when a simple adjustment to
$countis needed.In reply to: Lost Password not workingare there any guidelines for issue posting?
Anything that you think may help the core team really. Usually a list of steps describing how to reproduce the problem is super useful. Also, as much info about your setup as you can such as plugins activated, theme, whether you use multisite, which browser you use and so on.
In reply to: Notifications of my own forum topic replies-bug?Whilst notifications is a BuddyPress component, it’s actually bbPress that handles this particular notification via their
bbp_buddypress_add_notification()function. If you pass the following link to the bbPress guys, they should be able to take it from here.Ref: https://github.com/ntwb/bbPress/blob/master/src/includes/extend/buddypress/notifications.php#L98
If you need anything else just shout.
In reply to: Lost Password not working3 reports in 3 weeks sounds as though there could be an issue here. Can you open a ticket on Trac?
https://buddypress.trac.wordpress.org/
You can use the same username and password that you use here in the forum to log in. Please provide as much background info as you can regarding your setup.
In reply to: Exclude groups from get_total_group_countInside the function, there’s a
bp_get_total_group_countfilter hook which can be used. Something like this as an example:function my_group_count_filter( $count ) { // Do something with $count here. return $count; } add_filter( 'bp_get_total_group_count' ,'my_group_count_filter' );In reply to: Add custom field to activity feedOh, and you’ll need
preg_match().In reply to: Add custom field to activity feedWould it be easiest to search for any text preceded by a “@”?
Yeah that’s a good idea. The regex pattern you’ll need will be something like
@[0-9a-Z_-]+. That will find within the activity item’s text all strings that begin with an @ character which is followed by one or more lowercase or uppercase characters, including numbers and the – and _ characters. Please note I haven’t tested.In reply to: Add custom field to activity feedRight, I see! I’m thinking you’ll need to use a regular expression to get the mentioned user’s username from the activity item’s text. Then you can do a user lookup using that username. From there you’ll have everything you need to know about the mentioned user.
In reply to: User ID in Members Loopecho bp_member_user_id();will output the user ID. How are you outputting the 35, 170 cm part?In reply to: Add custom field to activity feedDo you mean grab the username and avatar of @-mentioned users for a) activity items already posted or b) new activity items going forward?
In reply to: Stopping html codes and more…Hi @goakes
Yes that’s right, you can copy and paste the code into your child theme’s functions.php file.
In reply to: Best Theme for Busy Community?There’s currently also 29 themes in the WordPress Theme Dir tagged “BuddyPress”. See here. I’m not sure if any of these will be different to the themes you’ve seen already at BP Inspire, but it’s worth taking a look 🙂
In reply to: User ID in Members Loopecho bp_member_user_id();will output an integer (user ID) like this38. Is that what you want to happen?In reply to: Best Theme for Busy Community?Hi @julia_b
http://www.bpinspire.com/ might be useful to you. It showcases lots of popular BuddyPress websites and themes.
In reply to: Notifications of my own forum topic replies-bug?In reply to: Add custom field to activity feedMy first thought is how best to open a selectable list of members. You could use a modal but if the list of members is long (30 or more) then a modal + list might not be the best approach.
That information never arrived at the email.
Just a thought, check your spam folder as sometimes activation emails end up there.
I attempted another registration with different credentials and email and this time nothing happened.
This might be a problem with your theme. Try activating TwentyFifteen and complete the registration form again. Also deactivate any plugins you’ve installed, just to be sure none of those are causing the problem.
In reply to: Stopping html codes and more…Here’s an example which strips all HTML from the text of activity comments:
function filter_activity_comment_text( $content ) { $content = wp_filter_nohtml_kses( $content ); return $content; } add_filter( 'bp_activity_comment_content', 'filter_activity_comment_text' );Note, this won’t strip HTML from activity items that already exist.
The template you’ll need to override is entry.php.
Sometimes registration emails aren’t sent
Are you sure they’re not being sent? Could it be that they’re not being received (gone into a spam or junk folder)?
If the user skips this they can login normally
They can log in but unless they’ve activated their account via the email that was sent, or you have manually activated them, they won’t be able to do much on your site. Their privileges will be restricted.
In reply to: Stopping html codes and more…a) If I click to “View” the message (not the html link), in the majority of cases I’m taken to the error page. I’m not clear why this is the case?
Did you happen to delete those activity items? The reason I think you are getting the error page is because those activity items don’t exist.
b) Is there a way to disable html coding in these message boxes?
Yes. You need to filter the text so that all HTML tags are stripped out. There are WordPress functions that can do this for you. See
wp_filter_nohtml_kses().Ref: https://codex.wordpress.org/Function_Reference/wp_filter_nohtml_kses
2. How do you get the edit facility to appear under Profile? I have Extended Profiles checked. I can only see “View” and “Change Profile Photo”.
This could be a theme issue. Try activating TwentyFifteen to see if you get the edit facility appear.
3. Is there a way to disable the html coding for all of the message boxes i.e. site-wide, private, public, groups and members?
Yes, but it isn’t as straightforward as updating a setting. You’ll need to filter each one, using
wp_filter_nohtml_kses()to strip out the tags, as mentioned above.Hope this helps!
In reply to: Bug Report (class-bp-attachment-avatar.php)Hi @damland
Thanks for the report. Bug reports can be opened on Trac:
https://buddypress.trac.wordpress.org
The username and password you use here in the forums will work there too.
In reply to: Change text on Registration pageThere is a guide available showing how to get started with Poedit. It isn’t technically demanding, but you do need to follow the steps carefully. Hope this helps!
In reply to: Hiding Admin from Members ListI think it’s pretty straightforward. Try this:
function my_bp_members_loop( $retval ) { $retval['exclude'] = 1; // This needs to be the ID of your admin user. return $retval; } add_filter( 'bp_after_has_members_parse_args', 'my_bp_members_loop' );In reply to: Hiding Admin from Members ListThis can be done with
bp_parse_args(). See the Using bp_parse_args() to filter BuddyPress template loops article for a tutorial.