swalky
Forum Replies Created
-
Forum: Plugins
In reply to: [BP xProfile Location] How to restrict location to specific country?Can you recommend a good freelancer? All the ones I’ve contacted say it’s a big job and want $100+
Forum: Plugins
In reply to: [BP xProfile Location] How to restrict location to specific country?I’m not really good with script or CSS for that matter. What file does it go into?
Forum: Plugins
In reply to: [BP Profile Search] Trouble Creating Age RangeOooh sorry you meant the ‘Profile Search’ page 🙂 i have changed to the range option and this has now resolved the issue.
Thansk!
Forum: Plugins
In reply to: [BP Profile Search] Trouble Creating Age RangeThere is no range option from what i can see?
View screenshot here
Should i change to date selector as that gives a range option then?
Forum: Plugins
In reply to: [BP Profile Search] Trouble Creating Age RangeCan you please explain what you mean by range? I have implemented 18-99 as a search field in the drop down box.
Forum: Plugins
In reply to: [BP Profile Search] Trouble Creating Age RangeHi @dontdream
My bp-custom.php file now contains the combined snippets:
“<?php
//
add_filter (‘bps_xprofile_format’, ‘change_format’, 10, 2);
function change_format ($default, $field_id)
{
if ($field_id == 4235) return ‘decimal’;
return $default;
}
add_action (‘bps_field_before_search_form’, ‘change_display’);
function change_display ($f)
{
if ($f->code == ‘field_4235’ && $f->display == ‘range’)
{
$f->display = ‘range-select’;
$f->options = array (” => ”) + $f->options;
}
}”unfortunately, this has not fixed the issue?
- This reply was modified 5 years, 11 months ago by swalky.
Forum: Plugins
In reply to: [BP Profile Search] Trouble Creating Age RangeHi @dontdream, i have created the bp-custom.php file and added it via ftp to the plugins directory, it contains the following text:
“<?php
//
add_action (‘bps_field_before_search_form’, ‘change_display’);
function change_display ($f)
{
if ($f->code == ‘field_4235’ && $f->display == ‘range’)
{
$f->display = ‘range-select’;
$f->options = array (” => ”) + $f->options;
}
}”This unfortunately did not fix the issue and so i followed step 2 of your instructions and tried adding it to the functions.php instead, but received this error message:
“Your PHP code changes were rolled back due to an error on line 1579 of file wp-content/themes/gwangi/functions.php. Please fix and try saving again.
syntax error, unexpected end of file”
Forum: Plugins
In reply to: [BP Profile Search] Trouble Creating Age RangeAlso, where do i find the field i.D?
Forum: Plugins
In reply to: [BP Profile Search] Trouble Creating Age RangeThank you @dontdream for providing the snippets. Please could you confirm how i can access the ‘bp-custom.php:’ file through the wp-admin dashboard, as i’m not using an FTP file manager?
I cannot see the file under BuddyPress plugin files.
Forum: Plugins
In reply to: [BP Profile Search] Profile Fields Not WorkingOK thanks 😉
- This reply was modified 5 years, 11 months ago by swalky.
Forum: Plugins
In reply to: [BP Profile Search] Profile Fields Not WorkingOh i see… the required fields must be inputted to match the search directory. This account was created before i implemented the changes.
I just created another new account ‘odithevizsla’ and searched identical parameters and it still did not show?Yes unfortunately the fields are too small atm, although i have reported this to the authors and they assure me a fix will be available by next week.
I don’t know CSS to widen this manually.
Regards
Forum: Plugins
In reply to: [BP Profile Search] Profile Fields Not WorkingThe search field won’t show if you’re not registered
p.s i’ve now changed this.
- This reply was modified 5 years, 11 months ago by swalky.
Forum: Plugins
In reply to: [BP Profile Search] Profile Fields Not WorkingOh really?? Could you please inform me what browser you are using so i can fix? I am using chrome and it appears to work fine.
Some fields work and some don’t.
Take my account for example, I am 30 years old, male, location postcode ‘CM6’ and have a ‘Hungarian Vizsla’. I input this in to the profile search box on the home page and it says ‘Sorry, no members were found’?