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

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

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


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general เมื่อ: 7 กรกฎาคม 2553, 19:40:46
  • ชื่อ: Profile Comments
  • ผู้เขียน: vbgamer45
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Profile
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 26 มิถุนายน 2553
  • ต้นฉบับ: Profile Comments

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

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'collapse' => array('Subs-Boards.php', 'CollapseCategory'),

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

file $sourcedir/Subs.php

ค้นหา -->>
โค๊ด: [Select]
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'comment_settings' => '<a href="' . $scripturl . '?action=comment;sa=admin;sesc=' . $sc . '">' . $txt['pcomments_admin'] . '</a>',

file $sourcedir/ManagePermissions.php

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

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'pcomments' => array(
'pcomments_view' => false,
'pcomments_add' => false,
'pcomments_edit_own' => false,
'pcomments_edit_any' => false,
'pcomments_delete_own' => false,
'pcomments_delete_any' => false,
'pcomments_autocomment' => false,
),

file $themedir/Profile.template.php

ค้นหา -->>
โค๊ด: [Select]
global $context, $settings, $options, $scripturl, $modSettings, $txt;

// First do the containing table and table header.

แก้เป็น -->>
โค๊ด: [Select]
global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix, $ID_MEMBER;

// First do the containing table and table header.

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

// Template for showing all the posts of the user, in chronological order.

แก้เป็น -->>
โค๊ด: [Select]

// Start Profile Comments Mod
if (allowedTo('pcomments_view'))
{
echo '
<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor">';

global $sourcedir;
require_once($sourcedir . '/ProfileComments.php');
$context['start'] = (int) $_REQUEST['start'];

$dbresult = db_query("
SELECT
COUNT(*) AS total
FROM {$db_prefix}profile_comments
WHERE COMMENT_MEMBER_ID = " . $context['member']['id'] . " AND approved = 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
$total =  $row['total'];

mysql_free_result($dbresult);


echo '<tr>';
echo '<td colspan="2" class="titlebg">',$txt['pcomments_usercomments'],'</td></tr>';
echo '<tr><td colspan="2" class="catbg"><a href="', $scripturl, '?action=comment;sa=add;u=' . $context['member']['id']  . '">',$txt['pcomments_addcomment'],'</a></td></tr>';
// Loop though all the comments
$dbresult = db_query("SELECT p.ID_COMMENT, p.ID_MEMBER, p.comment, p.subject, p.date, m.realName, p.COMMENT_MEMBER_ID
FROM {$db_prefix}profile_comments as p
LEFT JOIN {$db_prefix}members AS m ON (p.ID_MEMBER = m.ID_MEMBER)
WHERE  p.COMMENT_MEMBER_ID = " . $context['member']['id'] . " AND p.approved = 1 ORDER BY p.ID_COMMENT DESC  LIMIT $context[start],10", __FILE__, __LINE__);
$comment_count = db_affected_rows();
while ($row = mysql_fetch_assoc($dbresult))
{
echo '<tr class="catbg"><td colspan="2">' . $row['subject'] . ' | '  . timeformat($row['date']) . '</td></tr>';

echo '<tr>
<td width="15%" valign="top"  class="windowbg2">';

if ($row['realName'] != '')
{

// Display the users avatar
$memCommID = $row['ID_MEMBER'];
if ($row['realName'])
{
$memCommID = $row['ID_MEMBER'];
loadMemberData($memCommID);
loadMemberContext($memCommID);

ShowUserBox($memCommID);


}
}
else
echo $txt['pcomments_text_guest'] . '<br />';

echo '</td>

<td  width="85%" valign="top"  class="windowbg">' . parse_bbc($row['comment']) . '<br />';
if (allowedTo('pcomments_edit_any') || (allowedTo('pcomments_edit_own') && $row['ID_MEMBER'] == $ID_MEMBER))
{
echo '<a href="', $scripturl, '?action=comment;sa=edit&id=' . $row['ID_COMMENT'] . '">',$txt['pcomments_editcomment'],'</a>';
}
if (allowedTo('pcomments_delete_any') || (allowedTo('pcomments_delete_own') && $row['ID_MEMBER'] == $ID_MEMBER))
{
echo '&nbsp;<a href="', $scripturl, '?action=comment;sa=delete&id=' . $row['ID_COMMENT'] . '">',$txt['pcomments_delcomment'],'</a>';
}


echo '</td>';
echo '</tr>';
}
mysql_free_result($dbresult);
if ($comment_count != 0)
echo '<tr><td colspan="2" class="catbg"><a href="', $scripturl, '?action=comment;sa=add;u=' . $context['member']['id']  . '">',$txt['pcomments_addcomment'],'</a></td></tr>';


if ($total > 0)
{
echo '<tr class="titlebg">
<td align="left" colspan="2">
' . $txt['pcomments_text_pages'];


$context['page_index'] = constructPageIndex($scripturl . '?action=profile;u=' . $context['member']['id'] , $_REQUEST['start'], $total, 10);

echo $context['page_index'];

echo '
</td>
</tr>';
}

echo '</table>';

}
// End Profile Comments Mod


}

// Template for showing all the posts of the user, in chronological order.

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]

