Forum Replies Created
-
The
search_termsparameter acts kind of like a search box (you can type in a term or phrase). To the best of my knowledge, just like a search box, it doesn’t handle multiple terms or phrases. For example philippine tube-nosed fruit bat will be treated as one phrase. You can’t specify 2 phrases such as philippine tube-nosed fruit bat || nyctimene rabori.The search terms should be passed as a
stringjust like you did in your code. For example:$retval['search_terms'] = 'philippine tube-nosed fruit bat';Also,
is_page()should work. Try something like this:if ( is_page() ) { // Get the data you will use as a search term. // Filter search_terms $retval['search_terms'] = 'search terms here'; } return $retval;Do you think this will work?
I don’t think so. The param is actually
search_terms, notsearch_termIn reply to: Compose private message issues in BP v2.5.0/2.5.1Hi @per4mance
I just tried #1 and couldn’t reproduce the issue using Twenty Fifteen and no plugins activated. I was able to send the message successfully:
You can add a custom function to the
bp_after_has_activities_parse_argsfilter hook like this:add_filter( 'bp_after_has_activities_parse_args', function( $retval ) { // Change search-term to your own search term. $retval['search_terms'] = 'search-term'; return $retval; } );If you use the Theme My Login plugin, you can customise the login template quite easily.
In reply to: There was a problem cropping your profile photo.Great 😀
In reply to: There was a problem cropping your profile photo.The PHP version you’re using shouldn’t matter unless it’s < 5.2. Also JavaScript is responsible for the actual cropping. I’m guessing you’ve either modified your template in some way or are using some conflicting JavaScript elsewhere?
In reply to: How to show “updates” as default in activity?Can you show us the code you’ve tried?
In reply to: Single login for multisiteThe Jetpack plugin supports single sign on. When you network activate it, you should see a Jetpack > Settings tab in your network admin.
In reply to: Where’s the plugins directory page?In reply to: Register Page Multi Language HelpThere are several ways to do that. You could use language file(s), filtering or even contribute to a particular language pack. See the following article for more info:
How are you restricting access to those pages? If Google can see the content then those pages aren’t private. BuddyPress doesn’t make content private by default, neither does it try to.
You will need to use
bp_before_has_activities_parse_argsfor this. The article below has some really great examples to get you started:I’d imagine
search_termswould be the most suitable parameter to filter in your case.In reply to: Add @mentions in pluginI guess the awpcp plugin will need to add @-mention support to their comment form. Try asking this same question on their support forum.
In reply to: Profile is Forcing avatar uploadCan you show a screenshot?
In reply to: Disable or Hide Private Message ButtonFor public messages, try this:
add_filter( 'bp_get_send_public_message_button', function( $r ) { if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) { return $r; } else { $r['component'] = ''; return $r; } } );In reply to: Registration page does not workTry doing everything together. So you should be testing under the following:
- Twenty Fifteen
- No plugins activated aside from BuddyPress
- Nothing in functions.php
- No bp-custom.php file
- Latest WP
- Latest BP
That should make sure there’s no custom JavaScript running.
To take things further you could test on a fresh database.
In reply to: Group forum style questionbuddypress.php is a generic template to be using. Take a look at the Template Hierarchy article for info on the various templates available to BuddyPress.
This bbPress article will also be useful: https://codex.bbpress.org/themes/theme-compatibility/
In reply to: Chaning DB prefixHow are you changing your WordPress table prefix?
In reply to: Where’s the plugins directory page?You should be able to go to Plugins > Add new in your WordPress admin area.
In reply to: Registration page does not workI’m trying to think if there’s anything else you can check. Humm? Usually in cases such as this the problem is caused by either:
- a plugin
- your active theme
- something inside bp-custom.php (if you have one)
- something inside functions.php
It’s strange things work in Chrome but not in FF. I’m wondering if the issue could be JavaScript related?
In reply to: Registration page does not workDo you have a bp-custom.php file? If so, make sure there’s no code snippets in that. The aim is to remove anything that might be causing the reg page to not work. I’ve tested on a fresh install running Twenty Thirteen and can’t reproduce the problem. Also make sure you’ve upgraded BP to the latest version.
In reply to: buddypress upload button goneHi Sammy
What theme are you using and what plugins do you have activated?
In reply to: Disable or Hide Private Message ButtonTry this:
add_filter( 'bp_get_send_message_button', function( $array ) { if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) { return $array; } else { return ''; } } );