• 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
    • Special:Search search.php?type=wiki searches the entire forums by default

    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: Special:Search search.php?type=wiki searches the entire forums by default

    • Issue Tools
      • View Changes
    1. issueid=2284 April 23, 2011 9:50 PM
      Kaelon Kaelon is offline
      Regular Member
      Special:Search search.php?type=wiki searches the entire forums by default
      Default setting may need to be changed

      When users access the /forums/search.php?type=wiki page, the default search option is set to "Search all open forums", instead of searching just the entire Wiki. Is there a way to change this default setting, or to make search behave so that it searches only the Wiki pages, and not the entire forums? See the URL below to replicate:

      http://www.aelyria.com/forums/search.php?type=wiki
    Issue Details
    Issue Number 2284
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Searching
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 3.0.11
    Fixed Version 3.0.12
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 24, 2011 1:56 PM
      pegasus pegasus is offline
      VaultWiki Team
      Let me know if this is what you're looking for, otherwise just revert the changes. In vault/functions/search.php, find:
      Code:
      	if ($foruminfo['forumid'])
      	{
      		$vbulletin->GPC['forumchoice'][] = $foruminfo['forumid'];
      	}
      Replace with:
      Code:
      	if ($foruminfo['forumid'])
      	{
      		$vbulletin->GPC['forumchoice'] = array($foruminfo['forumid']);
      	}
      	else if (!$vbulletin->GPC['forumchoice'])
      	{
      		$vbulletin->GPC['forumchoice'] = array();
      
      		foreach ($vbulletin->forumcache AS $forumid => $blah)
      		{
      			if ($blah['vault_type'])
      			{
      				$vbulletin->GPC['forumchoice'][] = $forumid;
      			}
      		}
      	}
      Reply Reply  
    2. This petition for a change to Fixed was accepted
      April 24, 2011 10:14 PM
      Kaelon Kaelon is offline
      Regular Member
      Perfect, pegasus. That works superbly. Thanks!
       
    + 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 3:55 AM.
    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.