UploadScript

Check out the FREE chatroom mod for IPB 3.x

>  BoardTracker Board Search Mod
Short Description
Complete, integrated search engine for your board using BoardTracker for indexing and processing.

Detailed Description


This search hack replaces the built in IPB search with BoardTracker search and results are fully integrated within your board. Search results can be threads from your board or all boards or a select group of boards - your choice!

This mod shifts all search processing onto boardtracker servers so saves your servers from the heavy loads often caused by search - now you can provide ALL your users with powerful search without worrying about your servers overloading!

This mod is very easy to install!

Once installed, search from the new search box/page will pull results from boardtracker and display them within your board. 'Advanced Search' can still link to the existing invision search script or you can remove that also.

Results can be formated in any way you want with some simple template variables.

Options control panel allows you to switch the boardtracker search mod on or off at any time so you can switch between boardtracker and ipb search whenever you want.

The following configuration options/defaults exist:

Switch search on/off

Switch 'safe filter' on/off

Board ID - you can limit search to just your board, or several boards you choose or ALL boards indexed by boardtracker.

Category ID - you can define a category on boardtracker and searches will only pull results from that category.

Default Sort Order - you can sort results by relevancy or by post date.

Default Search Scope - results can be limited to last day, week, month, year or all time.

Default Search Query - a search term that will be executed whenever the boardtracker search script is called directly with no params.

User selections on the search form override the defaults.

You can see a working example on boardtracker support forums although it is running phpbb but is functionally the same. Its also now being used on some very big boards like boards.ie

If your board is not yet indexed by BoardTracker, make sure to submit it!

---
- Upgrade instructions for v1.0.0 to v1.0.1

1. Open your admin control panel and goto 'TOOLS & SETTINGS/BoardTracker Search'
2. Click 'Edit' for 'Default Search Scope'
3. Change 'Setting Extra?' to this..

0=Day
1=Week
2=Month
3=Year
4=All

4. Save changes.
---
- Upgrade instructions for v1.0.1 to v1.0.2

Open 'Board Index/PageTop' template and change in both places..

ipb.member['id'] ==1 to ipb.member['id'] >=1
Download

>  BoardTracker Board Search Mod, User Contributed Files
File Information
Date Submitted: June 14, 2006
Downloads: 200
Downloads Per Day: 0.1457
Views: 4,489
Compatibility: Invision Power Board v2.1
File Version: v1.0.2
File Size: 6.303 KBytes
Last Updated: August 26 2006, 10:07 AM
Demo Link: Click Here.
Allow Upgrades w/o Your Permission?: No
Upgrade Terms for this Submission: None
Support Topic: Click Here
Report File: Report Broken Mod
File Rating
BadOkGoodGreatExcellent(5/5 (3 votes)
Please login to vote.
(you must login to be able to cast your vote)

User Comments (View Topic)
August 26 2006, 09:48 AM
by BoardTracker
Actually there is a small error in the code.. blink.gif

In both places where you see this..

ipb.member['id'] ==1

It should actually be this..

ipb.member['id'] >=1

Just change the == to >=



I'll upload a updated version soon but anyway the only change needed is what you see above.
August 26 2006, 07:35 AM
by somlor
Hey, this killed the search bar that shows up after logging in for me too.

Check it out:
http://www.thetaobums.com

Any ideas on how to fix this? I'm assuming it's an issue with this code here:

CODE

<if="ipb.vars['bt_search_active'] ==1 and ipb.member['id'] ==1">
    <form action="{ipb.script_url}" method="get">
        <input type="hidden" name="act" value="SearchBT">
        <input type=hidden name="pagenav_add" value="act=searchBT">
        <input type="text" size="30" name="search" />
        <input class="button" type="image" src="{ipb.vars['img_url']}/login-button.gif" />
    </form>
</if>
<if="ipb.vars['bt_search_active'] ==0 and ipb.member['id'] ==1">
    <form action="{ipb.script_url}act=Search&amp;CODE=01&amp;forums=all" method="post">
        <input type="text" size="30" name="keywords"  onfocus="this.value=''" value="{ipb.lang['enter_search_words']}" />
        <input class="button" type="image" src="{ipb.vars['img_url']}/login-button.gif" />
    </form>
</if>


Thanks!
Sean
July 21 2006, 10:45 AM
by BoardTracker
QUOTE(BASHERS33 @ Jul 21 2006, 08:39 AM) [snapback]1709182[/snapback]

Maybe he has a skin which took the search off of the front page. Or else maybe someone moved it to somewhere else on the front page. Many skins do move it and then it would maybe be in a different area, maybe in all global html->global_board_header


Yep, that could be the reason. If you have a search box on the index page then try to find the template which contains the search form html and modify/replace it. If you don't have a search box there at all then just ignore that part of the install instructions.
July 21 2006, 08:39 AM
by BASHERS33
Maybe he has a skin which took the search off of the front page. Or else maybe someone moved it to somewhere else on the front page. Many skins do move it and then it would maybe be in a different area, maybe in all global html->global_board_header
July 21 2006, 08:30 AM
by BoardTracker
Are you sure its not there? It is in my version.. I just reverted to the original template again to make sure and it is there..

It is in the 'if/else' section that adds the login form to the index page for guests or the search box for visitors who are logged in.

Try copy/paste the entire template into notepad and use 'find' to look for 'search'.. its easier than manually looking through the html.
July 19 2006, 09:17 PM
by trucker124
While installing BT_Search_IPB_1.0.1.zip on a 2.1.6 board I came across this:

CODE
open: Board Index/PageTop

find:

<else>
    <form action="{ipb.script_url}act=Search&amp;CODE=01&amp;forums=all" method="post">
        <input type="text" size="30" name="keywords"  onfocus="this.value=''" value="{ipb.lang['enter_search_words']}" />
        <input class="button" type="image" src="{ipb.vars['img_url']}/login-button.gif" />
    </form>
</else>

#

replace with:

<if="ipb.vars['bt_search_active'] ==1 and ipb.member['id'] ==1">
    <form action="{ipb.script_url}" method="get">
        <input type="hidden" name="act" value="SearchBT">
        <input type=hidden name="pagenav_add" value="act=searchBT">
        <input type="text" size="30" name="search" />
        <input class="button" type="image" src="{ipb.vars['img_url']}/login-button.gif" />
    </form>
</if>
<if="ipb.vars['bt_search_active'] ==0 and ipb.member['id'] ==1">
    <form action="{ipb.script_url}act=Search&amp;CODE=01&amp;forums=all" method="post">
        <input type="text" size="30" name="keywords"  onfocus="this.value=''" value="{ipb.lang['enter_search_words']}" />
        <input class="button" type="image" src="{ipb.vars['img_url']}/login-button.gif" />
    </form>
</if>

###

Sorry no search section in Board Index/PageTop Any suggestions?
July 18 2006, 12:10 AM
by BoardTracker
QUOTE(13thDevil @ Jul 18 2006, 12:06 AM) [snapback]1707224[/snapback]

and if the boardtracker server goes down?

It is not one server. These are many severs.
However, if the system is totally down for wharever reason, search will not show anything.
July 18 2006, 12:06 AM
by 13thDevil
and if the boardtracker server goes down?
July 17 2006, 11:15 PM
by BoardTracker
The way the search mod works is by callling a Javascript from the HTML page by the browser. Nothing is executed on the server. Therefore there is no server risk at all.
July 17 2006, 08:29 PM
by SilverXX
thanks for the answer. I was also wondering if security is OK.
Invision had huge security problems the last few weeks ... one of them included a way to upload file via an exploit in the search (after posting a specially crafted post and search for it).
This probably didn't work with the boardtracker search, but I'd just like to make sure you looked into it.

thx

Search Engine Keywords

Invision Skins · IPB Skins