22 พฤษภาคม 2555, 15:46:12
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Sitemap สร้างแผนผังบอร์ดเพื่อผลทาง SEO  (อ่าน 1767 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general เมื่อ: 16 มิถุนายน 2553, 21:37:55
  • ชื่อ: Sitemap
  • ผู้เขียน: SlammedDime
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Search Engine Optimization
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 12 มีนาคม 2553
  • ต้นฉบับ: Sitemap

รายละเอียด
      สร้างแผนผังบอร์ดเพื่อให้ Search Engine เข้าเก็บข้อมูลของบอร์ดได้อย่างเป็นระบบ ซึ่งคุณบัติมีดังนี้
  • ให้ทุกคนหรือเฉพาะผู้ดูแลระบบดู XML link (สามารถบันทึกลงเซอร์เวอร์ในบอร์ดขนาดใหญ่)
  • กำหนด จำนวนหัวข้อที่จะแสดงใน XML sitemap
  • กำหนด ลำดับความสำคัญสำหรับหัวข้อที่ 30,60, 90, หรือนานกว่า 91 +
  • การคำนวณแบบยืดหยุ่นของการเปลี่ยนแปลงความถี่ XML sitemap
  • บอร์ดที่มีการตั้งค่าปกติไม่ให้บุคคลทั่วไปมองเห็น ก็จะไม่มองเห็นในแผนผังบอร์ด
  • ให้แสดง XML sitemap แก่บุคคลทั่วไปตลอดเวลาและใช้แคชเพื่อให้ดำเนินการได้เร็วขึ้น
  • ใช้งานได้ดีกับ SEF url
  • ใช้งานได้ดีกับ Pretty URLs

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'smileys' => array('ManageSmileys.php', 'ManageSmileys'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'sitemap' => array('Sitemap.php', 'ShowSiteMap'),

file $sourcedir/ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Width/Height image reduction.
array('int', 'max_image_width'),
array('int', 'max_image_height'),

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
array('check', 'sitemap_xml'),
array('int', 'sitemap_topic_count'),
array('check', 'sitemap_collapsible'),
'',

file $themedir/index.template.php

โค๊ด: [Select]
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>

file $languagedir/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'When unchecked, the link to the XML sitemap will only be shown to admins.  When checked, anyone can see it.';
$helptxt['sitemap_topic_count'] = 'This is the maximum number of topics that will be displayed in the XML sitemap, as well as the pages of the sitemap.  Default is 20000 (200 pages).';
$helptxt['sitemap_collapsible'] = 'Enabling this option will collapse your child boards on the boards display of the sitemap.  Could be useful for sites with lots of child boards.';

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML link';
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';
$txt['sitemap_collapsible'] = 'Collapse child boards in sitemap';

file $languagedir/Who.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['whoall_sitemap'] = 'Viewing the <a href="' . $scripturl . '?action=sitemap">Sitemap</a>.';

file $themedir/style.css

ค้นหา -->>
โค๊ด: [Select]
/* Normal, standard links. */
a:link
{

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
/* Style for Sitemap */
.showSwitch {
display: block;
}
.hideSwitch {
display: none;
}

ดาวน์โหลด: sitemap.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

แตกไฟล์แล้วอัพโหลดไปไว้ที่
file Sitemap.php -->> $sourcedir
file Sitemap.template.php -->> $themesdir/default

สร้างไฟล์: add_settings.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/add_settings.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/*******************************************************************************
This is a simplified script to add settings into SMF.

ATTENTION: If you are trying to INSTALL this package, please access
it directly, with a URL like the following:
http://www.yourdomain.tld/forum/add_settings.php (or similar.)

================================================================================

This script can be used to add new settings into the database for use
with SMF's $modSettings array.  It is meant to be run either from the
package manager or directly by URL.

*******************************************************************************/

// Set the below to true to overwrite already existing settings with the defaults. (not recommended.)
$overwrite_old_settings false;

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
'sitemap_xml' => '0',
'sitemap_topic_count' => '20000',
'sitemap_collapsible' => '0',
);

/******************************************************************************/

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

// Turn the array defined above into a string of MySQL data.
$string '';
foreach (
$mod_settings as $k => $v)
$string .= '
(\'' 
$k '\', \'' $v '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result db_query("
. ($overwrite_old_settings 'REPLACE' 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" 
substr($string0, -1), __FILE____LINE__) or die(mysql_error());  

 echo 
'<b>Your settings have been entered into the database!</b><br />';

?>


การตั้งค่า: ผู้ดูแล -->> ส่วนปรับแต่งค่าการใช้งาน


ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 16 มิถุนายน 2553, 22:10:21
สำหรับ SMF 2.0.xx

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'smstats' => array('Stats.php', 'SMStats'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'sitemap' => array('Sitemap.php', 'ShowSiteMap'),

file $sourcedir/Admin.php

ค้นหา -->>
โค๊ด: [Select]
// Note the comma!! The setting with automatically appear with the first mod to be added.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'sitemap' => array($txt['sitemap']),

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'sitemap' => 'ModifySitemapSettings',

ค้นหา -->>
โค๊ด: [Select]
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'sitemap' => array(
),

ค้นหา -->>
โค๊ด: [Select]
?>

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
function ModifySitemapSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

$config_vars = array(
array('check', 'sitemap_xml'),
array('int', 'sitemap_topic_count'),
array('int', 'sitemap_cache_ttl'),
'',
array('select', 'sitemap_30day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_60day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_90day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_91day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
);

if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=sitemap';
$context['settings_title'] = $txt['sitemap'];

// Saving?
if (isset($_GET['save']))
{
checkSession();
$save_vars = $config_vars;
saveDBSettings($save_vars);
redirectexit('action=admin;area=modsettings;sa=sitemap');
}
prepareDBSettingContext($config_vars);
}

file $themedir/index.template.php

ค้นหา -->>
โค๊ด: [Select]
<li class="copyright">', theme_copyright(), '</li>

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
<li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'</span></a></li>

file $languagedir/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'When unchecked, the <em>link</em> to the XML sitemap will only be shown to admins.  When checked, anyone can see it.';
$helptxt['sitemap_topic_count'] = 'This is the maximum number of topics that will be displayed in the XML sitemap.  Default is 20000.  You can set this to 0 to display all topics on your board';

file $languagedir/Modifications.english.php

เพิ่ม -->>
โค๊ด: [Select]
// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximum number of topics to display in XML sitemap<br /><span class="smalltext">0 to show all (<strong class="error">NOT RECOMMENDED ON LARGE BOARDS</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Time that XML data should be cached (seconds)';
$txt['sitemap_board_none'] = 'No boards to display';
$txt['sitemap_topic_none'] = 'No topics to display';
$txt['sitemap_30day_priority'] = 'Priority for topics active in the last 30 days';
$txt['sitemap_60day_priority'] = 'Priority for topics active in the last 60 days';
$txt['sitemap_90day_priority'] = 'Priority for topics active in the last 90 days';
$txt['sitemap_91day_priority'] = 'Priority for topics older than 90 days';

file $languagedir/Who.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['whoall_sitemap'] = 'Viewing the <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';

ดาวน์โหลด: sitemap2.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

แตกไฟล์แล้วอัพโหลดไปไว้ที่
file Sitemap.php -->> $sourcedir
file sitemap_topics.php -->> $sourcedir
file sitemap_boards.php -->> $sourcedir
file Sitemap.template.php -->> $themesdir/default

สร้างไฟล์: add_settings.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/add_settings.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/*******************************************************************************
This is a simplified script to add settings into SMF.

ATTENTION: If you are trying to INSTALL this package, please access
it directly, with a URL like the following:
http://www.yourdomain.tld/forum/add_settings.php (or similar.)

================================================================================

This script can be used to add new settings into the database for use
with SMF's $modSettings array.  It is meant to be run either from the
package manager or directly by URL.

*******************************************************************************/

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
'sitemap_xml' => '0',
'sitemap_topic_count' => '20000',
'sitemap_cache_ttl' => '3600',
'sitemap_30day_priority' => '0.8',
'sitemap_60day_priority' => '0.6',
'sitemap_90day_priority' => '0.4',
'sitemap_91day_priority' => '0.2',
);

/******************************************************************************/

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif(!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

updateSettings($mod_settings);

 if (
SMF == 'SSI')
echo '<b>Your settings have been entered into the database!</b><br />';

?>


การตั้งค่า: ผู้ดูแล -->> Modifications -->> Sitemap


ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 2 เมื่อ: 10 พฤษภาคม 2554, 22:38:08
ทำไมทำเสร็จแล้ว พอไปคลิกที่ sitemap มันขึ้นกรอบเปล่า ว่าเกิดข้อผิดพลาดครับ



ลิงค์หัวข้อ: http://dexmore.com/topic/1986
« แก้ไขครั้งสุดท้าย: 10 พฤษภาคม 2554, 22:43:04 โดย kaijae » Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
ด้วยรักษ์อาข่า โซ
*
***


รักษ์ชนเผ่าอาข่า

Thailand   ชาย ออฟไลน์ เว็บไซต์
icon message
general ความคิดเห็นที่ 3 เมื่อ: 10 พฤษภาคม 2554, 22:43:57
ทำไมทำเสร็จแล้ว พอไปคลิกที่ sitemap มันขึ้นกรอบเปล่า ว่าเกิดข้อผิดพลาดครับ
ถ้าทำตามขั้นตอน ไม่ผิดพลาดนะครับ ผมลองมาหลายครั้งแล้ว ลองกลับไปทวนใหม่แต่ต้นดูสิครับ อาจใส่ตกหล่นสักที่หนึ่งก็ได้ 

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Thx by UnclEo
Windows XP    Chrome 11.0.696.65   see ip บันทึกการเข้า
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 4 เมื่อ: 10 พฤษภาคม 2554, 23:08:15
ถ้าผมจะลบ ฐานข้อมูลที่สร้างจาก add_settings.php ได้ยังไงครับ จะลองใหม่ทั้งหมดเลย เผลอไปทำ 2 ครั้งจะมีปัญหามั้ยครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 5 เมื่อ: 10 พฤษภาคม 2554, 23:39:08
เรื่องฐานข้อมูลไม่มีปัญหาครับ

ปัญอยู่ที่ว่ามันผิดพลาดอะไร บอกแต่ว่าผิดพลาดแบบนี้งงครับ ถ้าบอกว่าผิดพลาดอะไรแก้ได้ทันที

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 6 เมื่อ: 10 พฤษภาคม 2554, 23:50:41
ทำไมทำเสร็จแล้ว พอไปคลิกที่ sitemap มันขึ้นกรอบเปล่า ว่าเกิดข้อผิดพลาดครับ



มันขึ้นตามรูปที่แสดงครับ  ไม่ทราบว่าผิดตรงไหน เช็คดูทุกไฟล์ที่แก้ไขแล้วก้ตรงเหมือนกันหมด

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
« แก้ไขครั้งสุดท้าย: 10 พฤษภาคม 2554, 23:52:28 โดย kaijae » Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 7 เมื่อ: 12 พฤษภาคม 2554, 17:34:08
ผมเห็นโค้ดที่คุณไปโพสต์ถามที่ zont-it แล้วครับ อันนั้นมันเป็นของ 2.0 ซึ่งมาใช้กับ 1.1 มันจะไม่ดำเนินการใดๆ ทั้งสิ้น ไม่ต้องไปตามลบตารางหรอกเพราะมันไม่มีการสร้างตารางใดๆ

ปัญหาของคุณคือใช้ mod ผิดเวอร์ชั่น

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Switzerland   ชาย ออฟไลน์ikhunarm ikhunarm
เว็บไซต์
icon message
general ความคิดเห็นที่ 8 เมื่อ: 13 พฤษภาคม 2554, 02:51:07
ผมใช้ 2.0 RC5 ครับ ผมติดตั้งแล้ว พอกดรันมันก็ขึ้น Your settings have been entered into the database! ปรกติ

แต่พอเข้าไปที่หน้า Sitemap

มันขึ้นว่า ผิดพลาดเหมือนกัน เป็นแบบเดียวกับคุณ kaijae ผมติดตั้ง สำหรับ SMF 2.0.xx ครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows NT 6.1    Firefox 4.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 9 เมื่อ: 13 พฤษภาคม 2554, 07:56:46
2.0 มันต้องอัพไฟล์ขึ้น 4 ไฟล์นะครับ อัพขึ้นครบหรือยัง

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 10 เมื่อ: 13 พฤษภาคม 2554, 11:07:51
ได้แล้วครับ ผมใช้ 1.1.13 ครับ ที่เวบมันมีให้โหลด 2 ไฟล์ เลยเอามาเปรียบเทียบกัน ต้องใช้ sitemap-1-2-2
ขอบคุณครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 11 เมื่อ: 18 พฤศจิกายน 2554, 05:24:09
ของผมมีปัญหาครับครับ เกิดข้อผิดพลาด! smf 2.0.1 ปกติใช้ smf 1.1.xx ไม่มีปัญหา

โค๊ด: [Select]
http://www.honggame.com/index.php?action=sitemap

แล้วก็ถ้าใส่ code นี้ลงไป
โค๊ด: [Select]
function ModifySitemapSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

$config_vars = array(
array('check', 'sitemap_xml'),
array('int', 'sitemap_topic_count'),
array('int', 'sitemap_cache_ttl'),
'',
array('select', 'sitemap_30day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_60day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_90day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_91day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
);

if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=sitemap';
$context['settings_title'] = $txt['sitemap'];

// Saving?
if (isset($_GET['save']))
{
checkSession();
$save_vars = $config_vars;
saveDBSettings($save_vars);
redirectexit('action=admin;area=modsettings;sa=sitemap');
}
prepareDBSettingContext($config_vars);
}



หน้า admin  ในส่วนของ sitemap จะเป็นแบบนี้ครับ
โค๊ด: [Select]
http://www.honggame.com/index.php?action=admin;area=modsettings;sa=sitemap


โค๊ด: [Select]
Fatal error: Cannot redeclare modifysitemapsettings() (previously declared in /home/admin/public_html/Sources/Admin.php:1075) in /home/admin/public_html/Sources/ManageSettings.php on line 2231

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 12 เมื่อ: 18 พฤศจิกายน 2554, 09:39:55
โค้ดซ้ำกัน 2 ที่หรือเปล่าครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 13 เมื่อ: 18 พฤศจิกายน 2554, 16:54:21
ใช่ครับคุณ UnclEo ผมทำผิดครับซ้ำกัน ตอนนี้ใช้ได้แล้วขอบคุณมากครับ javascript:void(0);

ลิงค์หัวข้อ: http://dexmore.com/topic/1986
Thx by UnclEo
Windows XP    Firefox 8.0   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 16 พฤษภาคม 2555, 20:33:51

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla