Print Page | Close Window

Poll Question...er Question!

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5580
Printed Date: 03 April 2026 at 5:10am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Poll Question...er Question!
Posted By: Hawkeye
Subject: Poll Question...er Question!
Date Posted: 07 September 2003 at 6:52am

Ok, I asked this before and got some info, but I need more detail.  I'm sure you have noticed that the field length for the "Question" field of a new poll is VERY short?  I get basically half a sentence entered before I hit the limit, which means I can't have a meaningful poll question...just not enough space.

Someone told me that the database had to be changed to increase this field length.  Here are my questions:

1.)  Where, specifically in the database is this located?  I am determined to go in there this time and make the change (I have access XP)! 

2.)  Are there settings in any of the other files that need to be changed?

3.)  Will this have any ill effect on the forum?

Thanks!




Replies:
Posted By: Hawkeye
Date Posted: 08 September 2003 at 5:41pm
Any ideas anyone?  Borg?


Posted By: Phat
Date Posted: 08 September 2003 at 6:28pm

If you go open the database and find the table tblPoll then open it and find the field Poll_question. Thisis hte field that holds your question. Field length is set to 70 at the moment change to whatever you want.

Not sure about changing the field length in the asp page. You would have to find where it is set.



-------------
http://buildit.sitesell.com/sitebuildithome.html - Get a website that sells


Posted By: Phat
Date Posted: 08 September 2003 at 9:21pm

I think i found it. Go to the includes folder and open poll_form_inc.asp

You will see the following

%> <tr>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
        </tr>
 <tr>
         <td align="right" height="22" class="text"><% = strTxtPollQuestion %>*:</td>
         <td height="22"><input name="pollQuestion" type="text" size="30" maxlength="41"></td>
        </tr><%

Change to

%> <tr>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
        </tr>
 <tr>
         <td align="right" height="22" class="text"><% = strTxtPollQuestion %>*:</td>
         <td height="22"><input name="pollQuestion" type="text" size="50" maxlength="70"></td>
        </tr><%

The size will change the size in the screen and maxlength will chnage the amount of text allowed.



-------------
http://buildit.sitesell.com/sitebuildithome.html - Get a website that sells


Posted By: Hawkeye
Date Posted: 09 September 2003 at 5:40pm

Thanks Phat - I'll give that a try!

 



Posted By: Hawkeye
Date Posted: 09 September 2003 at 7:16pm

Acki...didn't work (made all of the above changes).  In the ASP I changed 41 to 150, but when I go to create a poll I still have 41. 

So, we're missing a 41 somewhere...I'll keep looking also...

 



Posted By: WebWiz-Bruce
Date Posted: 10 September 2003 at 3:47am

Look for this part in the post_message.asp file:-

'********************************************
'*** Read in poll details (if Poll)   ***
'********************************************

'If this is a poll then clean read in the poll details
If strMode = "poll" AND blnPollCreate Then

 'Read in poll question and multiple votes
 strPollQuestion = Trim(Mid(Request.Form("pollQuestion"), 1, 41))



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Hawkeye
Date Posted: 10 September 2003 at 12:19pm

Great, thanks Borg...I imagine that's what we missed and will try it as soon as possible.  I assume the change still has to be made in the poll_form_inc.asp file also?

How about the database change (field length of 70)?  Is all of it necessary?  I don't want to make any changes that aren't needed.  The changes in the ASP files make sense to me, but I didn't see where the field length of 70 in the database came into play (since the field limit was actually 41 as imposed by the asp files).

 



Posted By: WebWiz-Bruce
Date Posted: 11 September 2003 at 2:28am
You need to increase the field size as well as the input is run through filters that will encode the text increasing the number of characters.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Hawkeye
Date Posted: 11 September 2003 at 8:32am
Ok, thanks!


Posted By: Hawkeye
Date Posted: 14 September 2003 at 7:41am

::sigh::  

After making all of the changes in this thread, I am still limited to 41 characters in the Poll question field.  We are still missing something.

Has ANYONE actually gotten this to work?   

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net