Well I got that problem fixed, but the poll still wouldn't display when I looked at the thread.
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...
Bergamot: Hmm.. Odd. Is your snapshot of 0.9.3 old? The thing is, if you echo the output, it just appears at the top of the entire Discussion form. If you add it to the body of the comment, it'll appear inside the comment (just the first comment for Polls). I have no idea why it wouldn't work for you.
Since when were people ever allowed to change their votes? It's not like you walk in on poll day, vote for someone, realise someone else is becoming more popular, and then go back and change yours?
I could make changing your vote an option. But it's harder to not let the user change their vote than it is letting them do it, so I won't do it right now =P
Hi all,
After seeing your poll extension I had to try 0.9.3 to install this. Being a compleet newbie to mysql, php and css it took me a litlle time to get it up and running, but I got it right now. Only problem: I can't get the poll working.
I installed it in the extensions folder. renamed poll.php to default.php to get it recognized by vanilla. no problems until I try to open a discussion. then about 8 errors are reported starting with this one:
Notice: Undefined index: Poll in vogelblik.nl/vanilla/library/Framework/Framework.Functions.php on line 369
the rest appear to be a result of this one
Warning: Missing argument 2 for addselect() in vogelblik.nl/vanilla/library/Framework/Framework.Class.SqlBuilder.php on line 85
Warning: Missing argument 4 for addwhere() in vogelblik.nl/vanilla/library/Framework/Framework.Class.SqlBuilder.php on line 114
Warning: Missing argument 5 for addwhere() in vogelblik.nl/vanilla/library/Framework/Framework.Class.SqlBuilder.php on line 114
Notice: Undefined index: DiscussionID in vogelblik.nl/vanilla/library/Framework/Framework.Class.SqlBuilder.php on line 115
Notice: Undefined index: in vogelblik.nl/vanilla/library/Framework/Framework.Class.SqlBuilder.php on line 115
Notice: Undefined index: = in vogelblik.nl/vanilla/library/Framework/Framework.Class.SqlBuilder.php on line 116
Notice: Undefined index: in vogelblik.nl/vanilla/library/Framework/Framework.Class.SqlBuilder.php on line 116
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
An error occured while getting the poll for this discussion.
Affected Elements
Poll.GetPollFromDiscussionID();
The error occurred on or near: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''=.' limit 0, 1' at line 1
any suggestions?
has the poll extension been updated for the latest vanilla release ? I doesn't give that indication on this dicussion but there appears to be an updated one in the addon
Comments
Open File:
Vanilla.Control.DiscussionForm
=================================================
Find on Line 97:
$ResultDiscussion = $dm->SaveDiscussion($this->Discussion);
Inset After:
$this->DelegateParameters["ResultDiscussion"] = &$ResultDiscussion;
$this->CallDelegate("PostSaveDiscussion");
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·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...
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·I kind of like the vote changing, it keeps the results lively.
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·