HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Filterbyprefix 1.3

Filterbyprefix - A Vanilla Forums plugin in that filters discussions based on prefixes specified in the URL.

Important: This plugin requires the PrefixDiscussion plugin by R_J.

Recognition: This plugin is based on hgtonight's Zero Comments plugin. I also owe hgtonight, R_J and others many thanks for assisting by answering my many questions and offering useful pointers. I couldn't have done this without the community.

This plugin filters the discussion list based on the value of the prefix on discussion entries. The prefix has to be set via the PrefixDiscussion plugin.

Filtering is managed via the &filter= parameter added to the URL. This may look weird at first, but consider that on our non-public forum we changed the discussion list by making the displayed prefix a link so that when a user clicks on the prefix he/she will get a filtered list based on the clicked prefix.

Specifying prefix parameters:

1-forum/discussions/filtebyprefix/&filter=Test Only display discussions with the "Test" prefix

2-forum/discussions/filtebyprefix/&filter=* To filter by any prefix (hiding discussions without a prefix)

3-forum/discussions/filtebyprefix/&filter=- To filter by no prefix (hiding discussions with a prefix)

If you peek at the source you will see that there is a &C= filter parameter for category id (to filter on both category and prefix).

Change Log:
1.1 - Initial Release
1.2 - Removed handling of the reserved "Attention" prefix and improved performance by altering the SQL statements.

No warranty whatsoever is implied by releasing this plugin to the Vanilla community.

Screenshots

Questions