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

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

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Spider Board and Topic Access  (อ่าน 1111 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general เมื่อ: 31 มกราคม 2553, 12:22:13
  • ชื่อ: Spider Board & Topic Access
  • ผู้เขียน: Duncan85
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Administrative
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 15 มีนาคม 2553
  • ต้นฉบับ: Spider Board & Topic Access

รายละเอียด
      อนุญาตให้บอทเข้าไปดูและอ่านกระทู้เพื่อเก็บข้อมูลได้ แต่บุคคลทั่วไปเข้าไม่ได้ครับ ไฟล์ที่ต้องแก้ไข อ้างอิงจากดีฟ้อลต์ทั้งหมดนะครับ

แก้ไขไฟล์:

file ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
array('check', 'userLanguage'),

แก้เป็น -->>
โค๊ด: [Select]
array('check', 'enable_spiderAccess',
&$txt['enable_spiderAccess']),
array('text', 'enabled_spider', '35',
&$txt['enabled_spider']),
'',

array('check', 'userLanguage'),

file Display.php

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

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Lets enable spider access
if (!empty($modSettings['enabled_spider']))
{
$enabled_spider = explode(",", preg_replace("/(\[^a-ZA-Z0-9,])/", "", $modSettings['enabled_spider']));

foreach ($enabled_spider as $key => $value)
if (empty($value))
unset($enabled_spider[$key]);
}
else
$enabled_spider = array();
$spider_match = false;

if (!empty($modSettings['enable_spiderAccess']))
{
foreach($enabled_spider as $spider)
{
preg_match('/' . $spider . '/', $_SERVER['HTTP_USER_AGENT'], $matches);
if(count($matches) > 0)
 $spider_match = true;
}

}

if (!$spider_match || $context['user']['is_guest'])
is_not_guest();

file MessageIndex.php

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

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Lets enable spider access
if (!empty($modSettings['enabled_spider']))
{
$enabled_spider = explode(",", preg_replace("/(\[^a-ZA-Z0-9,])/", "", $modSettings['enabled_spider']));

foreach ($enabled_spider as $key => $value)
if (empty($value))
unset($enabled_spider[$key]);
}
else
$enabled_spider = array();
$spider_match = false;

if (!empty($modSettings['enable_spiderAccess']))
{
foreach($enabled_spider as $spider)
{
preg_match('/' . $spider . '/', $_SERVER['HTTP_USER_AGENT'], $matches);
if(count($matches) > 0)
 $spider_match = true;
}
}

if (!$spider_match || $context['user']['is_guest'])
is_not_guest();

file Modifications.thai-utf8.php

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

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
$txt['enable_spiderAccess'] = 'Enable Spider Access';
$txt['enabled_spider'] = 'The spiders,which should be able to browse the site <br /><i>
(As an example,for the spiders <b><font color="red">google and yahoo</font></b>
you should write google,yahoo) ';

"Warning" การลง Mod นี้จะทำให้เกิดผลข้างเคียงได้สองประการ
     1.โดนกูเกิ้ลแบน
     2.บุคคลทั่วไปเข้าหน้า MessageIndex กับ Display ไม่ได้


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


!Personal

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

แก้ไขไฟล์:

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

แก้เป็น -->>
โค๊ด: [Select]
array('check', 'enable_spiderAccess',
&$txt['enable_spiderAccess']),
array('text', 'enabled_spider', '35',
&$txt['enabled_spider']),
'',

file $sourcedir/Display.php

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

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Lets enable spider access
if (!empty($modSettings['enabled_spider']))
{
$enabled_spider = explode(",", preg_replace("/(\[^a-ZA-Z0-9,])/", "", $modSettings['enabled_spider']));




foreach ($enabled_spider as $key => $value)
if (empty($value))
unset($enabled_spider[$key]);
}
else
$enabled_spider = array();
$spider_match = false;

if (!empty($modSettings['enable_spiderAccess']))
{



foreach($enabled_spider as $spider)
{
preg_match('/' . $spider . '/', $_SERVER['HTTP_USER_AGENT'], $matches);



if(count($matches) > 0)

  $spider_match = true;




}

}

if (!$spider_match || $context['user']['is_guest'])
is_not_guest();


file $sourcedir/MessageIndex.php

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

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Lets enable spider access
if (!empty($modSettings['enabled_spider']))
{
$enabled_spider = explode(",", preg_replace("/(\[^a-ZA-Z0-9,])/", "", $modSettings['enabled_spider']));




foreach ($enabled_spider as $key => $value)
if (empty($value))
unset($enabled_spider[$key]);
}
else
$enabled_spider = array();
$spider_match = false;

if (!empty($modSettings['enable_spiderAccess']))
{



foreach($enabled_spider as $spider)
{
preg_match('/' . $spider . '/', $_SERVER['HTTP_USER_AGENT'], $matches);



if(count($matches) > 0)

  $spider_match = true;




}

}

if (!$spider_match || $context['user']['is_guest'])
is_not_guest();


file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['enable_spiderAccess'] = 'Enable spider access';
$txt['enabled_spider'] = 'The spiders,which should be able to browse the site <br /><i> (As an example,for the spiders <b><font color="red">google and yahoo</font></b> you should write google,yahoo) ';


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

Creative Commons License

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

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 17 พฤษภาคม 2555, 04:27:40

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