Author |
Topic |
|
ChrisH
Starting Member
United Kingdom
6 Posts |
Posted - 16 April 2001 : 14:26:20
|
Onto a clean 3.1 SR4 release, I have installed this MOD, with the zip downloaded from Davio's site. Installation, no problem. Everything works how it should except for one annoying thing. You create a poll, say with 4 possible choices and post the topic, the topic always shows up the with 8 topics, 4 correctly labeled up and 4 blanks. Voting can still take place in the blanks, but obviously it's a bit meaningless. The database is served by MySQL if that helps.
Please help. Chris.
Moved by Richard from MOD Add-On Forum (W/Code) |
|
ChrisH
Starting Member
United Kingdom
6 Posts |
Posted - 18 April 2001 : 14:35:33
|
Well any ideas?
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 18 April 2001 : 14:56:17
|
in topic.asp look for
If vAnswers(nCount) <> "" Then
and change it to If vAnswers(nCount) <> " " Then
|
|
|
ChrisH
Starting Member
United Kingdom
6 Posts |
Posted - 18 April 2001 : 17:22:02
|
Hurray! It worked, was actually the other way around, I had to delete the space between the quotes, not add one. The result was success. Thank you.
Chris.
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 18 April 2001 : 17:46:41
|
You were using this on MySql?
I'll be sure to add the changes to the mod.
|
|
|
ChrisH
Starting Member
United Kingdom
6 Posts |
Posted - 25 April 2001 : 07:23:40
|
Spoke to soon. I found further occurances of the inital problem. Doing as HuwR suggested corrected the always 8 options displayed in a forum message. Problem is now present if you make the poll set as a featured poll, you have 8 voting options regardless. Also if you select view results you always get 8 option fields displayed.
Help please! Chris.
Edited by - ChrisH on 25 April 2001 07:24:52 |
|
|
ChrisH
Starting Member
United Kingdom
6 Posts |
Posted - 25 April 2001 : 17:11:10
|
Right an update, I have fixed the issue with the featured poll, that now correctly displays the right number of fields to vote in. To fix that I removed the space between the quotes on the line vAnswers(nCount) <> " " in default.asp
The other problem of whenever you display the results to the poll it always displays all 8 fields. I sorted by removing the space again between the quotes of all references to vAnswers(nCount) <> " " in topics.asp
Everything is now working wonderfully.
cheers, Chris.
Edited by - ChrisH on 25 April 2001 17:21:49 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 25 April 2001 : 17:26:05
|
I have added the fix for the problem you encountered earlier. Basically I added a Trim() around every variable that was checking for an empty space, and deleted the space between the quotes.
I tried this script on MySql and everything works as it should for me.
You would have to apply the same fixes on the default.asp page that you did on the topic.asp pages.
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 25 April 2001 : 17:29:18
|
Ok great. I was replying when you edited your post. Glad you got it fixed.
|
|
|
|
Topic |
|