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

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

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: bookmarks เก็บหัวข้อที่ถูกใจไว้อ่านวันหลัง  (อ่าน 1601 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
  • ชื่อ: bookmarks
  • ผู้เขียน: Aäron
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Socialization
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 25 มีนาคม 2553
  • ต้นฉบับ: bookmarks

รายละเอียด
      บางครั้งเราเจอเรื่องราวที่ถูกใจในบอร์ดแต่ยังไม่มีเวลาอ่าน ก็ไม่รู้จะจดจำหรือเก็บลิงค์หัวข้อไว้อย่างไร ถ้าหากใช้คอมพิวเตอร์ส่วนตัวก็ยังจะสามารถเก็บไว้ใน bookmarks ของเบราเซอร์ได้ แต่หากไม่ได้ใช้เครื่องส่วนตัว ก็ไม่รู้จะเก็บอย่างไร mod นี้จะช่วยแก้ปัญหานี้ให้หมดไป คุณสัมบัติของ mod มีอย่างนี้ครับ
  • ผู้ใช้สามารถเก็บหัวข้อไว้เป็นกระทู้โปรดด้วยเพียงคลิกเคียว
  • ผู้ใช้สามรถจัดการรับรายการกระทู้โปรดได้ด้วยตัวเอง
  • หัวข้อจะถูกลบออกจากรายการกระทู้โปรดโดยอัตโนมัติ เมื่อหัวข้อถูกลบ

ตัวอย่าง






สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $boarddir/index.php

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

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

file $sourcedir/Display.php

ค้นหา -->>
โค๊ด: [Select]
// Now set all the wonderful, wonderful permissions... like moderation ones...
$common_permissions = array(
'can_sticky' => 'make_sticky',
'can_merge' => 'merge_any',
'can_split' => 'split_any',

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

file $sourcedir/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
'karma_edit' => false,
),
'pm' => array(

แก้เป็น -->>
โค๊ด: [Select]
'make_bookmarks' => false,
'karma_edit' => false,
),
'pm' => array(

ค้นหา -->>
โค๊ด: [Select]
$non_guest_permissions = array(

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

file $sourcedir/RemoveTopic.php

ค้นหา -->>
โค๊ด: [Select]
// Delete anything related to the topic.
db_query("
DELETE FROM {$db_prefix}messages
WHERE ID_TOPIC $condition", __FILE__, __LINE__);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// Delete bookmarks as well!
db_query("
DELETE FROM {$db_prefix}bookmarks
WHERE ID_TOPIC $condition", __FILE__, __LINE__);
// Delete other related stuff

file $themedir/index.template.php

ค้นหา -->>
โค๊ด: [Select]
if (in_array($context['current_action'], array('search',

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

ค้นหา -->>
โค๊ด: [Select]
// The [calendar]!

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// The [bookmarks] button
if (allowedTo('make_bookmarks'))
echo ($current_action == 'bookmarks' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'bookmarks' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=bookmarks">' , $txt['bookmarks'] , '</a>
</td>' , $current_action == 'bookmarks' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

file $themedir/Display.template.php

ค้นหา -->>
โค๊ด: [Select]
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'bookmark' => array('test' => 'can_make_bookmarks', 'text' => 'bookmark_add', 'lang' => true, 'url' => $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic']),

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['bookmarks'] = 'My Bookmarks';
$txt['bookmark_list'] = 'Bookmarks';
$txt['bookmark_list_empty'] = 'You don\'t have any bookmarks at the moment. Add one by clicking \'Add bookmark\' in topics.';
$txt['bookmark_open_window'] = 'Open in new window';
$txt['bookmark_delete'] = 'Delete selected bookmarks';
$txt['bookmark_delete_success'] = '%1$s bookmarks were deleted successfully!';
$txt['bookmark_delete_failure'] = 'No bookmarks have been deleted.';
$txt['bookmark_add'] = 'Add bookmark';
$txt['bookmark_add_success'] = 'The topic was successfully added to your bookmarks!';
$txt['bookmark_add_exists'] = 'This topic is already listed in your bookmarks!';
$txt['bookmark_add_failed'] = 'Failed to add the topic to your bookmarks.';
$txt['permissionname_make_bookmarks'] = 'Create bookmarks for topics';
$txt['cannot_make_bookmarks'] = 'Sorry, you don\'t have permission to make bookmarks.';

ดาวโหลด: Bookmarks1.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com
แตกไฟล์แล้วอัพโหลดไปไว้ที่
file Bookmarks.php -->> $sourcedir
file Bookmarks.template.php -->> $themesdir/default

สร้างไฟล์: install.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/install.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
db_query
("
CREATE TABLE IF NOT EXISTS {$db_prefix}bookmarks
(
`ID_MEMBER` mediumint(8) unsigned NOT NULL,
`ID_TOPIC` mediumint(8) unsigned NOT NULL,
UNIQUE KEY `ID_MEMBER` (`ID_MEMBER`,`ID_TOPIC`)
)"
__FILE____LINE__);
?>

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


!Personal

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

แก้ไขไฟล์:

file $boarddir/index.php

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

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

file $sourcedir/Display.php

ค้นหา -->>
โค๊ด: [Select]
// Now set all the wonderful, wonderful permissions... like moderation ones...
$common_permissions = array(
'can_approve' => 'approve_posts',
'can_ban' => 'manage_bans',
'can_sticky' => 'make_sticky',
'can_merge' => 'merge_any',
'can_split' => 'split_any',

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

file $sourcedir/ManagePermissions.php

โค๊ด: [Select]
'profile_server_avatar' => array(false, 'profile', 'use_avatar'),
'profile_upload_avatar' => array(false, 'profile', 'use_avatar'),
'profile_remote_avatar' => array(false, 'profile', 'use_avatar'),

เพิ่มไ้ว้ก่อน -->>
โค๊ด: [Select]
'make_bookmarks' => array(false, 'general', 'view_basic_info'),

ค้นหา -->>
โค๊ด: [Select]
$context['non_guest_permissions'] = array(

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

file $sourcedir/RemoveTopic.php

ค้นหา -->>
โค๊ด: [Select]
// Delete anything related to the topic.
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}messages
WHERE id_topic IN ({array_int:topics})',
array(
'topics' => $topics,
)
);

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// Delete bookmarks as well!
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}bookmarks
WHERE id_topic IN ({array_int:topics})',
array(
'topics' => $topics,
)
);

file $sourcedir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
'calendar' => array(
'title' => $txt['calendar'],
'href' => $scripturl . '?action=calendar',
'show' => $context['allow_calendar'],

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'bookmarks' => array(
'title' => $txt['bookmarks'],
'href' => $scripturl . '?action=bookmarks',
'show' => allowedTo('make_bookmarks'),
'sub_buttons' => array(
),
),

file $themedir/Display.template.php

ค้นหา -->>
โค๊ด: [Select]
'reply' => array('test' => 'can_reply', 'text' => 'reply', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'], 'active' => true),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'bookmark' => array('test' => 'can_make_bookmarks', 'text' => 'bookmark_add', 'lang' => true, 'url' => $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic'] . ';' . $context['session_var'] . '=' . $context['session_id']),

ค้นหา -->>
โค๊ด: [Select]
'reply' => array('test' => 'can_reply', 'text' => 'reply', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'bookmark' => array('test' => 'can_make_bookmarks', 'text' => 'bookmark_add', 'lang' => true, 'url' => $scripturl . '?action=bookmarks;sa=add;topic=' . $context['current_topic'] . ';' . $context['session_var'] . '=' . $context['session_id']),

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['bookmarks'] = 'My Bookmarks';
$txt['bookmark_list'] = 'Bookmarks';
$txt['bookmark_list_empty'] = 'You don\'t have any bookmarks at the moment. Add one by clicking \'Add bookmark\' in topics.';
$txt['bookmark_open_window'] = 'Open in new window';
$txt['bookmark_delete'] = 'Delete selected bookmarks';
$txt['bookmark_delete_success'] = '%1$s bookmarks were deleted successfully!';
$txt['bookmark_delete_failure'] = 'No bookmarks have been deleted.';
$txt['bookmark_add'] = 'Add bookmark';
$txt['bookmark_add_success'] = 'The topic was successfully added to your bookmarks!';
$txt['bookmark_add_exists'] = 'This topic is already listed in your bookmarks!';
$txt['bookmark_add_failed'] = 'Failed to add the topic to your bookmarks.';
$txt['permissionname_make_bookmarks'] = 'Create bookmarks for topics';
$txt['cannot_make_bookmarks'] = 'Sorry, you don\'t have permission to make bookmarks.';

ดาวโหลด: Bookmarks2.rar
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com
แตกไฟล์แล้วอัพโหลดไปไว้ที่
file Bookmarks.php -->> $sourcedir
file Bookmarks.template.php -->> $themesdir/default

สร้างไฟล์: install.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/install.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
global $db_prefix$smcFunc;

$smcFunc['db_create_table']($db_prefix 'bookmarks',
array(
array(
'name' => 'id_member',
'type' => 'mediumint',
'size' => 8,
),
array(
'name' => 'id_topic',
'type' => 'mediumint',
'size' => 8,
),
),
array(
array(
'name' => 'bookmark',
'type' => 'unique',
'columns' => array('id_member''id_topic'),
),
),
array(),
'ignore');
?>

ลิงค์หัวข้อ: http://dexmore.com/topic/1896
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:41:19

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