Adding a Poll Plugin to the Journal?

Posts related to the IMSLP Journal

Moderators: Philidor, NLewis

Post Reply
imslp
Site Admin
Posts: 1642
Joined: Thu Jan 01, 1970 12:00 am

Adding a Poll Plugin to the Journal?

Post by imslp »

I was just wondering how hard it would be to add a polling plugin to the journal. We have a major project coming up, part of which requires polling. Plus, might be fun to run some small polls from time to time. :)
Philidor
Groundskeeper
Posts: 504
Joined: Mon Sep 21, 2009 1:32 pm
notabot: 42
notabot2: Human
Location: London, England
Contact:

Re: Adding a Poll Plugin to the Journal?

Post by Philidor »

Done! See Journal front page top right. It's recently installed (obviously) and not fully tested. I suspect some browsers will hate it - tested in Chrome only so far. Any problems please report here.

Authors should now have the permissions necessary to manage polls. To embed a poll in a post simply assemble your poll (options bottom left of dashboard) and insert...

Code: Select all

<?php get_poll(2); ?>
... in the body of the post, where 2 is your poll id. The current test poll is posted via a widget, but both methods are possible (simultaneously) - the same poll can be scattered about the Journal wherever you want.
imslp
Site Admin
Posts: 1642
Joined: Thu Jan 01, 1970 12:00 am

Re: Adding a Poll Plugin to the Journal?

Post by imslp »

Wow... that was fast. ;)
Post Reply