Disable search on Members List?

  • Melissa
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 7 months ago #149323 by Melissa
Disable search on Members List? was created by Melissa
Another question today: I've just noticed if I run a search on the Members list, if I go back or clear the search, it then shows me *all* members, not just the subscribers to the plan that was previously displayed. Actually, it looks like it's breaking the whole page - nothing else shows but the list after I hit the X to clear the search. How can I turn off the search option? 

(See attached)
Thanks,
Melissa

 

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

More
3 years 7 months ago #149334 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable search on Members List?
It's strange that subscribers from other plans are being displayed while clearing search. Could you please submit a support ticket sending us super admin account of your site and link to that page so that I can check to see why it is working like that?

Tuan

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

  • Melissa
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 7 months ago #149564 by Melissa
Replied by Melissa on topic Disable search on Members List?
Sorry for the delay in getting back to you: due to limitations on where my site can be accessed, getting you as super admin is challenging. Can you talk me through simply disabling the search?

Thanks,
Melissa

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

More
3 years 7 months ago #149583 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable search on Members List?
Edit the file components/com_osmembership/view/members/tmpl/default.php, remove this line of code:
Code:
<fieldset class="filters btn-toolbar <?php echo $clearfixClass; ?>"> <?php echo $this->loadTemplate('search'); ?> </fieldset>

Once the change is done, move the modified file to PATH_TO_TEMPLATE/html/com_osmembership/members folder so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan
The following user(s) said Thank You: Melissa

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

  • Melissa
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 7 months ago #149589 by Melissa
Replied by Melissa on topic Disable search on Members List?
Cutting that code worked but I didn't understand where to move the file to - when I moved it out of the tmpl folder, the page broke - so I'll just make a note to redo this change when I update, which will be soon.

Thanks,
Melissa

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

More
3 years 7 months ago #149593 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Disable search on Members List?
PATH_TO_TEMPLATE/html/com_osmembership/members is where you should move the modified file to. PATH_TO_TEMPLATE is path to the template you are using on your site. For example, if you use protostar template on your site, the file will need to be moved to templates/protostar/com_osmembership/members folder

(com_osmembership and members folder are not available by default, so you will need to create these folders if it is not available on your site yet)

Tuan

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