BoardTracker Board Search Mod
By: BoardTracker
|
|
||||||||||||||||||||||||||||||||||||||||
| August 26 2006, 09:48 AM | |
|---|---|
| by BoardTracker |
Actually there is a small error in the code..
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&CODE=01&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&CODE=01&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&CODE=01&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 |