C'est clair, mais je pense que c'est plus que juste les us, c'est aussi les bots des moteurs de recherches principalement us qui explorent et indexent ton site, ce qui est tout de même bien utile.
++
Modérateur: Modérateurs




dcz a écrit:Et bien tu dois en mettre environs vingt à la place de YOUR_DEFAULT_KEYWORDS_COMA_SEPARATED, puis 5 à la place de FEW_MORE_KEYWORDS_COMA_SEPARATED, et une description par défaut (deux ou trois petites phrases pour décrire ton forum) à l a place de YOUR_DEFAUT_DESCRITPION etc ...
++
//BEGIN www.phpBB-SEO.com Dynamic meta tags
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) ) {
$meta_topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
} elseif ( isset($HTTP_GET_VARS[POST_FORUM_URL]) ) {
$meta_forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]);
} elseif ( isset($HTTP_GET_VARS[POST_CAT_URL]) ) {
$meta_cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]);
}
if ( isset($meta_topic_id) ) {
$sql = "SELECT c.cat_title, f.forum_name, t.topic_title
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE f.forum_id = t.forum_id
AND c.cat_id = f.cat_id
AND t.topic_id = $meta_topic_id";
if( ($result = $db->sql_query($sql)) ) {
if ( $meta_row = $db->sql_fetchrow($result) ) {
$description = $board_config['sitename'] . ' :: ' . $meta_row['cat_title'] . ' :: ' . $meta_row['forum_name'] . ' :: ' . $meta_row['topic_title'];
}
}
$sql = "SELECT w.word_text
FROM " . TOPICS_TABLE . " t, " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w
WHERE t.topic_first_post_id = m.post_id
AND m.word_id = w.word_id
AND t.topic_id = $meta_topic_id LIMIT 20";
if( ($result = $db->sql_query($sql)) ) {
$keywords = '';
while ( $meta_row = $db->sql_fetchrow($result) ) {
$keywords .= ($keywords == '') ? $meta_row['word_text'] : ',' . $meta_row['word_text'];
}
}
} elseif ( isset($meta_forum_id) ) {
$sql = "SELECT c.cat_title, f.forum_name
FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE c.cat_id = f.cat_id
AND f.forum_id = $meta_forum_id";
//SQL CACHE
if( ($result = $db->sql_query($sql)) ) {
//if( ($result = $db->sql_query($sql, false, 'META_')) ) {
if ( $meta_row = $db->sql_fetchrow($result) ) {
$description = $board_config['sitename'] . ' :: ' . $meta_row['cat_title'] . ' :: ' . $meta_row['forum_name'];
$keywords = $board_config['sitename'] . ', ' . $meta_row['cat_title'] . ', ' . $meta_row['forum_name'] . ', FEW_MORE_KEYWORDS_COMA_SEPARATED';
}
//here we clear $result from ram and cache it
$db->sql_freeresult($result);
//End sql cache opt
}
} elseif ( isset($meta_cat_id) ) {
$sql = "SELECT cat_title
FROM " . CATEGORIES_TABLE . "
WHERE cat_id = $meta_cat_id";
//SQL CACHE
if( ($result = $db->sql_query($sql)) ) {
//if( ($result = $db->sql_query($sql, false, 'META_')) ) {
if ( $meta_row = $db->sql_fetchrow($result) ) {
$keywords = $board_config['sitename'] . ', ' . $meta_row['cat_title'] . ', FEW_MORE_KEYWORDS_COMA_SEPARATED';
$description = $board_config['sitename'] . ' :: ' . $meta_row['cat_title'];
}
//here we clear $result from ram and cache it
$db->sql_freeresult($result);
//End sql cache opt
}
} else {
$description .= 'YOUR_DEFAUT_DESCRITPION';
$keywords = 'YOUR_DEFAULT_KEYWORDS_COMA_SEPARATED';
}
$phpbb_meta = '<meta name="title" content="' . $page_title .'" />' . "\n";
//$meta_str .= '<meta name="author" content=" YOUR_AUTHOR_INFOS " />' . "\n";
//$meta_str .= '<meta name="copyright" content=" YOUR_COPYRIGHT_INFOS " />' . "\n";
$phpbb_meta .= '<meta name="keywords" content="' . $keywords .'" />' . "\n";
$phpbb_meta .= '<meta name="description" lang="fr" content="'. $description .'" />' . "\n";
$phpbb_meta .= '<meta name="category" content="general" />' . "\n";
$phpbb_meta .= '<meta name="robots" content="index, follow" />' . "\n";
//END www.phpBB-SEO.com Dynamic meta tags

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Scooter Chinois 50cc 4T :: Index</title>
<!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" -->

dcz a écrit:Enfin, bref, on vois ça dès le début, et aussi, que tu devrais peut être commencer à utiliser ta feuille de style CSS et effacer tout le style hard codé dans overall_header.tpl, tu y gagnerait en bande passante.
Et donc, tu as fait la modifs dans overall_header.tpl, et celles de pages_header.php ?
++


Bruno36 a écrit:non les metas ne marche toujour pas![]()
Comment je fait pour allerger mon overall_header.tpl stp
http://www.scooter-chinois-4t.com


Retourner vers MODS phpBB2 SEO
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 5 invités