//Begin Profile Comments Text Strings

// Permissions
$txt['permissiongroup_pcomments'] = 'Profile Comments';
$txt['permissionname_pcomments_view'] = 'View Comments';
$txt['permissionhelp_pcomments_view'] = 'If the user is allowed to view user comments.';
$txt['permissionname_pcomments_add'] = 'Allow add Comments';
$txt['permissionhelp_pcomments_add'] = 'If the user is allowed to enter comments in others profile.';
$txt['permissionname_pcomments_edit_own'] = 'Edit own comment.';
$txt['permissionhelp_pcomments_edit_own'] = 'Allows the user to edit their own comments.';
$txt['permissionname_pcomments_edit_any'] = 'Edit any comment';
$txt['permissionhelp_pcomments_edit_any'] = 'Allows the user to edit any comments.';
$txt['permissionname_pcomments_delete_own'] = 'Delete own comment.';
$txt['permissionhelp_pcomments_delete_own'] = 'Allows the user to delete their own comments.';
$txt['permissionname_pcomments_delete_any'] = 'Delete any comment';
$txt['permissionhelp_pcomments_delete_any'] = 'Allows the user to delete any comments.';
$txt['permissionname_pcomments_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_pcomments_autocomment'] = 'Comments do not need to wait for approval.';
$txt['cannot_pcomments_add'] = 'You are not allowed to add comments.';
$txt['cannot_pcomments_edit_own'] = 'You are not allowed to edit your own comment.';
$txt['cannot_pcomments_edit_any'] = 'You are not allowed to edit any comment.';
$txt['cannot_pcomments_delete_own'] = 'You are not allowed to delete own comment.';
$txt['cannot_pcomments_delete_any'] = 'You are not allowed to delete any comment.';
$txt['pcomments_admin'] = 'Profile Comments';


// Profile Comments Profile.template.php text strings
$txt['pcomments_usercomments'] = 'User Comments';
$txt['pcomments_editcomment'] = '[Edit Comment]';
$txt['pcomments_delcomment'] = '[Delete Comment]';
$txt['pcomments_addcomment'] = 'Add Comment';
$txt['pcomments_text_pages'] = 'Pages: ';
$txt['pcomments_text_guest'] = 'Guest';

$txt['pcomments_txt_gender'] = 'Gender';
$txt['pcomments_txt_posts'] = 'Posts';
$txt['pcomments_txt_view_profile'] = 'View Profile';
$txt['pcomments_txt_www'] = 'WWW';
$txt['pcomments_txt_profile_email'] = 'Email';
// END Profile Comments Text Strings

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

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

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

