By William Matson on Sunday, 17 May 2015
Posted in General Issues
Replies 8
Likes 0
Views 694
Votes 0
Is it possible for the Administrator to make search filters that cannot be deleted by users?

Situation:
I made a search filter that included only 3 of the many searchable fields.
I named and saved this filter
I then added the link to that filter to the main menu (access for registered users only)
A user logs in
They select that filter from the mainmenu and the "Search Criteria" page opens.
The "Delete Filter" link is visible on the right side.
Clicking that link deletes the filter from the system

Can this deletion be prevented?

If not, how do I hide/remove the "Delete Filter" link? Can the Save Filter option remain available for users to make and save their custom filter?

I strongly recommend that you add the ability for the Administrator to make these "universal" search templates that are available for all users
Hello William,

I am really sorry for the delay of this reply as it is a weekend for us here. It's most likely that the search filter you have created isn't "site wide" because for site wide filters, they can only be deleted by site admins and not everyone. When creating a filter, the checkbox needs to be checked, http://screen.stackideas.com/2015-05-17_1719.png

The search filter would then appear in the user's listing on the left.
·
Sunday, 17 May 2015 17:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark

I logged in to the frontend as Administrator. I made a search filter and saved it as a sitewide filter. The filter appears in Advanced Search. It does not appear among the filters on the user Dashboard. Can it be made to appear on that list? Or perhaps within an Advanced Search module that can added on the left side?

I logged out, and then logged in as registered member (not an Administrator). The sitewide filter appears in Advanced Search, as above. However, I notice that the user has the ability to delete that filter from their individual profile. As a test, I deleted the filter. I then logged out, logged in as Administrator, and saw that the sitewide filter was still there. Which is good.

Is there any way to prevent the sitewide filter from being deleted by the user? In other words, the sitewide filters are read only and can only be modified or deleted by the Administrator?

A work-around that I will use is to add all sitewide filters to the Mainmenu, which will always be available even if a user accidentelly deletes the filter from their individual profile. Perhaps they could then add the sitewide filter back to their profile?
·
Monday, 18 May 2015 15:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

The user shouldn't see the new filter created for "site wide" and they shouldn't be able to delete it either. When a "site wide" filter is created, it will be displayed in the "Users" area and not the dashboard.

Since I can't reproduce this internally, if you want me to look into this, please provide us with the following access:

1. Joomla Back end
2. FTP
3. The user that is able to delete the site wide filter (they shouldn't be able to)
·
Tuesday, 19 May 2015 02:32
·
0 Likes
·
0 Votes
·
0 Comments
·
I have an odd problem. I am no longer able to save Site Wide filters

I logged in as a site administrator (super-user)
I added a test filter and saved as a site wide filter
I logged out
I then logged in as a register member
The site wide filter is not displayed

See attached screenshots

Login info in Site Details tab
·
Tuesday, 19 May 2015 05:21
·
0 Likes
·
0 Votes
·
0 Comments
·
I just re-read your posting
"When a "site wide" filter is created, it will be displayed in the "Users" area and not the dashboard."

What/where is the "Users" area?
·
Tuesday, 19 May 2015 05:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

I am sorry for the delayed response.

It seems like there is some confusion going on here. Allow me to explain further regarding on the sitewide search filter features. When Admin created the search filter in the advanced search area (dashboard area) and the checkbox "sitewide" is checked, the filter will only appear on the browse users page (users area) as you can see from my screenshot example below.
1) Admin creating site wide filter - http://screen.stackideas.com/2015-05-20_1254.png
2) Test user can see the filter from browse users page - http://screen.stackideas.com/2015-05-20_1255.png

I understand the expected behavior from you as it should also be displaying on the advanced search page and for me that is actually reasonable. I will forward this to our developers and see if they could do something about this. Thank you for the kind feedback.
·
Wednesday, 20 May 2015 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ezrul --

Thanks for your assistance. I see what is happening. A site-wide filter is a type of filter in which the Fields, the condition for each field, and the value for each field are preselected. The User has no ability to change the condition and the value. In reality, it's not an interactive filter (with preselected fields only), it's a filtered results utility.

Frankly, this really makes no sense from a user convenience standpoint. The Advanced Search utility does have a lot of flexibility, which is excellent. However, there can be certain basic searches which are likely useful for many, perhaps all, users. It would be valuable for the Administrator to design these search filters and offer them on a sitewide basis to all users. The Dating App that you provide does exactly this -- the Fields are preselected and the user enters the values -- it is an interactive filter that is "compiled" (if that is the proper word) into an App.

Are there any plans to provide the ability for the Administrator to offer site-wide user interactive filter(s)? These can appear in the Advanced Search sidebar, the User Dashboard sidebar, or placed in a module

Or perhaps enable the Administrator to make their own Apps similar to the Dating App?

As a temporary solution, I made a Search Filter, saved it, recorded the URL, then added the URL to the MainMenu. In this manner, the Filter is available to all Users. The problem is the User is then able to delete the filter by clicking the "Delete Filter" link. Though this isn't the best solution, until there is a permanent solution as discussed above, I would like to modify the template to hide the "Delete Filter" link. Which file and line number would I need to modify? See attached screen captures.

If the "Delete Filter" link is hidden, will the Save Filter link also be hidden? It would be best if the Save Filter link could remain visible and available to the Users for their personal custom filters.

Thanks for your help.
·
Wednesday, 20 May 2015 14:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

Can you download the attachment below and place it in the path below and see if this will fix the issue that you are facing currently?
1) /administrator/components/com_easysocial/models/search.php
2) /components/com_easysocial/themes/wireframe/advancedsearch/user/default.content.php

Keep us updated and see how it goes.
·
Wednesday, 20 May 2015 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post