| Code: |
| elseif($_GET['file'] =="viewtopic"){
if(isset ($_GET['t'])) { $topicid = $_GET['t'] ; $row = $db->sql_fetchrow($db->sql_query("SELECT topic_title FROM ".$prefix."_bbtopics WHERE topic_id='$topicid'")); $topic = $row['topic_title']; echo "<title>Forum de $sitename : $topic </title>\n"; } else { $topicid = $_GET['p'] ; $row = $db->sql_fetchrow($db->sql_query("select post_id, post_subject from ".$prefix."_bbposts_text where post_id='$topicid'")); $topic = $row['post_subject']; echo "<title>Forum de $sitename : $topic </title>\n"; } } |
| Code: |
| /***** TITRE PAGE - Ajout FB *****/
global $name, $db, $prefix; if ($name =="Forums") { if ($_GET['file'] =="viewforum"){ $forumid = $_GET['f']; $row = $db->sql_fetchrow($db->sql_query("SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$forumid'")); $forum = $row['forum_name']; echo "<title>Forum de $sitename : $forum </title>\n";} elseif($_GET['file'] =="viewtopic"){ if(isset ($_GET['t'])) { $topicid = $_GET['t'] ; $row = $db->sql_fetchrow($db->sql_query("SELECT topic_title FROM ".$prefix."_bbtopics WHERE topic_id='$topicid'")); $topic = $row['topic_title']; echo "<title>Forum de $sitename : $topic </title>\n"; } else { $topicid = $_GET['p'] ; $row = $db->sql_fetchrow($db->sql_query("select post_id, post_subject from ".$prefix."_bbposts_text where post_id='$topicid'")); $topic = $row['post_subject']; echo "<title>Forum de $sitename : $topic </title>\n"; } } elseif ($_GET['file'] =="search"){echo "<title>Forum de $sitename : Recherche </title>\n";} elseif ($_GET['file'] =="faq"){echo "<title>Forum de $sitename - FAQ du Forum </title>\n";} elseif (($_GET['file'] =="index") OR ($_GET['file'] =="")){echo "<title>Forum de $sitename : Accueil </title>\n";} else {echo "<title>Forum de $sitename</title>\n";} } else {echo "<title>$sitename $pagetitle</title>\n";} // si module pas forum /***** /FIN TITRE PAGE/ *****/ |
Toutes les heures sont au format GMT + 2 Heures