• 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
    • Comments count on Specials is a negative number

    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: Comments count on Specials is a negative number

    • Issue Tools
      • View Changes
    1. issueid=2685 May 3, 2012 4:33 AM
      afloresm afloresm is offline
      New Member
      Comments count on Specials is a negative number

      Please see http://www.solarweb.net/forosolar/showwiki.php

      In the estadisticas (translated version of specials) you can see this info:

      Pages: 36, Comments: -36

      How can we solve it?
    Issue Details
    Issue Number 2685
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Special Pages
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 3.0.18
    Fixed Version 3.0.19
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 3, 2012 4:41 AM
      pegasus pegasus is offline
      VaultWiki Team
      This was a bug in a very old version of VaultWiki (> 2 years). If you didn't upgrade from a very old version, you shouldn't have this issue. But maybe if you upgraded from an old version of Lite (< 3.0.0 Lite) you might have this issue. Either way, in vault/factory/special/search.php, find:
      Code:
      				$namespace['canhavecomments'] = !($namespace['options'] & $vault->misc['namespaceoptions']['discuss']);
      
      				$forum['wikilist'] = (
      					$forum['link'] AND
      					$namespace['namespaceid'] != SPECIAL_SPACE AND
      					($vault->permissions->fetch_permissions($forum['forumid']) & $vbulletin->bf_ugp_vault_permissions['canwikilist'])
      				);
      
      				$vault->fetch_instance('field');
      				$namespace['title'] = $vault->field->fetch('displaytitle', $namespace['namespaceid'], VAULT_LANGUAGEID, 'namespaceid');
      
      				$counters['comments'] -= $counters['pages'];
      				$counters['pages'] = vb_number_format($counters['pages']);
      				$counters['comments'] = vb_number_format($counters['comments']);
      Remove it.

      Then, find:
      Code:
      					if ($forum['link'])
      					{
      						$urlinfo['redirect'] = 'no';
      					}
      Add after:
      Code:
      				$namespace['canhavecomments'] = !($namespace['options'] & $vault->misc['namespaceoptions']['discuss']);
      
      				$forum['wikilist'] = (
      					$forum['link'] AND
      					$namespace['namespaceid'] != SPECIAL_SPACE AND
      					($vault->permissions->fetch_permissions($forum['forumid']) & $vbulletin->bf_ugp_vault_permissions['canwikilist'])
      				);
      
      				$vault->fetch_instance('field');
      				$namespace['title'] = $vault->field->fetch('displaytitle', $namespace['namespaceid'], VAULT_LANGUAGEID, 'namespaceid');
      
      				$counters['comments'] -= $counters['pages'];
      				$counters['pages'] = vb_number_format($counters['pages']);
      				$counters['comments'] = vb_number_format($counters['comments']);
      Reply Reply  
    2. May 3, 2012 8:45 AM
      afloresm afloresm is offline
      New Member
      But i did a new fresh install of vaultwiki, never have installed previous version or lite...
      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 11:51 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.