• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Poll Bars not showing

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      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.

    Issue: Poll Bars not showing

    • Issue Tools
      • View Changes
    1. issueid=1871 July 28, 2010 7:03 PM
      Big-k Big-k is offline
      New Member
      Poll Bars not showing

      Hi,

      I just added a poll to my wiki page, the results show, but the bars don't. See here

      What could the issue be?
    Issue Details
    Issue Number 1871
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Polls
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 3.0.2
    Fixed Version 3.0.3
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 28, 2010 8:13 PM
      pegasus pegasus is offline
      VaultWiki Team
      Try editing vault/tab/poll.php. Find:
      Code:
      			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);
      			}
      Replace with:
      Code:
      			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);
      Reply Reply  
    2. August 13, 2010 12:55 AM
      pegasus pegasus is offline
      VaultWiki Team
      Did this work? I am no longer seeing the issue on your site.

      Marking as fixed. If you still have this issue in 3.0.3, feel free to petition this issue.
      Reply Reply  
    3. August 16, 2010 9:46 AM
      Big-k Big-k is offline
      New Member
      Yes, it worked. Thanks!!
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 2:30 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.