Adding a Poll Plugin to the Journal?

Posts related to the IMSLP Journal

Moderators: Philidor, NLewis

imslp
Site Admin
Posts: 1605
Joined: Thu Jan 01, 1970 12:00 am

Adding a Poll Plugin to the Journal?

Postby imslp » Thu May 12, 2011 4:19 pm

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?

Postby Philidor » Thu May 12, 2011 8:22 pm

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: 1605
Joined: Thu Jan 01, 1970 12:00 am

Re: Adding a Poll Plugin to the Journal?

Postby imslp » Thu May 12, 2011 9:05 pm

Wow... that was fast. ;)


Return to “Journal”

Who is online

Users browsing this forum: No registered users and 1 guest