ProfileCommentsinstall.php - Profile Comments
Purpose - Installs the database tables for Profile Comments
*/


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.');


db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}profile_comments
(ID_COMMENT int(11) NOT NULL auto_increment,
ID_MEMBER mediumint(8) unsigned NOT NULL default '0',
comment text,
subject varchar (100),
date int(11) NOT NULL default '0',
COMMENT_MEMBER_ID mediumint(8) unsigned NOT NULL default '0',
approved tinyint(4) NOT NULL default '1',
PRIMARY KEY  (ID_COMMENT))
Engine=MyISAM"
__FILE____LINE__);

// Alter the Profile comments table
$dbresult db_query("SHOW COLUMNS FROM {$db_prefix}profile_comments"__FILE____LINE__);
$approved =  1;
while (
$row mysql_fetch_row($dbresult))
{
if($row[0] == 'approved')
$approved 0;

}
mysql_free_result($dbresult);

if (
$approved)
db_query("ALTER TABLE {$db_prefix}profile_comments ADD approved tinyint(4) NOT NULL default '1'"__FILE____LINE__);

// Add Package Servers
db_query("DELETE FROM {$db_prefix}package_servers WHERE url = 'http://www.smfhacks.com'"__FILE____LINE__);
db_query("REPLACE INTO {$db_prefix}package_servers (name,url) VALUES ('SMFHacks.com Modification Site', 'http://www.smfhacks.com')"__FILE____LINE__);


?>

การตั้งค่า: ผู้ดูแล -->> แก้ไขการอนุญาต -->> กลุ่มสมาชิก [ขั้นสูง]


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


!Personal

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

แก้ไขไฟล์:

file $boarddir/index.php

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

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

file $sourcedir/Admin.php

