• 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
    • Search result is wrong, when using VW Search box. Using vbulletin 3.6.x

    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: Search result is wrong, when using VW Search box. Using vbulletin 3.6.x

    • Issue Tools
      • View Changes
    1. issueid=2413 July 21, 2011 11:12 PM
      basketmen basketmen is offline
      Junior Member
      Search result is wrong, when using VW Search box. Using vbulletin 3.6.x

      If i searching using http://www.domain.com/search.php?type=wiki page, the search result is correct, its only search in wiki forum pages, because the forum selected is only the wiki namespace like screenshot below



      But if i searching using search box, from wiki front page, the search result is not only from wiki forum pages, but threads from another forum too

      i guess i need to fix search box code in vault_search_noid template below
      Code:
      <div class="searchBox">
      			<form action="search.php?$session[sessionurl]do=process" method="post">
      			Search Wiki Pages: <input class="bginput" type="text" name="query" value="" />
      			<input type="hidden" name="do" value="process" />
      			<input type="hidden" name="showposts" value="1" />
      			<input type="hidden" name="sortby" value="rank" />
      			<input type="hidden" name="fromspecial" value="1" />
      			<input type="hidden" name="namespace[__all__]" value="1" />
      			<input type="hidden" name="gotoarticle" value="1" />
      			<input type="hidden" name="s" value="$session[sessionhash]" />
      			<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
      			<input class="button" type="submit" value="$vbphrase[go]" />
      			</form>
      		</div>
      i already tried change this line
      Code:
      <input type="hidden" name="namespace[__all__]" value="1" />
      to
      Code:
      <input type="hidden" name="namespace[Default]" value="1" />
      or
      Code:
      <input type="hidden" name="namespace" value="Default" />
      or this line
      Code:
      <form action="search.php?$session[sessionurl]do=process" method="post">
      to the forumid used for vw XXX
      Code:
      <form action="search.php?$session[sessionurl]do=process&f=XXX&type=wiki" method="post">
      but still same, not fix it, can you give suggestion, pegasus?
    Issue Details
    Issue Number 2413
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Searching
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 3.0.13
    Fixed Version 3.0.14
    Milestone (none)
    Software DependencyvBulletin 3.6
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 1
    Assigned Users (none)
    Tags (none)




    1. July 22, 2011 2:47 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/plugins/search.php, find:
      Code:
      	else if (!$vbulletin->GPC['contenttypeid'] AND class_exists('DPSphinxSearch_CoreSearchController'))
      Add before:
      Code:
      	else if (!VAULT_40X_COMPAT AND $vbulletin->GPC['fromspecial'])
      	{
      		require_once(DIR . '/vault/functions/data.php');
      		$_REQUEST['include'] .= (!empty($_REQUEST['include']) ? ',' : '') . implode(',', array_values(special_fetch_wiki_forumids()));
      	}
      Reply Reply  
    2. July 22, 2011 6:08 AM
      basketmen basketmen is offline
      Junior Member
      hmm i am afraid its not working, nothing changed

      i sent pm if you want to try my forum and login details if needed
      Reply Reply  
    3. July 22, 2011 1:49 PM
      pegasus pegasus is offline
      VaultWiki Team
      Thanks, this is now fixed. Forgot that the variable names were different back in vB3 days.
      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 6:40 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.