Open Colind8 opened 7 months ago
Redo sorting and filter criteria along with adding search criteria. Also restructure how the list is made to make it easier to view for mobile users.
The current system isn't built on modularity and doesn't take advantage of mySQL's featureset.
Using common search engine functions will probably be an easy way to implement a more advanced sorting, filtering, searching system for the list.
sort:criteria - Sorts the list based on the following criteria: newest (default), oldest, leastvoted, mostvoted
sort:criteria
newest
oldest
leastvoted
mostvoted
Examples:
xd)poll list sort:oldest
xd)poll list sort:mostvoted
filter:critera,criteria,.. - Filters the list using one or more of the following criteria: none (default), voted, creator, notvoted, notcreator
filter:critera,criteria,..
none
voted
creator
notvoted
notcreator
xd)poll list filter:creator
xd)poll list filter:voted,creator
title:criteria
author:criteria
xd)poll list title:color
xd)poll list title:"would you rather"
xd)poll list author:colind8
You can use multiple of these functions at once
xd)poll list sort:oldest filter:creator
xd)poll list filter:creator title:cake
xd)poll list filter:notcreator,notvoted title:"would you rather" sort:mostvoted
Redo sorting and filter criteria along with adding search criteria. Also restructure how the list is made to make it easier to view for mobile users.
Why it should change?
The current system isn't built on modularity and doesn't take advantage of mySQL's featureset.
New "search criteria" suggestion
Using common search engine functions will probably be an easy way to implement a more advanced sorting, filtering, searching system for the list.
Sorting
sort:criteria
- Sorts the list based on the following criteria:newest
(default),oldest
,leastvoted
,mostvoted
Examples:
xd)poll list sort:oldest
xd)poll list sort:mostvoted
Filtering
filter:critera,criteria,..
- Filters the list using one or more of the following criteria:none
(default),voted
,creator
,notvoted
,notcreator
Examples:
xd)poll list filter:creator
xd)poll list filter:voted,creator
Searching
title:criteria
- Searches the list for a title that matches the criteriaauthor:criteria
- Searches the list for an author that matches the criteriaExamples:
xd)poll list title:color
xd)poll list title:"would you rather"
xd)poll list author:colind8
All together now
You can use multiple of these functions at once
Examples:
xd)poll list sort:oldest filter:creator
xd)poll list filter:creator title:cake
xd)poll list filter:notcreator,notvoted title:"would you rather" sort:mostvoted