Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress integration #7

Open
collentine opened this issue Jul 30, 2015 · 9 comments
Open

Wordpress integration #7

collentine opened this issue Jul 30, 2015 · 9 comments
Labels

Comments

@collentine
Copy link
Contributor

https://github.com/xwolfde/Piratenkleider

^^ wordpress theme used by several pirate parties. Implementing the API there would be very useful but guess it's mostly on their side and not on the API?

@Putr
Copy link
Member

Putr commented Jul 30, 2015

It's on their side to develop a plugin that display, ... what ever they wish to display. I would very much like to develop some plugins, but I'm in dire need of skilled front-end (CSS, JS is not that big of a deail) developers. PPSI has a number of them (one is helping now) but most of them are very green (that's why they are working for free) and already very busy with our own projects (like nadzorovan.si which will be given to all other parties to deploy as their own).

I'm very much willing to help implement anything in PHP or extend the API to include endpoints that any plugin developer mite need, but some other party will have to supply the frontend developer for those, out of scope, ideas.

@PeterTheOne
Copy link
Member

@collentine: Could you write in more detail what a wordpress plugin/theme should display or how it could be used? Maybe I can find some time to make something happen.

@collentine
Copy link
Contributor Author

@PeterTheOne mostly just making the API calls easily accessible to people not used to working with API's.

e.g. dropdown lists or a way of adding several "key" stats of a country in an easy way. One example would be someone writing about a pirate party and creating a "country box" that could be added to bottom of articles with some stats. Another would be just developing a side-bar widget to fetch data from API and display all Pirate Parties (maybe with option of choosing what info to display - soc media, websites etc)

Widget example = something similar to what is displayed on http://pp-international.net/ but fetching stats from API to make sure they are up to date.

@PeterTheOne
Copy link
Member

@collentine I've startet something like this just now, check it out at https://github.com/PeterTheOne/wp-pirate-parties

@Putr Putr changed the title Collaborate with PiratenKleider Wordpress integration Feb 9, 2016
@Putr
Copy link
Member

Putr commented Feb 9, 2016

@PeterTheOne how far you with that? Do you need anything for the wp integration from the API side?

@PeterTheOne
Copy link
Member

@Putr For the older version of the data it works fine, haven't tested it since. But I will fix what is broken. It does some filtering and sorting that could be done by the API, otherwise it works just fine.

filters:
get parties who are (full, observer or not) member of ppi, ppeu or both.

sort:
by "native" party name
by english party name
by country name

@Putr
Copy link
Member

Putr commented Feb 9, 2016

Yes sorting and filtering will be an easy addition (and a core one at that) when I migrate the data into a proper DB. At the moment it's using redis which is a tad harder to work with. I used it because I did not thing we would be doing anything but displaying data at the time.

@PeterTheOne
Copy link
Member

Other filters we may want to add:
filter by regional or national parties
filter by continent
filter by country (for regional parties)

@PeterTheOne
Copy link
Member

@collentine I've updated the wordpress plugin, it works with the newest API version. To install just copy the files to *wordpress-install-dir*/wp-content/plugins/wp-pirate-parties, activate the plugin and add the widget to the sidebar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants