Hi, I'm new here so bare with me... I'm trying to create a table/list voting systems that will allow users to vote for items in a list. It needs to work so items with the most likes will be at the top and the least likes will be at the bottom. Here is a mock-up of what I'm mean. Sorry for the crude drawing :/ The items in the list need to be clickable url links. I don't want it to update in real-time, but when the page is next loaded after a vote has been cast. It should be simple but so far I haven't been able to get what I want. I've tried messing around with lots of wordpress plugins but haven't found one which will do what I want. If anyone knows of a plugin/app that will do this, or if there's a way to do it in excel? Or if it would be best with html/css coding? I'm just looking for any advice or suggestions really. Sorry if this is the wrong place for this topic but I couldn't find anywhere more suitable. Many thanks in advance!
You want us to get naked (bare) with you? You should at least buy me dinner. ;-) I hope you meant to bear (as in work or support) with you. You will need to re-order your result table. You can do that server-side with PHP or the language of your choice, or client side with javascript. Look for scripts that sort tables by field. I'd recommend your doing it server-side using SQL to sort the query results. cheers, gary
This is fairly simple. You display a list (with only two entries, where one is just a vote button, this is not a table) sorted by two criteria, votes and "names" (in this case whatever is shown as the link). The votes registers in the database, and get pulled on next page refresh. If you don't want the page to reload every time a button is clicked, the voting needs to be done via javascript (Ajax).
The initial vote certainly may be a simple list, however the tabulated vote is, um, tabular data. Each count field belongs to a unique identifier, and you want to display that identifier with or without its vote count. But the identifier is sorted, not on its own value, but on another value of that record. Therefore, I talked of tables, not lists.
As long as you display only the actual element, not the vote count, it's NOT tabular data - it's a list, sorted by vote count. Yes, if you display the vote count, it can be argued that it is tabular data, but still it wouldn't warrant a table, really. Not for display purposes, at least. Maybe if it's very important to connect the element and the vote count, a table might be used, or even needed, but for the display of the list of elements, there's no real reason not to use a list, sorted on the server. The vote-button itself is just an addendum, a float: right; button, and not part of the data. Even with the vote count shown, it's not necessarily tabular data - it depends on what you want to do with the data, and how the relationship is.