The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Poll only to see for

4 posters

Go down

Solved Poll only to see for

Post by Liesbeth* Mon 9 Apr - 18:36

Can a poll be set up with a script so that only the administrator can see the poll.
I mean the button view results is then invisible to the members, only to see for the staff.

I now have a script but then we see nothing until we have voted
And it is difficult for a tie, so it is useful if the staff can see the results


Last edited by Liesbeth* on Tue 17 Apr - 9:26; edited 1 time in total
avatar
Liesbeth*
Forumember

Female Posts : 68
Reputation : 6
Language : Nederlands
Location : DSF Mod

https://pspparadise.actieforum.com/

Back to top Go down

Solved Re: Poll only to see for

Post by Ape Mon 9 Apr - 19:26

No sadly this is all done server side.


Poll only to see for Left1212Poll only to see for Center11Poll only to see for Right112
Poll only to see for Ape_b110
Poll only to see for Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19122
Reputation : 1993
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Poll only to see for

Post by Liesbeth* Mon 9 Apr - 19:32

Okay thank you for your answer
avatar
Liesbeth*
Forumember

Female Posts : 68
Reputation : 6
Language : Nederlands
Location : DSF Mod

https://pspparadise.actieforum.com/

Back to top Go down

Solved Re: Poll only to see for

Post by Wecoc Mon 9 Apr - 23:15

Sorry. What APE said is true the results themselves are managed server side, but please don't close this topic yet.

It's not easy but I believe technically it still can be done. It would still be possible to hide the "View results" button of the poll on all members but admins, and also replace the poll in result mode with a text "Only admins can see the results of this poll" or something like that (this would be better via template if possible, to make sure the user doesn't cheat)

But I have a question: After voting, the members should be able to see the results then, or neither in that case? blackeye
Probably it would be useful if you post the script you are using currently.
Wecoc
Wecoc
Forumember

Male Posts : 144
Reputation : 111
Language : Catalan, Spanish, English

Back to top Go down

Solved Re: Poll only to see for

Post by Liesbeth* Wed 11 Apr - 9:01

No, if members vote, members can see the results. That can not be changed anyway. I want to post the javascript that I use now.

hide:

I now use the script above in java

Poll only to see for Cd236wy8
avatar
Liesbeth*
Forumember

Female Posts : 68
Reputation : 6
Language : Nederlands
Location : DSF Mod

https://pspparadise.actieforum.com/

Back to top Go down

Solved Re: Poll only to see for

Post by tikky Wed 11 Apr - 10:44

Hey,
Something like this?

Code:
$(document).ready(function(){
 
  var level = _userdata["user_level"];
 
  if ( level === 0 ) {
  $('a[href*="?vote=viewresult"]').remove();
  }
 
});
tikky
tikky
Forumember

Posts : 897
Reputation : 157
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

Solved Re: Poll only to see for

Post by Liesbeth* Wed 11 Apr - 13:40

Thank you, as I can see it now it works on my test forum. Apply now to test my real forum.
avatar
Liesbeth*
Forumember

Female Posts : 68
Reputation : 6
Language : Nederlands
Location : DSF Mod

https://pspparadise.actieforum.com/

Back to top Go down

Solved Re: Poll only to see for

Post by Liesbeth* Tue 17 Apr - 9:25

Thank you pedxz this script works perfectly members can not see the managers. The topic can, in my opinion, be locked.
avatar
Liesbeth*
Forumember

Female Posts : 68
Reputation : 6
Language : Nederlands
Location : DSF Mod

https://pspparadise.actieforum.com/

Back to top Go down

Solved Re: Poll only to see for

Post by Ape Tue 17 Apr - 20:43

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


Poll only to see for Left1212Poll only to see for Center11Poll only to see for Right112
Poll only to see for Ape_b110
Poll only to see for Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19122
Reputation : 1993
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum