Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 MOD: Poll (by slemieux) Problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ChrisH
Starting Member

United Kingdom
6 Posts

Posted - 16 April 2001 :  14:26:20  Show Profile
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  Show Profile
Well any ideas?

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 18 April 2001 :  14:56:17  Show Profile  Visit HuwR's Homepage
in topic.asp look for

If vAnswers(nCount) <> "" Then

and change it to If vAnswers(nCount) <> " " Then

Go to Top of Page

ChrisH
Starting Member

United Kingdom
6 Posts

Posted - 18 April 2001 :  17:22:02  Show Profile
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.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 April 2001 :  17:46:41  Show Profile
You were using this on MySql?

I'll be sure to add the changes to the mod.

Go to Top of Page

ChrisH
Starting Member

United Kingdom
6 Posts

Posted - 25 April 2001 :  07:23:40  Show Profile
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
Go to Top of Page

ChrisH
Starting Member

United Kingdom
6 Posts

Posted - 25 April 2001 :  17:11:10  Show Profile
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
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 25 April 2001 :  17:26:05  Show Profile
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.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 25 April 2001 :  17:29:18  Show Profile
Ok great. I was replying when you edited your post. Glad you got it fixed.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07