Hey Bergamot, do you have some screens of the old extension? I already created a DiscussionID in the poll table, so it will be easy to update the extension
It looked a lot like your extension, but it was shown at the end of the first post in the discussion, and the poll-creating controls were added to the Start New Discussion form. No role-based permissions, just a "poll question" field and an expandable list of poll options.
I made some changes so the controls would be auto hidden until clicked on, and some minor style changes, but otherwise the version at my site is pretty much the version that skyfex wrote.
You've can now let users add a poll to their discussion. Only the discussion author can add, edit or delete the poll. You'll have to select the "Add new Poll" permission (in roles & permissions). Users with the permission "Poll Management" have full access to all polls and can add, edit and delete them. This should be a role for administators.
Also, I've removed the Active Poll from the panel. It's now forum preference which a user can turn on or off on their account page.
Bergamot, you create a Discussion, then you can add a poll to it using a new option on the sidebar when viewing the discussion.
Fantastic extension. One small issue I have is that the order of the options seems to reverse each time you save them poll, which is an issue if you want the options to appear in order (eg. 'Very good' first, 'good', 'ok', 'poor', then 'very poor' last)
Nice one Jazzy. Just one bug on my install. An error message on loading the account page, related to an enabled ShortStat:
Fatal error: Cannot redeclare shortstat_preferencesform() (previously declared in /home/.../public_html/forum/extensions/Poll/default.php:102) in /home/.../public_html/forum/extensions/ShortStat/default.php on line 1013
I get the following message above the forum header with Poll 1.1 enabled:
Notice: Undefined index: REWRITE_extension.php in /home/phorm/public_html/forum/library/Framework/Framework.Functions.php on line 453
I don't know if it's related to the one that other guy mentioned, but I figure I should let you know about it just in case...
just to let ya know, I just tried installing the poll and then went to add it to a discussion and just got a blank page. I do have the friendly urls extension installed so I'm thinking it could have something to do with that maybe?
Version 1.2 - 15.07.2006, Jazzman - Fixed preference form bug when you also use ShortStat extension - Added poll notification (members can turn it off in forum prefereces)
Comments
I made some changes so the controls would be auto hidden until clicked on, and some minor style changes, but otherwise the version at
my site is pretty much the version that skyfex wrote.
You've can now let users add a poll to their discussion. Only the discussion author can add, edit or delete the poll. You'll have to select the "Add new Poll" permission (in roles & permissions). Users with the permission "Poll Management" have full access to all polls and can add, edit and delete them. This should be a role for administators.
Also, I've removed the Active Poll from the panel. It's now forum preference which a user can turn on or off on their account page.
EDIT: Am I right in assuming this extension uses its own forms for adding/editing polls, rather than using the discussion form?
Fantastic extension. One small issue I have is that the order of the options seems to reverse each time you save them poll, which is an issue if you want the options to appear in order (eg. 'Very good' first, 'good', 'ok', 'poor', then 'very poor' last)
@droppyale: I've developed it on my Windows machine, but now that I'm at home I will test it on my linux PC with mod_rewrite to fix any bugs.
SO MANY JAZZMAN EXTENSIONS I WANT THEM ALL ON AT ONCE
Version 1.2 - 15.07.2006, Jazzman
- Fixed preference form bug when you also use ShortStat extension
- Added poll notification (members can turn it off in forum prefereces)
I assume I am...according to the update check, I have the latest version.