Author |
Topic |
|
richfed
Average Member
United States
999 Posts |
Posted - 06 September 2003 : 19:51:09
|
I had the Poll MOD, version 2.05, successfully running on my forum. Just attempted to upgrade to the new version, 2.0.6.
That should involve uploading the new files pop_poll.asp & inc_poll.asp, plus making a couple of changes to topic.asp.
Is that correct?
After doing so, I still can't see how I can add forum code to the poll answers. I tried "manually," but the answers showed the tags, not the actual formatting ... just like the previous versions would.
What might I have done incorrectly? |
Rich [size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1] |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 06 September 2003 : 21:10:19
|
There were 2 changes to topic.asp you should have made. Adding the formatStr() function around the vAnswers() array. When the answers are displayed before the users votes and after the user votes.
I had tested it before I uploaded the mod and know the changes I made work. You used the upgrade file correct? |
Support Snitz Forums
|
|
|
Heynow
Junior Member
374 Posts |
Posted - 06 September 2003 : 22:06:25
|
That's all I did, uploaded the poll files and made the two changes and all works fine.. |
Political Forums:::Stay n Chat
|
|
|
richfed
Average Member
United States
999 Posts |
Posted - 07 September 2003 : 11:19:58
|
Yes, Davio, the upgrade download is what I used.
I combed through the changes I made on topic.asp, but can't see anything wrong. Of course, with the Events Calender installed, there is a slight variance at the beginning, but it seems it would be ok ...
Here's a text version: topic.txt. Maybe you can spot something? Begins at line 1213 - you'll see a bit of code for the EC just above that ... |
Rich [size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1] |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 07 September 2003 : 19:06:30
|
What forum code are you using in the poll answers? |
Support Snitz Forums
|
|
|
richfed
Average Member
United States
999 Posts |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 07 September 2003 : 20:05:28
|
hmmm, you're right, bold and italics doesn't work. I only tried it with images.
Think I know what's missing...give me a few minutes. |
Support Snitz Forums
|
|
|
n8pbm
Junior Member
USA
212 Posts |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 07 September 2003 : 23:01:38
|
Ok, my bad. Sorry I didn't test this enough before upgrading it. Must be slacking in my coding.
There are 3 more changes needed to get forum code working with the poll answers.
In post.asp you need to find this bit of code and replace the code in green (this is all on one line. I broke it up for this post):for m = 1 to nCount
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & _
m & ":<input name=""answer" & m & """ type=""text"" value=""" & Trim(chkString(txtAns(m),"display")) & "" & _
" size=""40"" maxlength=""100""></font><br />" & vbNewLine
next With the following code in red:for m = 1 to nCount
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & _
m & ":<input name=""answer" & m & """ type=""text"" value=""" & Trim(CleanCode(txtAns(m))) & "" & _
" size=""40"" maxlength=""100""></font><br />" & vbNewLine
next In post_info.asp, look in the MethodType = "Topic" section. Find the following poll mod code and add the code in red (it's around line 988 in my file):for i = 1 to ubound(txtAns)
strSql = strSql & ", '" & chkString(txtAns(i),"") & "'"
strSql = strSql & ", " & 0
next Further up the same file, look in the MethodType = "EditTopic" section. Find the following poll mod code and add the code in red(it's around line 607 in my file):for i = 1 to CInt(Request.Form("count"))
strSql = strSql & "ANSWER" & CStr(i) & " = '" & chkString(txtAns(i),"") & "'"
if txtAns(i) = "" or chkString(Request.Form("resetpoll"),"SQLString") = "1" then
strSql = strSql & ", COUNT" & CStr(i) & " = " & 0
end if
... I will update the upgrade file in a sec if you get confused from these instructions.
If you guys can confirm that the changes work, I would be greatful. |
Support Snitz Forums
|
Edited by - Davio on 07 September 2003 23:03:02 |
|
|
n8pbm
Junior Member
USA
212 Posts |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 08 September 2003 : 03:22:39
|
Good.
The mod has been updated. |
Support Snitz Forums
|
Edited by - Davio on 08 September 2003 03:28:21 |
|
|
richfed
Average Member
United States
999 Posts |
|
richfed
Average Member
United States
999 Posts |
Posted - 19 September 2003 : 18:34:17
|
Just finally got back to implement this - works just fine now. Thanks! |
|
|
|
Topic |
|