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.

Polls/Voting

4 posters

Go down

Solved Polls/Voting

Post by skidsolo April 24th 2020, 7:38 am

Hi all.

On my old site we used to be able to use the poll facility to vote on our 'Model of the month' competition and I remember clearly that there was a way to hide the votes so far from a member until they had voted themselves. ie secret vote.

However, I cannot remember how we did this.

Can someone help please?

Cheers.

https://allscalemodelling.forumotion.com/
avatar
skidsolo
Forumember

Posts : 260
Reputation : 3
Language : English

View user profile

Back to top Go down

Solved Re: Polls/Voting

Post by skouliki April 24th 2020, 9:00 am

hello

try this javascript set to the topics

Code:

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


only admins can see the result
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 24th 2020, 12:46 pm

Thank you but we don't want admin only to see the results we want members to see the results AFTER they have voted only. We only want the poll options visible until they vote, then we want them to see the results.
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by skouliki April 24th 2020, 1:22 pm

nightflier wrote:Thank you but we don't want admin only to see the results we want members to see the results AFTER they have voted only. We only want the poll options visible until they vote, then we want them to see the results.
Please don't hijack another member’s topic's.
Please open your own thread if you having a problem with your forum.
Please read our forum rules:ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 24th 2020, 1:24 pm

We are admins on the same forum, I am the founder, however I have created a new topic.
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by skouliki April 24th 2020, 1:56 pm

I didnt know you are co admins i will lock the other topic
Thanks for inform me
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 24th 2020, 2:23 pm

Not a problem, we appreciate all the help you have given, we are very keen to sort this problem as it is preventing an important vote.
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by skouliki April 24th 2020, 2:24 pm

nightflier wrote:Thank you but we don't want admin only to see the results we want members to see the results AFTER they have voted only. We only want the poll options visible until they vote, then we want them to see the results.


add this to your css

Code:

a[href$="?vote=viewresult"] { display:none; }
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 24th 2020, 2:33 pm

`thank you, I will add and await members feedback.
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by skouliki April 24th 2020, 2:46 pm

ok
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Polls/Voting

Post by SLGray April 24th 2020, 9:20 pm

Wait a minute!  Are you referring to when you vote the page reloads with the results?  If yes, it should do this already.


Polls/Voting Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50449
Reputation : 3478
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 24th 2020, 10:22 pm

Thank you


Last edited by nightflier on April 24th 2020, 10:25 pm; edited 1 time in total
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 24th 2020, 10:24 pm

Yes, I thought it did but a fellow admin said it wasn’t perhaps you could mark as solved as it was his post originally. Thanks for the help.
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by SLGray April 25th 2020, 2:21 am

When you say results, you are talking about the numbers, correct?


Polls/Voting Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50449
Reputation : 3478
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 25th 2020, 8:39 am

yes, that is correct, the number of votes for each choice.
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by skouliki April 25th 2020, 4:25 pm

so is this solved?
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Polls/Voting

Post by nightflier April 25th 2020, 5:04 pm

Yes but I cant mark it as solved as I didn't start the topic, if you could that would be great, thanks again.
nightflier
nightflier
New Member

Posts : 24
Reputation : 1
Language : English

View user profile https://allscalemodelling.forumotion.com

Back to top Go down

Solved Re: Polls/Voting

Post by skouliki April 25th 2020, 5:51 pm

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

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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