############################################################## 
## MOD Title: Advance Meta Tags
## MOD Author: James Wong <admin@jaeboy.com>  www.jaeboy.com 
## MOD Description: Aade todos los meta tags que consideres importantes en tu foro, 
##		    configurandolos desde el panel de administracion.
##		    Cambia las opciones en la tabla de "Administracion General", en configuracion.
##                  
## MOD Version: 2.7.1 b
## Compatibility: 2.0.0 -> 2.0.4 (lo he testeado en 2.0.6 y funciona)
## MOD Translation: Spanish (Espaol)
## Rev. Date: 07/06/2004
## Translator: Shadow <correoshadow@hotmail.com> (Marcelo Valdez) http://www.rpgcommunity.uni.cc
## Nivel de instalacion: (moderado) 
## Tiempo de instalacion: 10 Minutos 
## Archivos a editar: 5
##			board_config_body.tpl
##			includes/page_header.php
##			lang/lang_english/lang_admin.php
##               	admin/admin_board.php
##			templates/subSilver/overall_header.tpl
## Archivos incluidos: 1
##			meta_install.php
############################################################## 
## Notas del autor: 
##	Para saber si el MOD realmente funciona, debes ver el codigo fuente de tu foro.
##	(Haz click con el boton secundario del mouse, y selecciona "ver codigo fuente")
##
##	Major Change Log:
##		1.0
##		Not released, personal use
##
##		1.3
##		Intergrated database information storage and admin panel
##
##		2.0
##		Intergrated full administration management
## 
##		2.5
##		First Public Beta, first release on my forum
##
##		2.7
##		Added installation script
##
##
############################################################## 
## Antes de aadir este mod a tu foro, debes hacer una copia de seguridad de todos los archivos
## que son editados por este mod 
############################################################## 
#
#-----[ COPY ]--------
#
 
meta_install.php -> forum root

# 
#-----[ RUN ]------------------------------------------ 
# Ejecuta meta_install.php desde tu navegador o ejecuta las operaciones SQL manualmente

meta_install.php

# 
#-----[ SQL ]--------
# el actual prefijo es phpbb_ CAMBIA esto si tu prefijo es otro

INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_keywords', 'phpbb, best, forum' );
INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_description', 'best phpbb forum' );
INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_revisit', '20' );
INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_author', 'phpbb forum' );
INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_owner', 'phpbb forum' );
INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_distribution', 'global' );
INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_robots', 'index,follow' );
INSERT INTO phpbb_config ( config_name, config_value) VALUES ('meta_abstract', 'best forum' );

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ 
# 
	'SITE_DESCRIPTION' => $board_config['site_desc'], 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	'META_TAG' => '<META NAME="Keywords" content="' . $board_config['meta_keywords'] .'"><META NAME="Description" content="' . $board_config['meta_description'] .'"><META NAME="revisit-after" content="' . $board_config['meta_revisit'] .' days"><META NAME="author" content="' . $board_config['meta_author'] .'"><META NAME="owner" content="' . $board_config['meta_owner'] .'"><META NAME="distribution" content="' . $board_config['meta_distribution'] .'"><META NAME="robots" content="' . $board_config['meta_robots'] .'"><META NAME="abstract" content="' . $board_config['meta_abstract'] .'">',

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_board.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
	"L_ENABLE_PRUNE" => $lang['Enable_prune'],

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"L_META_SETTINGS" => $lang['Meta_settings'],
	"L_META_SETTINGS_EXPLAIN" => $lang['Meta_settings_explain'],
	"L_META_KEYWORDS" => $lang['Meta_keywords'],
	"L_META_KEYWORDS_EXPLAIN" => $lang['Meta_keywords_explain'],
	"L_META_DESCRIPTION" => $lang['Meta_description'],
	"L_META_DESCRIPTION_EXPLAIN" => $lang['Meta_description_explain'],
	"L_META_REVISIT" => $lang['Meta_revisit'],
	"L_META_REVISIT_EXPLAIN" => $lang['Meta_revisit_explain'],
	"L_META_AUTHOR" => $lang['Meta_author'],
	"L_META_AUTHOR_EXPLAIN" => $lang['Meta_author_explain'],
	"L_META_OWNER" => $lang['Meta_owner'],
	"L_META_OWNER_EXPLAIN" => $lang['Meta_owner_explain'],
	"L_META_DISTRIBUTION" => $lang['Meta_distribution'],
	"L_META_DISTRIBUTION_EXPLAIN" => $lang['Meta_distribution_explain'],
	"L_META_ROBOTS" => $lang['Meta_robots'],
	"L_META_ROBOTS_EXPLAIN" => $lang['Meta_robots_explain'],
	"L_META_ABSTRACT" => $lang['Meta_abstract'],
	"L_META_ABSTRACT_EXPLAIN" => $lang['Meta_abstract_explain'],

