Carsten Lund
Forum Replies Created
-
Forum: Plugins
In reply to: [Redis Object Cache] Does Redis actually work with BuddyPress?Thanks for the advice, I will do that.
Forum: Plugins
In reply to: [Getwid - Gutenberg Blocks] Change currency in Price List block?I have read somewere else that the dollar currency symbol is a placeholder. It would have been easier if there in settings were an option for setting the currency though. The placeholder is very tricky to work with.
Forum: Plugins
In reply to: [BP Profile Search] Default value for Member type field in search formHi Andrea, sure.
BP Profile Search
Version5.4.8PlatformBuddyPress 11.3.1ThemeGeneratePress Child 0.1Members index template/themes/generatepress_child/buddypress/members/index.phpMembers loop template/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/members-loop.phpForm template(s)/plugins/bp-profile-search/templates/members/bps-form-default.php
Forum: Plugins
In reply to: [BP Profile Search] Default value for Member type field in search formHi Andrea, thank you very much for the offer, just to be sure I made the right changes to the code, I paste it here:
add_action (‘bps_field_before_search_form’, ‘set_default’);
function set_default ($f)
{
if ($f->code == ‘field_4749’) // replace 247 with your gender field ID
{
$user_id = bp_loggedin_user_id ();
if ($user_id != 0)
{
if ($gender == ‘mand’) // Singular name here
$f->value = ‘kvinde’; // Member Type ID here
else if ($gender == ‘kvinde’) // Singular name here
$f->value = ‘mand’; // Member Type ID here
}
}
}Forum: Plugins
In reply to: [BP Profile Search] Default value for Member type field in search formHi Andrea, on my site Singular name and Member Type ID are the same, Could it be why it is not working?
View post on imgur.com
View post on imgur.com
Forum: Plugins
In reply to: [BP Profile Search] jQuery UI Theme page load issueHi Andrea, thank you for the information, I’ll look forward to hearing from you if you find a solution.
Regards
Carsten
Forum: Plugins
In reply to: [BP Distance Search] Display distance instead of addressHi Andrea, thank you very much for your help, it’s working very well.
Regards
Carsten
Forum: Plugins
In reply to: [BP Profile Search] Default value for Member type field in search formHi Andrea, thank you very much for the snippet, I have replaced the field id, and I have changed the member type in my language as well. But unfortunately I see no effect of the code. Members are mixed and the field in the search form has not set to opposite gender. Any idea what could be wrong?
Is it supposed to work every time the search form is loaded?
Regards
Carsten
Forum: Plugins
In reply to: [BP Distance Search] Display distance instead of addressHi there, I have tried to remove the $label, $value, leaving the $distance, but then the search cycles endlessly without coming up with a search result.
These are the only options I see here?
Regards
Carsten
Forum: Plugins
In reply to: [BP Distance Search] Display distance instead of addressHi Andrea, thanks for the tip, I will look into that.
Regards
Carsten
Forum: Plugins
In reply to: [BP Profile Search] Default value for Member type field in search formHi Andrea, thanks for your reply. I’m not sure that I understand the question because I use both. I have defined my two member types in in Users -> Member Types, and uses the Single Member Type field, in Users -> Profile Fields for profile setup?
View post on imgur.com
View post on imgur.com
Forum: Plugins
In reply to: [GenerateBlocks] Button block issueOk, thanks for your help.
Forum: Plugins
In reply to: [GenerateBlocks] Button block issueThanks for the snippet, the background turns black now, like the hover background color. I fixed it by changing to hover background color to the stationary red button color. Apparantly it is not possible to have another background color for hover without getting this issue.
View post on imgur.com
The border-radius and padding also changes, should I add the padding and border radius from the block settings to the snippet to solve this?
View post on imgur.com
Forum: Plugins
In reply to: [GenerateBlocks] Button block issueHi Ying, the WP core blue button has a different behavior, and still not good. Btw. is there a way to inspect buttons when they are clicked to see where this styling comes from?
View post on imgur.com
View post on imgur.com
Hi Charles, thank you very much for the fast response and the update!
Regards
Carsten