lasatalayas
Junior Member
109 Posts |
Posted - 05 June 2006 : 13:06:30
|
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 |
|
|