Polls/Voting Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
4 posters

    Polls/Voting

    avatar
    skidsolo
    Forumember


    Posts : 269
    Reputation : 3
    Language : English

    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/
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    nightflier
    nightflier
    New Member


    Posts : 24
    Reputation : 1
    Language : English

    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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    nightflier
    nightflier
    New Member


    Posts : 24
    Reputation : 1
    Language : English

    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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    nightflier
    nightflier
    New Member


    Posts : 24
    Reputation : 1
    Language : English

    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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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; }

    nightflier
    nightflier
    New Member


    Posts : 24
    Reputation : 1
    Language : English

    Solved Re: Polls/Voting

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

    `thank you, I will add and await members feedback.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Polls/Voting

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

    ok

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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.
    nightflier
    nightflier
    New Member


    Posts : 24
    Reputation : 1
    Language : English

    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

    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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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.
    nightflier
    nightflier
    New Member


    Posts : 24
    Reputation : 1
    Language : English

    Solved Re: Polls/Voting

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

    yes, that is correct, the number of votes for each choice.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Polls/Voting

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

    so is this solved?

    nightflier
    nightflier
    New Member


    Posts : 24
    Reputation : 1
    Language : English

    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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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