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 - Who voted which way
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

lasatalayas
Junior Member

109 Posts

Posted - 05 June 2006 :  08:58:46  Show Profile
Firstly having just installed this Mod I'd like to say how pleased I am with it. The only problem I had was that two new tables could be created in my Access database so I had to create each table manually. (By the way I've had this problem before installing mods).

My major requirement is to see the response provided by each individual member. So in FORUM_POLL_VOTES I'd like to see a field which records the integer of the members answer.

Can this be done?

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 June 2006 :  12:56:16  Show Profile
It can be done, but it hasn't been done yet. Unless you are willing to make a try at coding it.
It's one of the features I am implementing for version 3 of the poll mod.

Support Snitz Forums
Go to Top of Page

lasatalayas
Junior Member

109 Posts

Posted - 05 June 2006 :  13:06:30  Show Profile
Well I've had a quick look but can't quite work it all out.
Obviously I'd need to add an extra in the POLL_VOTES table and also do a small change to the Sub UpdateVote in inc_func_common.
However I can't see, in topic.asp, where to pick up the integer for the option polled prior to the 'Call UpdateVote' around line 534.
Is it perhaps the variable nNumber?
...............
Well this seems to work
topic.asp line 534
Call UpdateVote(nNumber, "0", MemberID, Topic_ID, Forum_ID, Cat_ID)

inc_func-common line 102
Sub UpdateVote(pCount, pGuest_Vote, pMember_ID, pTopic_ID, pForum_ID, pCat_ID)
if strWhoVotes = "members" then '### Members Only Mode
'## Insert vote into POLL_VOTES table
'############# Poll Mod Update 2.0.4 -> 2.0.5 ############
' Change strMemberTablePrefix -> strTablePrefix
strSql = "INSERT INTO " & strTablePrefix & "POLL_VOTES (COUNT, GUEST_VOTE, MEMBER_ID, TOPIC_ID, FORUM_ID, CAT_ID)" & _
"VALUES (" & pCount & ", " & pGuest_Vote & ", " & pMember_ID & ", " & pTopic_ID & ", " & pForum_ID & ", " & pCat_ID & ")"

A bit of a bodge probably as no doubt some changes are needed elsewhere. But it should suit my immediate needs.

Edited by - lasatalayas on 05 June 2006 13:36:47
Go to Top of Page

cspelts
Starting Member

9 Posts

Posted - 09 June 2006 :  07:28:21  Show Profile
I've been trying to do the same thing - it's all in this thread:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61682

Davio, can you provide any hints on how to accomplish this?
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 4.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07