Resource Filter by AddonsLab

Resource Filter by AddonsLab [Paid] 3.6.1

No permission to buy ($69.99)
AddonsLab updated Resource Filter by AddonsLab with a new update entry:

PHP error prevention with manually modified filter links, Elasticsearch 7.x support

If the filter URL is modified and the values of multiple-selection fields are changed intentionally (e.g. with an attempt to cause an error in the website or execute SQL injection), there would be a PHP error logged in the admin panel. However, this would not cause any visible errors or unexpected SQL queries. With this release, we have made sure these invalid values don't make their way to built-in XenForo functions that expect only valid values.

This version also fixes a compatibility...

Read the rest of this update entry...
 
A) Logical problem i can not solve

Cat A
Cat B


Both cats have a field "Cities" with Rom, Paris Ney York
Cat A should show the list of cities in sidebar => check in list
Cat B should not show it => uncheck in list

But both show the list! (i have checked this now 10 times A has checked the field, b not. To get rid of the list in B i have to uncheck the field itself for that cat -maybe run a cron? or change a cache?


B) An option to get rid of prefix search in single cats would be nice

C) If there are no prefixes and all other filter stuff is disabled, you still can see the filter popup

D) If list is in sidebar and you change something, you can see the number of results for a second, then it disappears.

If you do the same in the default place the number of results is shown.

E) It would be nice to get rid of the reviews in mobile view
 
A) Logical problem i can not solve

Cat A
Cat B


Both cats have a field "Cities" with Rom, Paris Ney York
Cat A should show the list of cities in sidebar => check in list
Cat B should not show it => uncheck in list

But both show the list! (i have checked this now 10 times A has checked the field, b not. To get rid of the list in B i have to uncheck the field itself for that cat -maybe run a cron? or change a cache?


B) An option to get rid of prefix search in single cats would be nice

C) If there are no prefixes and all other filter stuff is disabled, you still can see the filter popup

D) If list is in sidebar and you change something, you can see the number of results for a second, then it disappears.

If you do the same in the default place the number of results is shown.

E) It would be nice to get rid of the reviews in mobile view

Please provide relevant URLs that demonstrate the problem for us to better understand it, and we will update here with our thoughts.

Thank you!
 
Some ideas:

I have a field cities as destinations. I have added 20 cities, but i have only 5 resources useing 8 cities.
Then i dont want to see

Options in addon:
Empty filters:
fade = shows number of resources
hide = show no numbers
show normally = shows everywhere 0 ?!


I miss is to reduce the search field to that checkbox values we have a resource at all.
Not filtered = 0, but really no resource with that value.

In my example with 8 used cities i have 20 cities in the form-field.
This should be selectable for every field. (dont show really empty values 0/1)

Rom 1
Mailand 2
New York 0 <= should not be here, when there is no resource at all with New York.

---------------
When i have multi-selected fields i dont see the field match all/match any;
i remember to see it in an older version, but not now.

------------------
Two cols of checkboxes are ok if used xenforo default filters, but not in sidebar. (then the class listColumns needs to be changed)

----
When no filter is checked, it shows "resources found: 0"; but there are resources shown; users will not understand this.
Maybe as a trick: better text = "filtered resources: 0", because we dont use a filter. But normally we should read here the number of shown resources.
 
With hide i can show all filter options with a number or nothing.
It would be nice to hode the whole option at all.

Also it could be nice to sort them

a) all > 0 sort by default
b) all > 0 sort by {cnt}
c) show all with 0 under them
d) dont show with 0

here is a problem, i guess, because we have the count updated/filtred != count at all.
So there should be an option to hide at least this options that has no resource at all (unfiltered)
 
Last edited:
If i use select field for a checkbox_field i see the numbers (x).
If i use a multi-select i dont see the numbers.

The match any/all i have found - it has display:none; done by the js;


The field comes, when two checkboxes are checked. I think that should be always shown or faded like now. Probably the js > 1 could be >= 0 to solve it.
 
Last edited:
After playing around a while, here is my biggest problem from view of a user.

I have checkbox field with x options.
I add some resources.
The form allows only ONE option to select.

Now the counter changes all the time:

Absolut:
Rom 4
New York 3


When i choose New York, i see 3 resources;
the counter changes to:
Rom3
New York 3

This makes sense from a special point of view.
But in my case i just want to know how many resources i can have with
Rom or new York with any dependence to each other.
Then we should see always:

Rom 4
New York 3

For a user this is strange to see wrong numbers; especially when seeing 0, click that option and get something.


understand that we can collect:
1. all to Rom 4;
=> there are 3 also to New York

or 3 to New York,
yes 3 of them also to Rom

But in my case, i repeat myself, the absolut number should be shown.

To show no counter is no good idea, espacially when the counter is 0.

Is there a way to show the abolut numbers, please?
 
Ok, now i see that there is a sort also;
but i find no way to dont show the ones with absolut 0 resources.
 
It would be very nice if the both phrases for "prefix" could be own prefixes.
If you use the prefixes for cities for example; it makes sense to write "choose city by prefix" instead of "prefix" as Headline and text inside the field.
 
AddonsLab updated Resource Filter by AddonsLab with a new update entry:

Bug-fix: TypeError: Argument 1 passed to XF\Search\Search::getResultSet()

This version fixes a PHP error on the general search page introduced in version 3.4.0:
TypeError: Argument 1 passed to XF\Search\Search::getResultSet()
The new version is available for all licensed customers at

Thank you!

Read the rest of this update entry...
 
AddonsLab updated Resource Filter by AddonsLab with a new update entry:

Bug-fix: Elasticsearch error when prefix IDs are not numeric

The release fixes a bug, that would cause ES search error "Elasticsearch error: all shards failed". This would happen only if you have Multiple prefix search option activated, and if a user/bot manually modifies the URL to include invalid prefix IDs (which are normally numeric). This is not a security issue as an attacker would not get any error message except that searching failed.

The new version is available for all licensed customers at
[URL...

Read the rest of this update entry...
 
AddonsLab updated Resource Filter by AddonsLab with a new update entry:

Bug-fix: Error: Call to undefined method XF\Util\Arr::arrayColumn()

This version fixes the following PHP error when rebuilding custom fields:

Error: Call to undefined method XF\Util\Arr::arrayColumn()

The new version is available for all licensed customers at

Thank you!

Read the rest of this update entry...
 
I have tried another clean forum at the dev server.
The location addon doesnt show the select boxes for the location field in the RM like it does in threads.
Instead of threee selects for country, area, city we have the distance, km/miles select, zip or city and the select field for the country.

firefox_wdNusizeme.webp

in threads it looks ok.
 
One more very important thing from my view.
While more than 50% of users use now a mobile we have to overcome old thinking.

Easy apps like tinder rule the world for the upcoming generations.

Instead of clicking a category and search, these people needs one category and a filter.
Means that the categories of the RM should be a part of the search form at overview page.
 
I have compared now the templates for

alrf_resource_field_form_element
altf_resource_field_form_element

It looks like that the resources have another code; moving code from threads to resources seems to help.
Maybe the templates of rm-filter are not updated like for threads?
 
If i use parts of that template from threads (and change altf to alrf) i can see my selections with area and city working from area to cities.
But the filter dont work, seems missing data ... within 0 $info.templateParams.unit
 
Last edited:
Top Bottom