jaredatch / EA-Share-Count

A lean plugin that leverages SharedCount.com API to quickly retrieve, cache, and display various social sharing counts.
84 stars 13 forks source link

Create options page for different settings #10

Closed billerickson closed 8 years ago

billerickson commented 9 years ago

Right now you have to write a filter to set the API key and domain. It would be nice if there was a simple options page under Settings for managing it.

jaredatch commented 9 years ago

Things discussed for the settings page:

billerickson commented 8 years ago

Started with the api key and domain in 4a00d5982d55cad6088a75179ac090ab5c12f1be and cc693014c375ba5a4e4e2d72ab1c508b0a254d53 .

billerickson commented 8 years ago

Now have options for button style, genesis theme location, and field order.

Right now the field order is just a comma-separated text field. Drag and drop shit is not in my wheelhouse.

jaredatch commented 8 years ago

So all that is left, based on what we talked about last week, is the drag/drop buttons and then the cache durations (select box probably)?

billerickson commented 8 years ago

Correct. Wasn't sure how many options to give people with the cache durations.

Currently (using the filter) you can create as many increments as you want, and each increment will have a post date and a refresh period. We have 3 increments built-in, but that's not an actual limit.

In the options page we'll want to simplify this. Maybe grab the three increments we've already defined and let them select from a range of refresh periods. So they could say how often the cache is refreshed for posts published < 1 day ago, < 5 days ago, and more than 5 days ago.

jaredatch commented 8 years ago

Bulk of this is done in 1.1 so closing. Will add separate issues for javascript drag/drop services and cache durations.