Author |
Topic |
|
Norith
Starting Member
USA
3 Posts |
Posted - 11 May 2002 : 14:13:01
|
I have searched through oodles of help topics on this question and haven't found anything addressing my need. I would like to have the default poll be USER sensitive, rather than Machine sensitive. Because there are many menbers in my forum, who only have one computer in their household and several members within the same household, using the forum, it means that only ONE vote can be cast per computer. Setting up several user accounts on their machine, or deleting cookies for every user is impractical.
Is there a simple method by which the code can be altered to reflect a poll vote is virtual USER cookie sensitive, rather than depending on the machine's cookies? There are several instances where there is one computer servicing a number of individuals, and I feel that this should be taken into account when coding the forum.
Any information on this would be greatly appreciated, as I would like to address this ASAP and allow ALL members to be able to vote, whenever a new poll is posted as the default. Of course once a user has voted, it should also disappear the next time they login or refresh the page.
Edited by - Norith on 11 May 2002 14:14:39
Edited by - Nathan on 11 May 2002 14:42:43 |
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 11 May 2002 : 14:43:54
|
I think that is how Davio has set up the new version of the mod. It will probably be ready to download around the time 3.4 launches. . . . right?
Nathan Bales Snitz Exchange | Do's and Dont's |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 11 May 2002 : 14:47:33
|
That is what the Members Only vote option is for. That way if a member votes it stores the vote in the database and not in the cookies.
«------------------------------------------------------» Want to know when the next version comes out, as soon as possible? Join our Mailing Lists ! |
|
|
Norith
Starting Member
USA
3 Posts |
Posted - 11 May 2002 : 18:25:50
|
Thanks Gentlemen
I finally resolved the problem by using a suggestion from HuwR. It was done by inserting "& strDBNTUserName" into the appropriate places. For anyone else who wishes to effect the same changes and have their default active poll appear for each USER's cookies, instead of being limited to the machine's cookies, here's what I did.....
The THREE files involved are as follows...
Topic.asp inc_pollmentor.asp inc_top.asp
It should be noted that this was done on Huw's Modified Forum Code, but I imagine it should be much the same for Snitz original code 3.33.
Simply insert & strDBNTUserName after each occurence of request.cookies("poll") AND response.cookies("poll") in each of those three files, so it looks like this.... request.cookies("poll" & strDBNTUserName)("" & intActivePoll & "") OR response.cookies("poll" & strDBNTUserName)("" & intActivePoll & "")
There is no other code to add or change. All you are adding is & strDBNTUserName. How simple is that? I really think this resolves a very important restriction within the default active poll, for multiple users of one machine.
|
|
|
Cyberjunkie
Junior Member
111 Posts |
Posted - 12 May 2002 : 14:50:26
|
Hi I am using the Poll MOD which by the way is really great! I have actually just installed it, and wasnt aware of this problem, but if u choose the members only option for the Poll (as Davio mentioned), dosnt that solve this issue? I dont have any file named inc_pollmentor.asp?
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 12 May 2002 : 17:03:24
|
Huwr's moddified version is using an older version of the poll mod and doesn't include the Members Only voting options. quote: but if u choose the members only option for the Poll (as Davio mentioned), dosnt that solve this issue?
Well, I am the one developing the mod. You don't believe me?
The inc_pollmentor.asp file is used with Huwr's Moddified Forum.
«------------------------------------------------------» Want to know when the next version comes out, as soon as possible? Join our Mailing Lists !
Edited by - Davio on 12 May 2002 17:07:02 |
|
|
Cyberjunkie
Junior Member
111 Posts |
Posted - 12 May 2002 : 18:27:38
|
Davio...I do belive u..I was addressing Norith regarding his problem :) But I am having a problem with the MOD..I have turned the Members Only feature on but it seems like I cant vote with different usernames..actually I made this test poll..and was able to vote..but cant vote anymore. Another person tried to vote but couldnt..it keeps saying that "U have only one vote, go back and click wiew results to see the results" or sumthing like that..but the user hasnt voted at all!?
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 12 May 2002 : 20:09:35
|
A link to that test poll would be helpful. If you could register a test account for me to use, would be helpful.
«------------------------------------------------------» Want to know when the next version comes out, as soon as possible? Join our Mailing Lists ! |
|
|
Cyberjunkie
Junior Member
111 Posts |
|
Cyberjunkie
Junior Member
111 Posts |
Posted - 13 May 2002 : 09:48:08
|
Ehm..now I Come to think about it..I have already voted once with the Test user..hmm I'll make another Test user User: Test2 Pass: Test
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 13 May 2002 : 12:31:05
|
Well, i voted ok using the test account you provided.
«------------------------------------------------------» Want to know when the next version comes out, as soon as possible? Join our Mailing Lists ! |
|
|
Norith
Starting Member
USA
3 Posts |
Posted - 13 May 2002 : 12:31:33
|
:) It should be noted that my solution is relevant to Huw's Modified Forum Code, but I imagine it should be much the same for Snitz original code 3.33.
When I began this Poll project, I didn't have a "members only" version of the poll utility. However, it was redundant for me, because no one can get into the site without first becoming a member :)
Cyberjunkie... Did you cure your problem by coding yourself out of the equation? hehehehehehe. We all screw up after reading through zillions of lines of code and running the code to see if our brilliant ideas have worked. Don't sweat it man, it's FUN though isn't it?
|
|
|
Cyberjunkie
Junior Member
111 Posts |
Posted - 13 May 2002 : 16:24:28
|
Ok thanx Davio...it seems okay 6 ppl has voted so far..so I guess its working. Norith, nah man...I get totally lost just by looking at all those lines of code..i'll let the prof's. handle all that :)
|
|
|
|
Topic |
|