Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Poll Question...er Question!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Poll Question...er Question!

 Post Reply Post Reply Page  12>
Author
Hawkeye View Drop Down
Groupie
Groupie


Joined: 05 January 2003
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawkeye Quote  Post ReplyReply Direct Link To This Post Topic: Poll Question...er Question!
    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!



Edited by Hawkeye
Back to Top
Hawkeye View Drop Down
Groupie
Groupie


Joined: 05 January 2003
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawkeye Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2003 at 5:41pm
Any ideas anyone?  Borg?
Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post 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.



Edited by Phat
Back to Top
Hawkeye View Drop Down
Groupie
Groupie


Joined: 05 January 2003
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawkeye Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2003 at 5:40pm

Thanks Phat - I'll give that a try!

 

Back to Top
Hawkeye View Drop Down
Groupie
Groupie


Joined: 05 January 2003
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawkeye Quote  Post ReplyReply Direct Link To This Post 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...

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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))

Back to Top
Hawkeye View Drop Down
Groupie
Groupie


Joined: 05 January 2003
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawkeye Quote  Post ReplyReply Direct Link To This Post 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).

 

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.