- Posts: 55
- Thank you received: 0
Members List different search terms
- Nicky Telles
- Topic Author
- Offline
- Senior Member
Less
More
2 years 31 minutes ago #151247
by Nicky Telles
Members List different search terms was created by Nicky Telles
Hi
Am I able to change the search terms/items on the members list, I want users to be able to search by Location, i.e. City, State and Country instead of Name, Email and ID.
Please advise.
Nicky
Am I able to change the search terms/items on the members list, I want users to be able to search by Location, i.e. City, State and Country instead of Name, Email and ID.
Please advise.
Nicky
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 11 months ago #151258
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Members List different search terms
Hello
That would require modify code. Look at the file components/com_osmembership/model/members.php, find this line of code:
Change it to:
Then check to see if it works?
Regards,
Tuan
That would require modify code. Look at the file components/com_osmembership/model/members.php, find this line of code:
Code:
$config['search_fields'] = ['tbl.first_name', 'tbl.last_name', 'tbl.membership_id', 'tbl.email', 'b.title', 'c.username', 'c.name'];
Change it to:
Code:
$config['search_fields'] = ['tbl.country', 'tbl.state', 'tbl.city'];
Then check to see if it works?
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.