##############################################################
## MOD Title: Index Sidebar
## MOD Author: CBACK < webmaster@cback.de > (Christian Knerr) http://www.cback.de
## MOD Description:  Adds an Navigation and Search Sidebar on your Forum Index.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 2 Minutes
## Files To Edit: 4
##                index.php
##                language/lang_english/lang_main.php
##                language/lang_german/lang_main.php
##                templates/subSilver/index_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
## This MOD is compatible with phpBB 2.0.8 - 2.0.11 Boards.
## The MOD was generated by my own MOD-Creator Program "MIRO" you can download this program here:
## http://www.community.cback.de there you can also find a demonstration of this MOD on my Forum-Index.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl


#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
	<th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>


#
#-----[ BEFORE, ADD ]------------------------------------------
#
<table width="100%" cellpadding="1" cellspacing="1" border="0">
  <tr>
    <td style="vertical-align:top;">
      <table width="100%" cellpadding="2" cellspacing="1" class="forumline">
       <tr>
	     <th width="126px" cellspacing="2" cellpadding="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_SIDEBAR}&nbsp;</th>  
       </tr>
       <tr>
         <td class="row1"><b>{L_SIDEBAR_FORUM}</b></td>
       </tr>
       <tr>
         <td class="row2"><span class="nav"><a href="{U_FAQ}">{L_FAQ}</a></span></td>
       </tr>
       <tr>
         <td class="row2"><span class="nav"><a href="{U_SEARCH}">{L_SEARCH}</a></span></td>
       </tr>
       <tr>
         <td class="row2"><span class="nav"><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a></span></td>
       </tr>
       <tr>
         <td class="row2"><span class="nav"><a href="{U_GROUP_CP}">{L_USERGROUPS}</a></span></td>
       </tr>
       <tr>
         <td class="row1"><b>{L_SIDEBAR_SETTINGS}</b></td>
       </tr>
       <tr>
         <td class="row2"><span class="nav"><a href="{U_PROFILE}">{L_PROFILE}</a></span></td>
       </tr>
       <tr>
         <td class="row2"><span class="nav"><a href="{U_PRIVATEMSGS}">{L_PRIVATEMSGS}</a></span></td>
       </tr>
       <tr>
         <td class="row2"><span class="nav"><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></span></td>
       </tr>
      </table>
      <br />
      <script type="text/javascript">
      <!--
      function checkSearch()
      {
      if (document.search_block.search_engine.value == 'google')
      {
      window.open('http://www.google.com/search?q=' + document.search_block.search_keywords.value, '_google', '');
      return false;
      }
      else
      {
      return true;
      } 
      }
      //-->
      </script>
      <form name="search_block" method="post" action="{U_SEARCH}" onsubmit="return checkSearch()">
        <table width="100%" cellpadding="2" cellspacing="1" class="forumline">
           <tr>
	         <th width="126px" cellspacing="2" cellpadding="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_SEARCH}&nbsp;</th>  
           </tr>
      <tr>
         <td align="center" class="row1"><table border="0" cellspacing="0" cellpadding="2">
           <tr>
             <td align="center"><input class="post" type="text" name="search_keywords" size="15" /></td>
           </tr>
         <tr>
           <td align="center"><select class="post" name="search_engine">
             <option value="site">{L_FORUM}</option>
             <option value="google">Google</option>
           </select></td>
         </tr>
         <tr>
           <td align="center"><input class="mainoption" type="submit" value="{L_SEARCH}" /></td> 
         </tr>
      </table>
      <input type="hidden" name="search_fields" value="all" /> 
      <input type="hidden" name="show_results" value="topics" />
      <br />
      <a href="{U_SEARCH}" class="gensmall">{L_ADVANCED_SEARCH}</a>
    </td>
   </tr>
</table>
</form>
    </td>
  <td style="vertical-align:top;">


#
#-----[ FIND ]------------------------------------------
#
<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr>
	<td width="20" align="center"><img src="templates/subSilver/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
	<td><span class="gensmall">{L_NEW_POSTS}</span></td>


#
#-----[ BEFORE, ADD ]------------------------------------------
#
</td>
</tr>
</table>



#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php


#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------

?>


#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// CBACK Sidebar on Index MOD
//
$lang['sidebar_forum'] = 'Forum';
$lang['sidebar_settings'] = 'Settings';
$lang['sidebar'] = 'Sidebar';


#
#-----[ OPEN ]------------------------------------------
#
language/lang_german/lang_main.php


#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------

?>


#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// CBACK Sidebar on Index MOD
//
$lang['sidebar_forum'] = 'Forum';
$lang['sidebar_settings'] = 'Einstellungen';
$lang['sidebar'] = 'Sidebar';


#
#-----[ OPEN ]------------------------------------------
#
index.php


#
#-----[ FIND ]------------------------------------------
#
		'L_MODERATOR' => $lang['Moderators'],
		'L_FORUM_LOCKED' => $lang['Forum_is_locked'],
		'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],


#
#-----[ AFTER, ADD ]------------------------------------------
#
		'L_SIDEBAR_FORUM' => $lang['sidebar_forum'],
		'L_SIDEBAR_SETTINGS' => $lang['sidebar_settings'],
		'L_SIDEBAR' => $lang['sidebar'],


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