-
Henry Wright replied to the topic How to move Profile window in the forum How-to & Troubleshooting 8 years, 8 months ago
The image isn’t displaying for me?
-
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
I don’t have enough data set up on my local install to test, but you could try this:
add_filter( 'bp_after_has_activities_parse_args', function( $retval ) {
[Read more]
$filter_query[] = array(
'relation' => 'OR',
array(
'column' => 'content',
'value' => 'philippine tube-nosed fruit bat',
'compare'… -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
@idlewanderer try specifying another fully-formed query. For example:
array(
[Read more]
'column' => 'content',
'value' => 'philippine tube-nosed fruit bat',
'compare' => 'LIKE',
array(
'column' => 'content',
'value' => 'sea lions',
'compare' => 'NOT LIKE'
)
),
array(
'column' => 'content',
'value'… -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
Sure! Accepted operators are
=
,!=
,>
,>=
,<
,<=
,IN
,NOT IN
,LIKE
,NOT LIKE
,BETWEEN
,NOT BETWEEN
,REGEXP
,NOT REGEXP
andRLIKE
.So perhaps try
NOT LIKE
. -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
I guess I can add as many terms as I like now?
We’ve specified
OR
as the relationship between the activity queries so you can add as many as you like. For example:array(
[Read more]
'column' => 'content',
'value' => 'philippine tube-nosed fruit bat',
'compare' => 'LIKE'
),
array(
'column' => 'content',
'value' => 'nyctimene… -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
Ah, that’s not quite how to use it. You should filter inside the function you’re hooking to
bp_after_has_activities_parse_args
. For example:add_filter( 'bp_after_has_activities_parse_args', function( $retval ) {
[Read more]
$filter_query[] = array(
'relation' => 'OR',
array(
'column' => 'content',
'value' =>… -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
So here’s my stab at the problem:
$filter_query[] = array(
[Read more]
'relation' => 'OR',
array(
'column' => 'content',
'value' => 'philippine tube-nosed fruit bat',
'compare' => 'LIKE'
),
array(
'column' => 'content',
'value' => 'nyctimene rabori',
'compare' => 'LIKE'… -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
Because your query has become more complex than a single search term or phrase, I think you’ll need to use
meta_query
orfilter_query
instead. -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
The
search_terms
parameter 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. -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
The search terms should be passed as a
string
just 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…[Read more] -
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
Do you think this will work?
I don’t think so. The param is actually
search_terms
, notsearch_term
-
Henry Wright replied to the topic Compose private message issues in BP v2.5.0/2.5.1 in the forum How-to & Troubleshooting 8 years, 8 months ago
Hi @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:
-
Henry Wright replied to the topic How to create activity streams based on words or hashtags? in the forum How-to & Troubleshooting 8 years, 8 months ago
You can add a custom function to the
bp_after_has_activities_parse_args
filter 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;
} ); -
Henry Wright replied to the topic How to replace Username with Email only on login form ? in the forum How-to & Troubleshooting 8 years, 8 months ago
If you use the Theme My Login plugin, you can customise the login template quite easily.
-
Henry Wright replied to the topic There was a problem cropping your profile photo. in the forum How-to & Troubleshooting 8 years, 8 months ago
Great 😀
-
Henry Wright replied to the topic There was a problem cropping your profile photo. in the forum How-to & Troubleshooting 8 years, 8 months ago
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?
-
Henry Wright replied to the topic How to show "updates" as default in activity? in the forum How-to & Troubleshooting 8 years, 8 months ago
Can you show us the code you’ve tried?
-
Henry Wright replied to the topic Single login for multisite in the forum Showcase 8 years, 8 months ago
The Jetpack plugin supports single sign on. When you network activate it, you should see a Jetpack > Settings tab in your network admin.
-
Henry Wright replied to the topic Where's the plugins directory page? in the forum Third Party Plugins 8 years, 8 months ago
-
Henry Wright replied to the topic Register Page Multi Language Help in the forum How-to & Troubleshooting 8 years, 8 months ago
There 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:
- Load More
@henrywright
Active 8 months, 1 week ago