How to integrate a phpbb board search into site´s html pages?

Discussion in 'Programming' started by Dogs_and_things, Jul 27, 2007.

  1. #1
    Hello,

    I run a site with a html part and a phpbb2.0.22 board.

    I´m wanting to get rid of the Google search, because of the ads, and I found a nice search tool, Sphider; which can do the job perfectly for the html side but makes quite a mess when indexing the board.

    What I want to achieve is to have to search boxes, one to search the html pages and another one to search the board. I want to take out the search box I use on my board and be able to call the results from any page.

    I´ve gotten as far as integrating this with the Sphider search box:
    <form name="search_block" action="http://www.escuelacaninamaya.com/phpBB2/search.php">
    	 <input name="search_keywords" size="46" maxlength="255" style="background-color: white; font-family: Arial; font-size: 12px;" value=" Search the forum..." onfocus="this.style.backgroundColor='F5F9F7';this.style.color='black';if(this.value==' Search the forum...')this.value=''" onblur="this.style.backgroundColor='white';this.style.color='black';if(this.value=='')this.value=' Search the forum...'" type="text"/>
    	 <input name="sa" value="Search" type="image" src="http://www.escuelacaninamaya.com/phpBB2/templates/subWilly/images/icon_mini_search.gif" title="Search the forum" alt="Search the forum" style="vertical-align: middle;" />
    	 <input type="hidden" name="search_terms" value="all" checked="checked" />
    	 <input type="hidden" name="show_results" value="topics" checked="checked" />
    </form>
    Code (markup):
    but of course, this is not enough.

    I guess I should edit search.php and includes/functions_search.php and probably some other files but as I don´t know anything about coding php I´m at a loss right now.

    Who is able and willing and able to help me discover the right direction?

    Greetings.:)
     
    Dogs_and_things, Jul 27, 2007 IP