jociste vive les associations | Bonjour à tous,
J'aimerais savoir si vous pouvez m'aider à ajouter les balises meta tags à mon forum phpbb en suivant la procédure suivante (car je n'y arrive pas):
Code :
- ##############################################################
- ## MOD Title: Search META tags
- ## MOD Author: RustyDragon <dev@RustyDragon.com> www.phpbbhacks.com
- ## MOD Description: Adds two configurable META tags to your board header -
- ## <META description> and <META keywords>
- ## MOD Version: 1.0.0
- ##
- ## Installation Level: (moderate)
- ## Installation Time: 10 Minutes
- ## Files To Edit: board_config_body.tpl, includes/page_header.php, lang/lang_english/lang_admin.php,
- ## admin/admin_board.php, templates/subSilver/overall_header.tpl (le dernier est fait uniquement)
- ## Included Files: n/a
- ##############################################################
- ## Author Notes:
- ##
- ##############################################################
- ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
- ##############################################################
- #-----[ SQL ]--------
- # make sure that you are using correct prefix for table
- INSERT INTO config ( config_name, config_value) VALUES ('meta_keywords', '' );
- INSERT INTO config ( config_name, config_value) VALUES ('meta_description', '' );
- #
- #-----[ OPEN ]------------------------------------------
- #
- includes/page_header.php
- #
- #-----[ FIND ]------------------------------------------
- #
- 'SITE_DESCRIPTION' => $board_config['site_desc'],
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- 'META_DESC' => '<META NAME="Keywords" content="' . $board_config['meta_keywords'] .'"><META NAME="Description" content="' . $board_config['meta_description'] .'">',
- #
- #-----[ OPEN ]------------------------------------------
- #
- admin/admin_board.php
- #
- #-----[ FIND ]------------------------------------------
- #
- "L_ENABLE_PRUNE" => $lang['Enable_prune'],
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- "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'],
- #
- #-----[ FIND ]------------------------------------------
- #
- "PRUNE_NO" => $prune_no,
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- "META_KEYWORDS" => $new['meta_keywords'],
- "META_DESCRIPTION" => $new['meta_description'],
- #
- #-----[ OPEN ]------------------------------------------
- #
- lang/lang_english/lang_admin.php
- #
- #-----[ FIND ]------------------------------------------
- #
- //
- // That's all Folks!
- // -------------------------------------------------
- #
- #-----[ BEFORE, ADD ]------------------------------------------
- #
- // Meta tags mod
- $lang['Meta_keywords'] = 'META Keywords';
- $lang['Meta_keywords_explain'] = 'Keywords in HTML tag <META KEYWORDS>.';
- $lang['Meta_description'] = 'META Description';
- $lang['Meta_description_explain'] = 'Description in HTML tag <META DESCRIPTION>.';
- #
- #-----[ OPEN ]------------------------------------------
- #
- templates/subSilver/admin/board_config_body.tpl
- #
- #-----[ FIND ]------------------------------------------
- #
- <tr>
- <td class="row1">{L_ENABLE_PRUNE}</td>
- <td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES} <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
- </tr>
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- <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>
- #
- #-----[ OPEN ]------------------------------------------
- #
- templates/subSilver/overall_header.tpl
- #
- #-----[ FIND ]------------------------------------------
- #
- <meta http-equiv="Content-Style-Type" content="text/css">
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- {META_DESC}
- #
- #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
- #
- # EoM
|
---------------
http://www.joc.asso.fr
|