Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free: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'm working on a Poll extension to Vanilla. I haven't gotten to the PHP part yet, but I'd like some feedback on the default style and javascript mechanism.
http://bytetastic.com/vanilla/poll/
I'm not sure how to place it in the discussion though. Suggestions?
I'm new to Vanilla development though, so I'd like to know.. would this be possible with an extension alone? What should I do to make it easy for the user to set up the tables required (an install script?)
I'd like to get some tips on where to start. I'm experienced with PHP, and I've already written two patches (for the Opera and Safari bug), so I could figure it out myself, but it would be nice to get some tips from those with more experience writing extensions to vanilla.
`PollID` int(8) NOT NULL auto_increment,
`DiscussionID` int(8) NOT NULL default '0',
`Title` varchar(255) NOT NULL default '',
`Options` text `PollID` int(8) default NULL,
`UserID` int(10) default NULL,
`Vote` int(3) NOT NULLCREATE 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;
Open File:
Vanilla.Control.DiscussionForm
=================================================
Find on Line 97:
$ResultDiscussion = $dm->SaveDiscussion($this->Discussion);
Inset After:
$this->DelegateParameters["ResultDiscussion"] = &$ResultDiscussion;
$this->CallDelegate("PostSaveDiscussion");
1 to 46 of 46