Bienvenue sur Geeklog France, anonyme 22 octobre 2017 - 09:56


 05 décembre 2014 - 12:39 (Lu 10234 fois)  

Status : hors ligne

Ben

Administrateur

Admin
Enregistré: 18/10/2006
Réponses: 136
Localisation:la rochelle, France
For a better SEO of your forum plugin 2.8.0

public_html/forum/index.php line 109

PHP Formatted Code

//SEO Title
$title = $LANG_GF01['FORUM'];
$forum_id = COM_applyFilter($_REQUEST['forum'],true);
if (isset($_REQUEST['forum'])) $title = stripslashes(DB_getItem($_TABLES['forum_forums'],'forum_name',"forum_id='{$forum_id}'")) ;
// Display Common headers
$display .= gf_siteHeader($title);


public_html/forum/viewtopic.php line 63

PHP Formatted Code
//SEO title
$result = DB_query("SELECT forum, pid, subject, forum_name FROM {$_TABLES['forum_topic']} LEFT JOIN {$_TABLES['forum_forums']} ON forum = forum_id WHERE id = '$showtopic'"); // <- new
list($forum, $topic_pid, $subject, $forum_name) = DB_fetchArray($result); // <- new
$subject = stripslashes($forum_name) . ' | '. $subject;

 05 décembre 2014 - 12:58  

Status : hors ligne

Ben

Administrateur

Admin
Enregistré: 18/10/2006
Réponses: 136
Localisation:la rochelle, France
and for your forum plugin 2.9.0

public_html/forum/index.php line 1026

PHP Formatted Code

//SEO Title
$title = $LANG_GF01['FORUM'];
$forum_id = COM_applyFilter($_REQUEST['forum'],true);
if (isset($_REQUEST['forum'])) $title = stripslashes(DB_getItem($_TABLES['forum_forums'],'forum_name',"forum_id='{$forum_id}'")) ;
$display = gf_createHTMLDocument($display, $title);


public_html/forum/viewtopic.php line 66

PHP Formatted Code
//SEO title
$result = DB_query("SELECT forum, pid, subject, forum_name FROM {$_TABLES['forum_topic']} LEFT JOIN {$_TABLES['forum_forums']} ON forum = forum_id WHERE id = '$showtopic'"); // <- new
list($forum, $topic_pid, $subject, $forum_name) = DB_fetchArray($result); // <- new
$subject = stripslashes($forum_name) . ' | '. $subject;

Le fuseau horaire est CEST. Il est maintenant 09:56 .

  • Sujet Normal
  • Sujet important
  • Sujet clos
  • Nouvelle Contribution
  • Nouveau sujet important
  • Nouveau sujet clos
  • Vous pouvez lire ce forum 
  • Les anonymes peuvent dans ce forum 
  • HTML autorisé 
  • Contrôle vocabulaire