qam4 / ebattles

Automatically exported from code.google.com/p/ebattles
1 stars 1 forks source link

Events list Pagination/Sorting #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From planettoon (http://www.psnbuddies.co.uk)

Would it be possible to order the Event List by a set critiria? For example, 
alphabetical or preferabbly an option where you choose the order (maybe some 
arrows to move them up and down the order list, or a field box to enter a 
number).

Also it would be nice to have an option to choose how many events are on page 
1. I'd like to have 10-15 events I think so they are all on page 1

Original issue reported on code.google.com by frederic...@gmail.com on 9 Oct 2009 at 9:27

GoogleCodeExporter commented 9 years ago
Sorting the events list is a good idea.  
I was first thinking I could do it with clickable headers, like the events 
standings 
tables.
But that would limit the sorting criteria to the event's name, game, type, 
start, 
end, number of players and number of games played.
Maybe it would be better like you said, to have a drop down box for the 
criteria.
Then you could choose from: latest, name, game, start date, number of players, 
number 
of games played, or anything else.
It might also be good to have a "Go to page" selector.

I also intend to add more fields to the games, namely genre (RTS, RPG ...), 
platform 
(PC, PS, XBox, Wii ...), description, developer, publisher... that will be used 
in 
part as events filter options.

I can also improve the pagination and add a drop down box to select the number 
of 
events in a page.
The choices would be something like 5, 10, 20, 50, 100.
This way, the user can choose what he prefers.
And the default would be set in the eBattles settings menu by the site admin.

The same method would be used for all the paginated tables in the plugin, so I 
don't 
know if there would be one default for each table or one for the whole plugin.

What do you think?

BTW, if you feel like changing the number of events per page manually:

in ebattles/events.php 
#67     $rowsPerPage = 5; 

Replace 5 with the number you want.

Original comment by frederic...@gmail.com on 9 Oct 2009 at 9:28

GoogleCodeExporter commented 9 years ago
I've started working on this. I've found a nice pagination class at Catch My 
Fame that 
works pretty well on the events list.
Now I need to use it everywhere else in the plugin, and add sorting to the 
events list.

Original comment by frederic...@gmail.com on 9 Oct 2009 at 9:28

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r122.

Original comment by frederic...@gmail.com on 9 Oct 2009 at 9:32