UBB.Dev
Posted By: oceanwest Allow admin to view poll results - 04/20/2004 6:09 PM
I setup and put set a deadline, nobody can see the results till it ends is there any way the admins can review the results before the end of the poll?
Posted By: oceanwest Re: Allow admin to view poll results - 04/20/2004 7:20 PM
it seems that the iip Poll Pal seems to display the results even though I specified don't display till finished.
Posted By: AKD96 Re: Allow admin to view poll results - 04/20/2004 11:34 PM
In includepoll.php change:
Code
   if ($pnoresults && ($currtime < $pstop)) {

to
Code
   if (($pnoresults && ($currtime < $pstop)) && ($user['U_Status'] != "Administrator")) {


Also, change:
Code
      if ($pmustvote) {

to:
Code
      if (($pmustvote) && ($user['U_Status'] != "Administrator")) {
Posted By: scroungr Re: Allow admin to view poll results - 04/20/2004 11:44 PM
[]oceanwest said:
it seems that the iip Poll Pal seems to display the results even though I specified don't display till finished. [/]

??

how come when I test these scripts work 100 percent?

please explain more
Posted By: oceanwest Re: Allow admin to view poll results - 04/21/2004 1:56 AM
IT seems the poll pal. on the IIP entrance is allowing unregistered users to post. And still allows everybody to see the results...

(the other mod works fine.)
Posted By: scroungr Re: Allow admin to view poll results - 04/21/2004 4:10 AM
Hmmm are you sure you have the options set in the admin panel of IIP??

should set under

CURRENT POLL

Poll Board's keyword. If not specified the very last approved post with a poll in it will be used.
Note: Specifying a board to use rather than leaving blank will improve page generation times.

Display a random poll? 1=yes 0=no
Note: Selecting 0 will improve speed.

Ignore polls in sticky posts? 1=yes 0=no
Note: If you don't intend on having sticky posts in the poll board then setting this to 0 will impove page generation times.

Who can see polls? 0=everyone 1=only registered users

Who can vote on polls? 0=everyone 1=only registered users
Posted By: scroungr Re: Allow admin to view poll results - 04/21/2004 4:14 AM
I just noticed your still using : IIP 5.4.4 by David Lozier ©2004 :. that needs to be : IIP 5.4.5 by David Lozier ©2004 :.

either that or MANUALLY place in your /ubbthreads/pals/config.pal

// Who can see polls? 0=everyone 1=only registered users
$whocanseepoll = "0";

// Who can vote in polls? 0=everyone 1=only registered users
$whocanvote = "1";
© UBB.Developers