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, Can't move existing Polls?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

klub
Starting Member

USA
37 Posts

Posted - 18 May 2006 :  12:25:11  Show Profile
I've been using the poll mod from davio for a few weeks now, and i havn't had anything wrong until one of my moderators told me he couldn't move a poll to another category. I've tried this myself with no luck.

any ideas?

"Kids, you tried your best and you failed miserably. The lesson is, never try"

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 May 2006 :  12:49:24  Show Profile
Why can't he or you move the poll to another category or forum? You say you can't but not stating why you can't.

Do you not see the option to change the forum of the topic when editing it?
Do you get an error when editing the topic?
Do you not see the poll in the new forum/category when you try to move it?

You move a poll same way you move a regular topic.

Support Snitz Forums
Go to Top of Page

klub
Starting Member

USA
37 Posts

Posted - 18 May 2006 :  12:59:12  Show Profile
quote:
Originally posted by Davio

Why can't he or you move the poll to another category or forum? You say you can't but not stating why you can't.

Do you not see the option to change the forum of the topic when editing it?
Do you get an error when editing the topic?
Do you not see the poll in the new forum/category when you try to move it?

You move a poll same way you move a regular topic.



i have the ability to edit it and move it, but i don't "physically" move it. So your third option.

"Kids, you tried your best and you failed miserably. The lesson is, never try"
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 May 2006 :  13:48:59  Show Profile
So you go through the option of moving it, but in the end the poll topic stays in the same forum?

Then check your post_info.asp file. Probably missed some poll mod code. Can post a link to a txt version of your post_info.asp file.

Support Snitz Forums
Go to Top of Page

klub
Starting Member

USA
37 Posts

Posted - 18 May 2006 :  14:06:23  Show Profile
Yes.

here is my post_info.txt file.

"Kids, you tried your best and you failed miserably. The lesson is, never try"

Edited by - klub on 18 May 2006 14:08:39
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 May 2006 :  17:09:19  Show Profile
Find line 661 in your post_info.asp file.
	if Request.Form("resetpoll") = "1" then
		'### Delete poll votes from POLL_VOTES table for this topic
		strSql = "DELETE FROM " & strTablePrefix & "POLL_VOTES "
		strSql = strSql & "WHERE " & strTablePrefix & "POLL_VOTES.TOPIC_ID = " & Topic_ID
		my_Conn.Execute(strSql),,adCmdText + adExecuteNoRecords
	end if
end if
'#########################################################################

my_Conn.Execute(strSql),,adCmdText + adExecuteNoRecords '<---Line 661

'# Subscribe checkbox start ##
if request.form("TNotify") <> "" then
	if request.form("TNotify") = "1" then
		AddSubscription "TOPIC", MemberID, Cat_ID, Forum_ID, Topic_ID
	elseif request.form("TNotify") = "0" then
		DeleteSubscription "TOPIC", MemberID, Cat_ID, Forum_ID, Topic_ID
	end if
end if
'## Subscribe checkbox end ##



Move it to the line after line 631.
if ForumChkSkipAllowed = 1 then
	if Request.Form("sticky") = 1 then
		strSql = strSql & ", T_STICKY = " & 1
		strSql = strSql & ", T_ARCHIVE_FLAG = " & 0
	else
		strSql = strSql & ", T_STICKY = " & 0
		strSql = strSql & ", T_ARCHIVE_FLAG = " & 1
	end if
end if
strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID '<--Line 631

my_Conn.Execute(strSql),,adCmdText + adExecuteNoRecords '<--Put it here

'############################ Poll Mod ###################################
if Request.Form("poll") = "1" then
	'### Update poll answers and counts
	strSql = "UPDATE " & strTablePrefix & "POLLS "
	strSql = strSql & " SET P_WHOVOTES = '" & chkString(Request.Form("WhoVotes"),"SQLString") & "', "
	strSql = strSql & " 		CAT_ID = " & cLng(aryForum(0)) & ", "
	strSql = strSql & "		FORUM_ID = " & cLng(aryForum(1)) & ", "
	for i = 1 to CInt(Request.Form("count"))

Support Snitz Forums
Go to Top of Page

klub
Starting Member

USA
37 Posts

Posted - 18 May 2006 :  18:09:13  Show Profile
that worked, thanks again davio.

"Kids, you tried your best and you failed miserably. The lesson is, never try"
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 May 2006 :  18:21:15  Show Profile
You're welcome.

Support Snitz Forums
Go to Top of Page

Gort
New Member

84 Posts

Posted - 21 July 2006 :  15:19:19  Show Profile
I am able to move polls, but then the poll itself disappears! The topic and all replies show up in the new category but the poll results and voting options have disapeared. any ideas?

Edited by - Gort on 21 July 2006 15:22:48
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.96 seconds. Powered By: Snitz Forums 2000 Version 3.4.07