Membership pro backend filter

  • reiyo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 weeks ago - 10 years 3 weeks ago #60311 by reiyo
Membership pro backend filter was created by reiyo
Hi,
I would like to thank you again for this great extension :)
I just have one thing the way the data is displayed in backend and add a country filter so I can choose people by country and know who registered from this country?

Where can I find this file? in subscribers tab I need to add filters and change the info displayed in table
Last edit: 10 years 3 weeks ago by reiyo.

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #60334 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Membership pro backend filter
Hi

You will need to modify code in several places:

1. administrator/components/com_osmembership/views/subscribers/tmpl/default.php to add filter dropdown

2. administrator/components/com_osmembership/models/subscribers.php to edit the SQL query to only get subscribers from the selected country in the dropdown above

Tuan

Please Log in or Create an account to join the conversation.

  • reiyo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 weeks ago - 10 years 3 weeks ago #60349 by reiyo
Replied by reiyo on topic Membership pro backend filter
I was on administrator/components/com_osmembership/views/subscribers/tmpl/default.php
and added the country list also I modified this file views/subscribers/view.html.php to get the country list from #__osmembership_countries
then I tried to modify this file
administrator/components/com_osmembership/models/subscribers.php
but the countries drop down list kept resetting by itself no idea why!
Anyway I changed my mind and added the country column to the __construct function in the $config [ 'search_fields' ] array and that was the easiest so now I can type any country name and I will get the result!

Thank you Tuan
Last edit: 10 years 3 weeks ago by reiyo.

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #60361 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Membership pro backend filter
@reiyo: I think it resets itself because you did something wrong with your code. If you want, you can submit a support ticket and I can help you with that bit of code

Tuan

Please Log in or Create an account to join the conversation.