Add another browse filter

I've scoured forums and found only partial or unanswered posts related to this. If someone can explain specifically how to do this...

 

The browse page has three default filters at the right for Age, Sex & Country. I'd like to add an additional filter/search based on a new predefined value I've set up.


What do I need to do and add to accomplish this?

 

Thanks in advance for any pearls of wisdom and experience you can share.

Quote · 14 Apr 2017

I found the Browse pretty useless on my particular site so I changed it to Quick Search. That allowed me to alter the block as I saw fit using the Search items in admin/builders/Profile Fields/Search Profiles.

Seee images below.

 

Code:

/templates/base/scripts/BxBaseIndexPageView.php

Line 236 (approx) Change Browse.php? to read search.php?

From_This.jpg · 42.9K · 172 views
To_This.jpg · 50.3K · 184 views
Quote · 15 Apr 2017

Hey John, I tried that but the replacing of the two didn't seem to have any impact on the page opening. But I achieved the same result by simply swapping out "browse.php" with "search.php" in the navigation menu

 

So how about this... How do I definitely remove those annoying filters that 99.999% of users won't ever use/need/want. You know the order by on the results side and the "online only & photo only" check boxes on the search side.

 

For the ordered by I'd assume just keeping it as ordered by latest activity without any user options is more than adequate

 

Thanks as always for your input and assistance.

Quote · 15 Apr 2017

Did you flush the cache and browser cache after making my changes? It's worked fine for me on several test sites and my live site.

I actually use those filters regularly on mine and other sites so I've never tried to remove them. Surely if people don't wish to use them, they won't tick the boxes?

Quote · 15 Apr 2017

I'll double check. Thanks again 

Quote · 15 Apr 2017

Hmmm, could there be a secondary place this needs to be changed? I checked the corresponding file in the template I use but that just imports everything from /templates/base/scripts/BxBaseIndexPageView.php

 

Attached are shots of the before and after I changed. Let me know if I did what you directed and if there is something else.

 

Quote · 16 Apr 2017

I just tried it on a test site using the code I gave you and it worked perfectly. Just the two changes to a single file. I didn't have to flush the cache either.

Maybe the other changes you made are conflicting, or do you have any 3rd party mods that may be overwriting the file? For example, being a template item another third party template may have an override file.

Quote · 17 Apr 2017

I use a custom modified EVO template but that shouldn't conflict. I think the AQB Profile Splitter Extension may be overriding it.

Quote · 17 Apr 2017

Have a look in the template's scripts directory for similar file. I use Agent Ransack which searches all files in a directory for words or strings. It's free and I couldn't live without it.

Quote · 17 Apr 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.