เว็บบอร์ด สาระน่ารู้ ชุมชน คนทำเว็บ โปรโมทฟรี แจกสคริปฟรี CMS Web hosting
:: พัฒนาเว็บไซต์ CoolhostPlus :: => ห้องแจก CMS & Free Script => Simple Machines Forum [SMF] => ข้อความที่เริ่มโดย: CoolhostPlus ที่ กุมภาพันธ์ 28, 2016, 18:35:57
-
สำหรับ SMF 2.0.x
เปิดไฟล์ index.template.php สำหรับธีมที่ใช้
หาโค้ด
', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
แทนที่หา
';
if (!empty($context['current_topic'])){
$keystring = str_replace(' ', ',', trim($context['page_title_html_safe']));
echo '<meta name="keywords" content="', $keystring, '" />';
}
elseif (!empty($context['current_board'])){
$keystring = str_replace(' ', ',', trim($context['page_title_html_safe']));
echo '<meta name="keywords" content="', $keystring, '" />';
}
else
{
echo '<meta name="keywords" content="', $context['meta_keywords'], '" />';
}
echo '