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 Resetting and ghost voters
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 30 August 2003 :  14:49:53  Show Profile
I've searhced on this issue... havnt found anything. I have two problems with my poll mod at the moment, just wondering if anyone could give any insight into them?

1) Users appear to be able to reset the poll results of their own polls. Is this by design? Is there anything I can do to stop this and make it so moderators of the forum / admins are the only ones who can reset a poll results. Its annoying that users can wipe out all of the results at once!

2) No-one can view the forum without logging in (its a private forum for a gaming clan).. yet sometimes the numbers who have voted do not tally up to the number of users listed in the "See who voted" section. I don't know if this is something to do with the mod I wrote for it to display who voted what (ref: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=47105) but I've tried to debug it but found nothing wrong. How can the number of users in "See who voted" be different to the total number listed as having voted? Is there a logical reason why this is the case, if no-one can even view the poll without logging in.

My forums are located at http://www.ianbergson.com/scissors. I have various other mods installed including: Poll "who voted" addon (as mentioned), PM, Avatar, Avatar Extended, AU, News announcer, Nikkol's who read, usergroups. The forum is the latest version - v3.4.03. I can provide a test account if it would be useful by email, but the forums are restricted public access.. tho I've tried to explain what I'm experiencing best I can. What text file links would be useful in diagnosing the problem?

Many Thanks in advance
-Altis Design

Altis Design offers all manner of web design services to a variety of commercial and personal clients

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 August 2003 :  18:51:49  Show Profile
To your first question:
Yes, users who have created thier own poll can reset thier own polls. If the poll is important to the entire community, why not lock the poll topic (not the poll) but leave the poll open? That way the author of the poll won't be able to reset the poll.
Or if it is an important poll, why not the admin or moderator create the poll?
The person who creates the poll should have some control over it and not leave it eniterly up to the admin/moderators to moderate polls.

To your second question:
Not sure how that turned out to be. But to have more control over who votes, why don't you set the poll to allow only Members to vote? Despite that you have to login first to the forum to view it.

Support Snitz Forums
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 30 August 2003 :  19:04:41  Show Profile
Thanks for your responses...

1) I would agree with you about the issue of users having control over their polls, but its beginning to bug me, and this is not a "normal" forum environment... its a small clan, where users should be able to post polls but not control the results by resetting as and when they wish. I like the idea about locking it.. but I would ideally prefer just to disable this option entirely unless they are a moderator of that forum or an admin. I don't know if this should be in Mod W/O Code forum, but how would I accomplish this? I guess it would involve checking the users m_lev before showing the box to check to reset the poll. The only problem I can see with that is that I dont know how to check if the moderator is a moderator of that particular forum, not a general moderator. How is this done, could you just point me to an existing snitz page where I could find some code to do this (eg. when working out if moderator can edit posts??).

2) I see, ok I understand this now. Could I just replace this dropdown with a hidden field, so its always "members only". Would this cause a problem, if I delete the dropdown and replace it with the equivalent in a hidden field?

Many thanks in advance for your help and your continuing patience!

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 August 2003 :  20:02:42  Show Profile
1) If you want to remove authors from resetting thier polls, find this bit of code in your post.asp file, it's around 1314:
if strRqMethod <> "Topic" and (AdminAllowed = "1" or mLev = "2") then
	Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
        	"<input name=""resetpoll"" type=""checkbox"" value=""1"">Check here to reset the poll votes.</font>" & vbNewLine 
end if
Remove the code in red.

2) You can remove the "everyone" option from the drop down box, and leave only the members only option. Or you can use an hidden field if you want. Just make sure the name of the hidden field is "WhoVotes" and the value is "members".

Support Snitz Forums
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 30 August 2003 :  20:36:43  Show Profile
Thanks very much for this Davio ! It works fine, and now it all works like I wanted it to, with no ghost voting and no problems with resetting of polls.

BTW --> I mailed you the information about that code add on to display who voted for what, and will package that up for a mod add on some time in the near future

Many Thanks for all your help
-Altis Design

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 August 2003 :  21:42:05  Show Profile
You're Welcome.

Yes, I got your email. You can go ahead and package it as an add-on to the poll mod.

Support Snitz Forums
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.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07