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
 Poll MOD: From 2.0.05--->2.06 - No Forum Code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

richfed
Average Member

United States
999 Posts

Posted - 06 September 2003 :  19:51:09  Show Profile  Visit richfed's Homepage
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  Show Profile
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
Go to Top of Page

Heynow
Junior Member

374 Posts

Posted - 06 September 2003 :  22:06:25  Show Profile  Visit Heynow's Homepage  Send Heynow an AOL message  Send Heynow a Yahoo! Message
That's all I did, uploaded the poll files and made the two changes and all works fine..


Political Forums
:::Stay n Chat
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 07 September 2003 :  11:19:58  Show Profile  Visit richfed's Homepage
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]
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 September 2003 :  19:06:30  Show Profile
What forum code are you using in the poll answers?

Support Snitz Forums
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 07 September 2003 :  19:54:38  Show Profile  Visit richfed's Homepage
I had tried the bold & italics code ... neither worked. I typed it in manually around the answers. Right now, I should say, I have reverted back to the 2.0.5 version ...

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 September 2003 :  20:05:28  Show Profile
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
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 07 September 2003 :  20:19:19  Show Profile  Visit n8pbm's Homepage
And I thought I did something wrong doing the upgrade. Glad I read this post

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 September 2003 :  23:01:38  Show Profile
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
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 07 September 2003 :  23:34:44  Show Profile  Visit n8pbm's Homepage
It seems to be working on my test system

Good work.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 08 September 2003 :  03:22:39  Show Profile
Good.

The mod has been updated.

Support Snitz Forums

Edited by - Davio on 08 September 2003 03:28:21
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 08 September 2003 :  05:14:46  Show Profile  Visit richfed's Homepage
Ah, thank you!!! For once, it wasn't me!!!

Appreciate your work on this MOD, Davio ... will try 'er out this evening!

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 19 September 2003 :  18:34:17  Show Profile  Visit richfed's Homepage
Just finally got back to implement this - works just fine now. Thanks!
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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07