# 
#-----[ FIND ]------------------------------------------ 
# 
	"PRUNE_NO" => $prune_no, 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	"META_KEYWORDS" => $new['meta_keywords'],
	"META_DESCRIPTION" => $new['meta_description'],
	"META_REVISIT" => $new['meta_revisit'],
	"META_AUTHOR" => $new['meta_author'],
	"META_OWNER" => $new['meta_owner'],
	"META_DISTRIBUTION" => $new['meta_distribution'],
	"META_ROBOTS" => $new['meta_robots'],
	"META_ABSTRACT" => $new['meta_abstract'],

# 
#-----[ OPEN ]------------------------------------------ 
# 
lang/lang_english/lang_admin.php

# 
#-----[ FIND ]------------------------------------------ 
# Nota: es posible que esta linea no la encuentres en tu archivo. Busca "Esto es todo amigos" y
# reemplazalo por esta linea, ya que muchos MOD la necesitan para una instalacion efectiva. 
//
// That's all Folks!
// -------------------------------------------------

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# Nota: Algunos terminos no han sido traducidos por ser usados por los motores de busqueda.
# Se recomienda no traducirlos. 
// Meta tags setting
$lang['Meta_settings'] = 'Opciones META Tag';
$lang['Meta_settings_explain'] = 'Los META tags son usados de referencia por los motores de busqueda. Para obtener una buena posicion en buscadores como google por ejemplo, completa esto con la mayor informacion posible';
$lang['Meta_keywords'] = 'META Keywords';
$lang['Meta_keywords_explain'] = 'Define las palabras claves para los motores de busqueda';
$lang['Meta_description'] = 'META Description';
$lang['Meta_description_explain'] = 'Describe tu foro en 250 palabras';
$lang['Meta_revisit'] = 'META Revisit';
$lang['Meta_revisit_explain'] = 'Dile al motor de busqueda que re-visite tu pagina luego de xx dias';
$lang['Meta_author'] = 'META Author';
$lang['Meta_author_explain'] = 'Autor de este website (email o nombre).';
$lang['Meta_owner'] = 'META Owner';
$lang['Meta_owner_explain'] = 'Propietario del website (email).';
$lang['Meta_distribution'] = 'META Distribution (Global | Local | Internal Use)';
$lang['Meta_distribution_explain'] = 'Define el nivel o grado de distribucion de tu website';
$lang['Meta_robots'] = 'META Robots (ALL | NONE | NOINDEX | NOFOLLOW)';
$lang['Meta_robots_explain'] = 'Para indexar solo tu foro, continuar por el, o todas las paginas de las que consta el website';
$lang['Meta_abstract'] = 'META Abstract';
$lang['Meta_abstract_explain'] = 'El Tag abstracto define una corta descripcion de tu website (max 100 palabras)';


# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/admin/board_config_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
	<tr>
		<th class="thHead" colspan="2">{L_COOKIE_SETTINGS}</th>
	</tr>
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
	<tr>
		<th class="thHead" colspan="2">{L_META_SETTINGS}</th>
	</tr>
	<tr>
		<td class="row2" colspan="2"><span class="gensmall">{L_META_SETTINGS_EXPLAIN}</span></td>
	</tr>
 	 <tr> 
     		 <td class="row1">{L_META_KEYWORDS}<br /><span class="gensmall">{L_META_KEYWORDS_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_keywords" value="{META_KEYWORDS}" /></td> 
   	</tr> 
   	<tr> 
     		 <td class="row1">{L_META_DESCRIPTION}<br /><span class="gensmall">{L_META_DESCRIPTION_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_description" value="{META_DESCRIPTION}" /></td> 
   	</tr>
   	<tr> 
    		 <td class="row1">{L_META_REVISIT}<br /><span class="gensmall">{L_META_REVISIT_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_revisit" value="{META_REVISIT}" /></td> 
  	 </tr>
   	<tr> 
    		 <td class="row1">{L_META_AUTHOR}<br /><span class="gensmall">{L_META_AUTHOR_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_author" value="{META_AUTHOR}" /></td> 
  	 </tr>
   	<tr> 
    		 <td class="row1">{L_META_DISTRIBUTION}<br /><span class="gensmall">{L_META_DISTRIBUTION_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_distribution" value="{META_DISTRIBUTION}" /></td> 
  	 </tr>
   	<tr> 
    		 <td class="row1">{L_META_OWNER}<br /><span class="gensmall">{L_META_OWNER_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_owner" value="{META_OWNER}" /></td> 
  	 </tr>
   	<tr> 
    		 <td class="row1">{L_META_ROBOTS}<br /><span class="gensmall">{L_META_ROBOTS_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_robots" value="{META_ROBOTS}" /></td> 
  	 </tr>
   	<tr> 
    		 <td class="row1">{L_META_ABSTRACT}<br /><span class="gensmall">{L_META_ABSTRACT_EXPLAIN}</span></td> 
    		 <td class="row2"><input type="text" maxlength="255" name="meta_abstract" value="{META_abstract}" /></td> 
  	 </tr>

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
<meta http-equiv="Content-Style-Type" content="text/css">

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
{META_TAG}

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