ค้นหา -->>
โค๊ด: [Select]
'current_theme' => array(
'label' => $txt['theme_current_settings'],

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'comment' => array(
'label' => $txt['pcomments_admin'],
'file' => 'ProfileComments2.php',
'function' => 'CommentsMain',
'custom_url' => $scripturl . '?action=admin;area=comment;sa=admin;sesc=' . $sc,
'icon' => 'server.gif',
'subsections' => array(),



),

file $sourcedir/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'pcomments_view',
'pcomments_add',
'pcomments_edit_own',
'pcomments_edit_any',
'pcomments_delete_own',
'pcomments_delete_any',
'pcomments_autocomment',

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

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'pcomments_view' => array(false, 'pcomments', 'pcomments'),
'pcomments_add' => array(false, 'pcomments', 'pcomments'),
'pcomments_edit_own' => array(false, 'pcomments', 'pcomments'),
'pcomments_edit_any' => array(false, 'pcomments', 'pcomments'),
'pcomments_delete_own' => array(false, 'pcomments', 'pcomments'),
'pcomments_delete_any' => array(false, 'pcomments', 'pcomments'),
'pcomments_autocomment' => array(false, 'pcomments', 'pcomments'),

file $themedir/Profile.template.php

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

// Template for showing all the posts of the user, in chronological order.

แก้เป็น -->>
โค๊ด: [Select]

// Start Profile Comments Mod
if (allowedTo('pcomments_view'))
{
echo '
<h3 class="catbg"><span class="left"></span><span class="right"></span>
',$txt['pcomments_usercomments'],'
</h3><div class="windowbg2"><table align="center" width="100%">';


global $sourcedir, $smcFunc;
require_once($sourcedir . '/ProfileComments2.php');
$context['start'] = (int) $_REQUEST['start'];

$dbresult = $smcFunc['db_query']('', "
SELECT
COUNT(*) AS total
FROM {db_prefix}profile_comments
WHERE COMMENT_MEMBER_ID = " . $context['member']['id'] . " AND approved = 1");
$row = $smcFunc['db_fetch_assoc']($dbresult);
$total =  $row['total'];

$smcFunc['db_free_result']($dbresult);


echo '<tr><td colspan="2" class="catbg"><a href="', $scripturl, '?action=comment;sa=add;u=' . $context['member']['id']  . '">',$txt['pcomments_addcomment'],'</a></td></tr>';
// Loop though all the comments
$dbresult = $smcFunc['db_query']('', "SELECT p.ID_COMMENT, p.ID_MEMBER, p.comment, p.subject, p.date, m.real_name, p.COMMENT_MEMBER_ID
FROM {db_prefix}profile_comments as p
LEFT JOIN {db_prefix}members AS m ON (p.ID_MEMBER = m.ID_MEMBER)
WHERE  p.COMMENT_MEMBER_ID = " . $context['member']['id'] . " AND p.approved = 1 ORDER BY p.ID_COMMENT DESC  LIMIT $context[start],10");
$comment_count = $smcFunc['db_affected_rows']();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
echo '<tr class="catbg"><td colspan="2">' . $row['subject'] . ' | '  . timeformat($row['date']) . '</td></tr>';

echo '<tr>
<td width="15%" valign="top"  class="windowbg2">';

if ($row['real_name'] != '')
{

// Display the users avatar
$memCommID = $row['ID_MEMBER'];
if ($row['real_name'])
{
$memCommID = $row['ID_MEMBER'];
loadMemberData($memCommID);
loadMemberContext($memCommID);

ShowUserBox($memCommID);


}
}
else
echo $txt['pcomments_text_guest'] . '<br />';

echo '</td>

<td  width="85%" valign="top"  class="windowbg">' . parse_bbc($row['comment']) . '<br />';
if (allowedTo('pcomments_edit_any') || (allowedTo('pcomments_edit_own') && $row['ID_MEMBER'] == $user_info['id']))
{
echo '<a href="', $scripturl, '?action=comment;sa=edit&id=' . $row['ID_COMMENT'] . '">',$txt['pcomments_editcomment'],'</a>';
}
if (allowedTo('pcomments_delete_any') || (allowedTo('pcomments_delete_own') && $row['ID_MEMBER'] == $user_info['id']))
{
echo '&nbsp;<a href="', $scripturl, '?action=comment;sa=delete&id=' . $row['ID_COMMENT'] . '">',$txt['pcomments_delcomment'],'</a>';
}


echo '</td>';
echo '</tr>';
}
$smcFunc['db_free_result']($dbresult);
if ($comment_count != 0)
echo '<tr><td colspan="2" class="catbg"><a href="', $scripturl, '?action=comment;sa=add;u=' . $context['member']['id']  . '">',$txt['pcomments_addcomment'],'</a></td></tr>';


if ($total > 0)
{
echo '<tr class="titlebg">
<td align="left" colspan="2">
' . $txt['pcomments_text_pages'];


$context['page_index'] = constructPageIndex($scripturl . '?action=profile;u=' . $context['member']['id'] , $_REQUEST['start'], $total, 10);

echo $context['page_index'];

echo '
</td>
</tr>';
}

echo '</table>
</div>';

}
// End Profile Comments Mod


}

// Template for showing all the posts of the user, in chronological order.

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]

//Begin Profile Comments Text Strings

