##############################################################
## MOD Title: Add related topics to your forum
##
## MOD Author: Ran Geva < ran@rangeva.com > http://www.omgili.com
## MOD Description: This mod adds the power of Omgili forum search to your board. 
##					The search results are fully integrated within your board. 
##					Since this mod uses our servers for all the indexing and processing it significantly
##					reduces load on your server while offering your users an advanced search engine.
## 					Using Omgili's advanced search capabilities you can choose to independently search titles,
##					topics or just the replies of a discussion. Wildcard and Boolean Searches, 
##					Term Boosting, Field Grouping and Phrase Searching, are only part of the features of Omgili search.
##
##                   
##
## MOD Version: 0.1.0
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit:
##             templates/subSilver/search_body.tpl
##			   language/lang_english/lang_main.php
##			   search.php	
##
##
## Included Files:
##             includes/OmgiliLastRSS.php
##			   templates/subSilver/omgili_search_results.tpl
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##     
##############################################################
## MOD History:
##
##   2006-09-12 - Version 0.1.0
##      - RC1 Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]-----------------------------------------
#
copy includes/OmgiliLastRSS.php to includes/
copy templates/subSilver/omgili_search_results.tpl to templates/subSilver/
#
#-----[ OPEN ]-----------------------------------------
#
search_body.tpl

#
#-----[ FIND ]-----------------------------------------
#
<form action="{S_SEARCH_ACTION}" method="POST"><table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
		<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	</tr>
</table>
 

#
#-----[ REPLACE, WITH ]------------------------------------
#
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
		<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	</tr>
</table>

<form action="OmgiliSearch.php" method="GET">
<table class="forumline" width="100%" cellpadding="4" cellspacing="1" border="0">
	<tr> 
		<th class="thHead" colspan="4" height="25">{L_OMGILI_SEARCH}</th>
	</tr>
	<tr> 
		<td class="row1" colspan="2" width="50%"><span class="gen">{L_OMGILI_SEARCH}:</span><br /><span class="gensmall">{L_ABOUT_OMGILI}</span></td>
		<td class="row2" colspan="2" valign="top"><span class="genmed"><input type="text" style="width: 300px" class="post" name="search_keywords" size="30" /></td>
	</tr>
	<tr> 
		<td class="catBottom" colspan="4" align="center" height="28"><input class="liteoption" type="submit" value="{L_SEARCH}" /></td>
	</tr>
</table>
</form>
<br>

<form action="{S_SEARCH_ACTION}" method="POST">

#
#-----[ OPEN ]-----------------------------------------
#
search.php

#
#-----[ FIND ]-----------------------------------------
#

'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=results"),


#
#-----[ BEFORE, ADD ]------------------------------------
#

'L_OMGILI_SEARCH' => $lang['Omgili_search'],
'L_ABOUT_OMGILI' => $lang['about_Omgili'],


#
#-----[ OPEN ]-----------------------------------------
#
lang_main.php

#
#-----[ FIND ]-----------------------------------------
#
//
// Search
//

#
#-----[ AFTER, ADD ]------------------------------------
#

$lang['Omgili_search'] = 'Omgili Search';
$lang['about_Omgili'] = '<a href="http://www.omgili.com">Omgili</a> is a search engine for forums. Omgili has many advanced search options, read about them <a href="http://www.omgili.com/help.html">here</a>';

#
# ----[ To Search only inside your Board, OPEN]
#
OmgiliSearch.php

#
#----[ FIND ]----------------------------------------
#

$ForumURL = '';

#
#----[ REPLACE, WITH ]----------------------------------------
#

$ForumURL = 'your_board_url';


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
