Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lester Chan

    (@gamerz)

    I can’t reproduce the problem I am using [poll id="1" type="results"] for https://lesterchan.net/wordpress_dev/?p=1 and it works for me

    why not use [page_polls] instead on the private. This will show all polls with results. if the above doesn’t work for you.

    Thread Starter solutionstriware.ca

    (@solutionstriwareca)

    It’s because I had the results template removed because users should not be able to see the results when they vote.

    Is there anyway to hide results from all users in the system expect for admins?

    Plugin Author Lester Chan

    (@gamerz)

    Sorry that is not possible without modifying the code and I don’t provide support for that.

    If you want to do it yourself the file to modify is https://github.com/lesterchan/wp-polls/blob/master/polls-logs.php

    Thread Starter solutionstriware.ca

    (@solutionstriwareca)

    Hey guys,

    I found a solution in case anyone looks at this topic and is wondering how to do it.

    In the wp-polls.php find the following code: return $temp_pollresult;

    And replace it with:

    if ( is_super_admin() )
    {return $temp_pollresult;} else {return “Test”;}

    Where “Test” is whatever you want the results form to say to none admin users.

    What I did then was create a private page and displayed all my polls results on that page.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Results for admins only’ is closed to new replies.