// Permissions
$txt['permissiongroup_pcomments'] = 'Profile Comments';
$txt['permissiongroup_simple_pcomments'] = 'Profile Comments';
$txt['permissionname_pcomments_view'] = 'View Comments';
$txt['permissionhelp_pcomments_view'] = 'If the user is allowed to view user comments.';
$txt['permissionname_pcomments_add'] = 'Allow add Comments';
$txt['permissionhelp_pcomments_add'] = 'If the user is allowed to enter comments in others profile.';
$txt['permissionname_pcomments_edit_own'] = 'Edit own comment.';
$txt['permissionhelp_pcomments_edit_own'] = 'Allows the user to edit their own comments.';
$txt['permissionname_pcomments_edit_any'] = 'Edit any comment';
$txt['permissionhelp_pcomments_edit_any'] = 'Allows the user to edit any comments.';
$txt['permissionname_pcomments_delete_own'] = 'Delete own comment.';
$txt['permissionhelp_pcomments_delete_own'] = 'Allows the user to delete their own comments.';
$txt['permissionname_pcomments_delete_any'] = 'Delete any comment';
$txt['permissionhelp_pcomments_delete_any'] = 'Allows the user to delete any comments.';
$txt['permissionname_pcomments_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_pcomments_autocomment'] = 'Comments do not need to wait for approval.';
$txt['cannot_pcomments_add'] = 'You are not allowed to add comments.';
$txt['cannot_pcomments_edit_own'] = 'You are not allowed to edit your own comment.';
$txt['cannot_pcomments_edit_any'] = 'You are not allowed to edit any comment.';
$txt['cannot_pcomments_delete_own'] = 'You are not allowed to delete own comment.';
$txt['cannot_pcomments_delete_any'] = 'You are not allowed to delete any comment.';
$txt['pcomments_admin'] = 'Profile Comments';


// Profile Comments Profile.template.php text strings
$txt['pcomments_usercomments'] = 'User Comments';
$txt['pcomments_editcomment'] = '[Edit Comment]';
$txt['pcomments_delcomment'] = '[Delete Comment]';
$txt['pcomments_addcomment'] = 'Add Comment';
$txt['pcomments_text_pages'] = 'Pages: ';
$txt['pcomments_text_guest'] = 'Guest';

$txt['pcomments_txt_gender'] = 'Gender';
$txt['pcomments_txt_posts'] = 'Posts';
$txt['pcomments_txt_view_profile'] = 'View Profile';
$txt['pcomments_txt_www'] = 'WWW';
$txt['pcomments_txt_profile_email'] = 'Email';
// END Profile Comments Text Strings

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

แตกไฟล์แล้วอัพโหลดไปไว้ที่
file ProfileComments2.php -->> $sourcedir
file ProfileComments.template2.php -->> $themesdir/default
file ProfileComments.english.php -->> $languagedir
file ProfileComments.thai-utf8.php -->> $languagedir

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

ProfileCommentsinstall.php - Profile Comments
Purpose - Installs the database tables for Profile Comments
*/


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.');


$smcFunc['db_query'](''"CREATE TABLE IF NOT EXISTS {db_prefix}profile_comments
(ID_COMMENT int(11) NOT NULL auto_increment,
ID_MEMBER mediumint(8) unsigned NOT NULL default '0',
comment text,
subject varchar (100),
date int(11) NOT NULL default '0',
COMMENT_MEMBER_ID mediumint(8) unsigned NOT NULL default '0',
approved tinyint(4) NOT NULL default '1',
PRIMARY KEY  (ID_COMMENT))
Engine=MyISAM"
);

// Alter the Profile comments table
$dbresult $smcFunc['db_query'](''"SHOW COLUMNS FROM {db_prefix}profile_comments");
$approved =  1;
while (
$row $smcFunc['db_fetch_row']($dbresult))
{
if($row[0] == 'approved')
$approved 0;

}
$smcFunc['db_free_result']($dbresult);

if (
$approved)
$smcFunc['db_query'](''"ALTER TABLE {db_prefix}profile_comments ADD approved tinyint(4) NOT NULL default '1'");

// Add Package Servers
$smcFunc['db_query'](''"DELETE FROM {db_prefix}package_servers WHERE url = 'http://www.smfhacks.com'");
$smcFunc['db_query'](''"REPLACE INTO {db_prefix}package_servers (name,url) VALUES ('SMFHacks.com Modification Site', 'http://www.smfhacks.com')");


?>

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

Creative Commons License

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

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 18 พฤษภาคม 2555, 19:23:28

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