VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.
The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.
if ($value <= 0) { $option['percent'] = 0; } else if ($pollinfo['multiple']) { $option['percent'] = vb_number_format(($value < $pollinfo['voters']) ? $value / $pollinfo['voters'] * 100 : 100, 2); } else { $option['percent'] = vb_number_format(($value < $pollinfo['numbervotes']) ? $value / $pollinfo['numbervotes'] * 100 : 100, 2); }
if ($value <= 0) { $option['percentraw'] = 0; } else if ($pollinfo['multiple']) { $option['percentraw'] = ($value < $pollinfo['voters']) ? $value / $pollinfo['voters'] * 100 : 100; } else { $option['percentraw'] = ($value < $pollinfo['numbervotes']) ? $value / $pollinfo['numbervotes'] * 100 : 100; } $option['percent'] = vb_number_format($option['percentraw'], 2);