[MOD] Google Search

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: [MOD] Google Search

[MOD] Google Search

โดย buay » 02/07/2014 2:17 pm

2-7-2557 14-18-01.png
2-7-2557 14-18-01.png (8.7 KiB) Viewed 5037 times
รายละเอียด : MOD นี้จะเพิ่มช่องค้นหาของ Google
พัฒนาโดย : AllCity
Version : 1.0.1
ดาวน์โหลดได้ที่ : https://www.mindphp.com/download/files/1 ... h-zip.html

ไฟล์ที่ใช้ในการติดตั้ง
>>search.php,
>>language/en/common.php,
>>styles/prosilver/template/overall_header.html

วิธีติดตั้ง
เปิดไฟล์ : search.php,

ค้นหา

โค้ด: เลือกทั้งหมด

$return_chars    = request_var('ch', ($topic_id) ? -1 : 300);
$search_forum    = request_var('fid', array(0));
เติมหลัง

โค้ด: เลือกทั้งหมด

$gsearch = request_var('gsearch', false);
if($gsearch)
{
  $board_url = parse_url(generate_board_url());
  redirect('http://www.google.com/search?sitesearch='.$board_url['host'].'&q='.$keywords, false, true);
}
เปิดไฟล์ : language/en/common.php,

ค้นหา

โค้ด: เลือกทั้งหมด

    'SEARCH_ADV'                => 'Advanced search',
เติมหลัง

โค้ด: เลือกทั้งหมด

    'SEARCH_GOOGLE' => 'Using Google search?',
เปิดไฟล์ : styles/prosilver/template/overall_header.html

ค้นหา

โค้ด: เลือกทั้งหมด

                    <input class="button2" value="{L_SEARCH}" type="submit" /><br />
เติมหลัง

โค้ด: เลือกทั้งหมด

                    <label for="gSearch"><span style="color: #FFFFFF;">{L_SEARCH_GOOGLE}</span> <input class="radio" name="gsearch" type="checkbox" id="gSearch" /></label><br />

ข้างบน