inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Mar 12, 2006 4:01:59 GMT -8
For the purposes of this code, anyone who can view the "Admin Functions" bar at the bottom of the thread is considered staff, so mods and the like will be able to see the poll results in the boards they mod. <script type="text/javascript"> <!-- /* only staff can view poll results by california */
// message, if any, you want to appear instead of each poll option result var hiddenMessage = "(results hidden)";
var iCell = document.getElementsByTagName("td"); if(location.href.match(/action=display/)){ for(p=iCell.length-1; p>0; p--){ if(iCell.colSpan == 2 && iCell .innerHTML.match(/Admin Functions:/)){ break; }else if(iCell .width == "80%" && iCell .className.match(/windowbg/) && iCell .innerHTML.match(/\([\d,]+\svotes?,\s[\d\.]+%\)/)){ iCell .innerHTML = '<font size="1">'+hiddenMessage+'</font>'; } } }
// --> </script> Place the code in the Global Footer or a specific Board Footer if you want it to only affect a single board. If you only want it to affect a single poll, just have only that one poll in the board. Make sure you're not signed in to a staff account when you're testing it, or it obviously won't work. Please do not PM me with support.
|
|