Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
About Polls
Topic Started: Apr 3 2009, 08:45 PM (344 Views)
Falconias
Member
[ * ]
Is there any way to hide the results of a poll, at least for a period of time, from the viewers?

-Falc.

(s4.zetaboards.com/EquinoxNS)

(EDIT: This may or may not include codes.)
Edited by Falconias, Apr 3 2009, 08:47 PM.
Offline Profile Quote Post Goto Top
 
Renegade605
Member Avatar
The Pneumatic Destroyer
[ *  *  * ]
Code: HTML
 
<script type="text/javascript">
//<![CDATA[
$(function () { $(".poll:contains('Total Votes')").remove(); });
//]]>
</script>


EDIT: I guess I could include a little instruction, couldn't I?

Put that code in ACP -> Board Template -> Javascripts
Then just remove it when you want users to be able to see it again.
Edited by Renegade605, Apr 3 2009, 11:06 PM.
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Would that affect all polls? what if you only wanted to hide some results but not all
Quote Post Goto Top
 
Roby
Member Avatar
#27

peteh
Apr 3 2009, 11:27 PM
Would that affect all polls? what if you only wanted to hide some results but not all
If this person wants to hide specific results, they need to specify.
Yes it would affect all polls, which is why you could do this to only apply to one topic:
Code: HTML
 
<script type="text/javascript">
//<![CDATA[
if(location.href.match('/topic/TOPIC_NUMBER/')){$(function () { $(".poll:contains('Total Votes')").hide(); });}
//]]>
</script>

Just edit that part that says TOPIC_NUMBER with the topic number of the topic. (It's in your address bar; http://blahblahblha.com/topic/TOPIC_NUMBER)
Edited by Roby, Apr 3 2009, 11:46 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Support · Next Topic »
Add Reply