Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Poll Extension for Vanilla 0.9.3
This discussion has been closed.
Comments
Sometimes you might just want people to vote on something but not wax lyrical.
I reckon an admin option to have the thread closed and stickied but still be votable in would be useful.
Of course, I like complicating things.
I would be happy to install your extension on my site; let's just say that if it works there, it'll work anywhere
Poll Extension 0.1
Which requires Vanilla 0.9.3 of course.
To use, you need to install two tables:
CREATE TABLE `LUM_Poll` ( `PollID` int(8) NOT NULL auto_increment, `DiscussionID` int(8) NOT NULL default '0', `Title` varchar(255) NOT NULL default '', `Options` text, PRIMARY KEY (`PollID`) ) ENGINE=MyISAM; CREATE TABLE `LUM_PollVote` ( `PollID` int(8) default NULL, `UserID` int(10) default NULL, `Vote` int(3) NOT NULL ) ENGINE=MyISAM;
I'll write a PHP script to do it some other time.
You can go to http://bytetastic.com/vanilla/forum/ to see what it's like.
You can log in with username "User1" through "User7", and password "vanilla".
Copied the files into the extension folder, made the two tables in the database, enabled the extension, started a new discussion, made some poll options and a question (the form works great), but no poll appears in the post.
I checked the database, and the two poll tables are empty.
Tomorrow I'll do some debugging and see if the delegates you hooked into are even there in my copy.
Open File: Vanilla.Control.DiscussionForm ================================================= Find on Line 97: $ResultDiscussion = $dm->SaveDiscussion($this->Discussion); Inset After: $this->DelegateParameters["ResultDiscussion"] = &$ResultDiscussion; $this->CallDelegate("PostSaveDiscussion");
In the end I discovered that "$Comment->Body = $output.$Comment->Body;" wasn't doing anything, so I replaced it with "echo($output);" and everything worked.
Now, to figure out why the attachment extension is having the same problem...
I kind of like the vote changing, it keeps the results lively.