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

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

ส่งหัวข้อนี้พิมพ์ หน้า: 1 2 Next
icon message ผู้เขียน หัวข้อ: SMF Trader System ระบบผู้ประกอบการสำหรับ SMF  (อ่าน 1302 ครั้ง)
0 สมาชิก และ 2 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
  • ชื่อ: SMF Trader System
  • ผู้เขียน: vbgamer45
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: New Feature
  • รองรับ: SMF 1.1.x, 2.0.x
  • ปรับปรุงล่าสุด: 12 มิถุนายน 2554
  • ต้นฉบับ: SMF Trader System

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

ตัวอย่าง


สำหรับ SMF 1.1.x

แก้ไขไฟล์:

file $boarddir/index.php

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

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

file $sourcedir/ManagePermissions.php

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

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

file $sourcedir/Subs.php

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

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

file $themedir/Display.template.php

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

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
global $db_prefix;

ค้นหา -->>
โค๊ด: [Select]
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Start SMF Trader System
global $sourcedir;
include_once $sourcedir . '/Trader.php';

GetTraderInformation($message['member']['id']);

$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
foreach($context['trader_mem_data'] as $row)
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}




if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] - $context['ncount']);
else
$tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount'];



// Show the trader info
echo '
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)<br />';

//END SMF Trader System

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;

// First do the containing table and table header.

ค้นหา -->>
โค๊ด: [Select]
echo '
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>';

// Show the users signature.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Start SMF Trader System
global $sourcedir;
include_once $sourcedir . '/Trader.php';


$tradecount = GetTraderCount($context['member']['id']);


GetTraderInformation($context['member']['id']);

$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
foreach($context['trader_mem_data'] as $row)
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}


$context['tradecount_nonetural'] = ($context['pcount'] +  $context['ncount']);

if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] -$context['ncount']);

echo '<tr><td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td></tr>
<tr><td><b>' . $txt['smftrader_title'] . '</b></td></tr>
<tr><td><b>' . $txt['smftrader_profile'] . '</b></td><td><b>(<a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . '</a>)</b></td></tr>
<tr><td><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></td><td><b>' , $context['tradecount_nonetural'] != 0 ? round(($context['pcount'] / $context['tradecount_nonetural']) * 100, 2) : 0 , '%</b></td></tr>
<tr><td>' . $txt['smftrader_positivefeedback'] . '</td><td>' . $context['pcount'] . '&nbsp;<img src="' .  $modSettings['smileys_url'] . '/default/smiley.gif" alt="positive" /></td></tr>
<tr><td>' . $txt['smftrader_neutralfeedback']  . '</td><td>' .  $context['neturalcount'] . '&nbsp;<img src="' . $modSettings['smileys_url'] . '/default/undecided.gif" alt="neutral" /></td></tr>
<tr><td>' . $txt['smftrader_negativefeedback']  . '</td><td>' .  $context['ncount'] . '&nbsp;<img src="' .  $modSettings['smileys_url'] . '/default/angry.gif" alt="negative" /></td></tr>
<tr><td>' . $txt['smftrader_totalfeedback']  . '</td><td>' .  ($context['pcount'] - $context['ncount']) . '</td></tr>';

global $ID_MEMBER;

if ($ID_MEMBER !=  $context['member']['id'])
echo '
<tr><td colspan="2"><br /><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></td></tr>';

// END SMF Trader System

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Trader System';
$txt['smftrader_version'] = '1.1';
$txt['smftrader_admin'] = 'Trader Settings';
$txt['smftrader_guest'] = 'Guest';
//Display text strings
$txt['smftrader_profile'] = 'Trade Count: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Submit feedback for ';
$txt['smftrader_totalfeedback'] = 'Total  Positive Feedback: ';
$txt['smftrader_positivefeedbackpercent'] = 'Positive Feedback: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Positive Feedback: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutral Feedback: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Negative Feedback: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'You were the:';
$txt['smftrader_buyer'] = 'Buyer';
$txt['smftrader_seller'] = 'Seller';
$txt['smftrader_trade'] = 'Trade';


$txt['smftrader_transaction'] = 'Transaction Rating:';
$txt['smftrader_positive'] = 'Positive';
$txt['smftrader_neutral'] = 'Neutral';
$txt['smftrader_negative'] = 'Negative';

$txt['smftrader_shortcomment_small'] = 'Short Comment';
$txt['smftrader_shortcomment'] = 'Short comment on your transaction:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 characters';
$txt['smftrader_topicurl'] = 'Topic URL:';
$txt['smftrader_longcomment'] = 'Long comment on your transaction:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'View All Feedback';
$txt['smftrader_sellerfeedback'] = 'View Seller Feedback';
$txt['smftrader_buyerfeedback'] = 'View Buyer Feedback';
$txt['smftrader_tradefeedback'] = 'View Trade Feedback';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF Trader System - Trader Overview';
$txt['smftrader_submittitle'] = 'SMF Trader System - Submit Feedback';
$txt['smftrader_reporttitle'] = 'SMF Trader System - Report Bad Feedback';


$txt['smftrader_contact'] = 'Contact';
$txt['smftrader_viewprofile'] = 'View full profile.';
$txt['smftrader_sendpm'] = 'Send this user a personal message.';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Trader';
$txt['permissionname_smftrader_feedback'] = 'Allow submit feedback';
$txt['permissionhelp_smftrader_feedback'] = 'Allows the user to submit trader rating feedback.';
$txt['permissionname_smftrader_deletefeed'] = 'Allow delete ANY feedback by ANY user.';
$txt['permissionhelp_smftrader_deletefeed'] = 'Allows the user to delete feedback by anyone or anybody.';
$txt['cannot_smftrader_feedback'] = 'You are not allowed to submit feedback.';
$txt['cannot_smftrader_deletefeed'] = 'You are not allowed to delete feedback.';
$txt['permissionname_smftrader_autorating'] = 'Auto Approve Ratings';
$txt['permissionhelp_smftrader_autorating'] = 'Ratings do not need to wait for approval if this permission is given.';

//END SMF Trader System Text Strings

file $languagedir/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
//Begin SMF Trader System Text Strings

$helptxt['trader_approval'] = "
When checked: All ratings require approval before being posted unless they are in an autoapproved group found in permissions
<br /><br />
When unchecked: All ratings are auto approved since the ratings do not require approval.";

$helptxt['trader_use_pos_neg'] = "When enabled changes the trading count number to be a positive or negative figure based on the number of positive feedback minus the negative feedback. If it is a positive feedback number it results in a + (plus) in front of the number. If it is a negative feedback number results in a - (minus) in front the number.";

//END SMF Trader System Text Strings

ดาวน์โหลด: smftradersystem1.rar
ขออภัย! ส่วนนี้สงวนไว้เฉพาะสมาชิกเท่านั้น กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

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

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

smftraderinstall.php - SMF Trader System
Purpose - Installs the database tables for SMF Trader System
*/

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}feedback 
(feedbackid int(11) NOT NULL auto_increment, 
ID_MEMBER mediumint(8) unsigned NOT NULL default '0', 
comment_short tinytext NOT NULL, 
comment_long text, topicurl tinytext, 
saletype tinyint(4) NOT NULL default '0', 
salevalue tinyint(4) NOT NULL default '0', 
saledate int(11) NOT NULL default '0', 
FeedBackMEMBER_ID mediumint(8) unsigned NOT NULL default '0',
approved tinyint(4) NOT NULL default '1',
ID_LISTING int(11) NOT NULL default '0',
KEY ID_LISTING (ID_LISTING),
KEY ID_MEMBER (ID_MEMBER),
PRIMARY KEY  (feedbackid))"
__FILE____LINE__);


$dbresult db_query("SHOW COLUMNS FROM {$db_prefix}feedback"__FILE____LINE__);
$approved =  1;
$ID_LISTING 1;

while (
$row mysql_fetch_row($dbresult))
{
if($row[0] == 'approved')
$approved =0;
if($row[0] == 'ID_LISTING')
$ID_LISTING =0;

}
mysql_free_result($dbresult);

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

if (
$ID_LISTING)
db_query("ALTER TABLE {$db_prefix}feedback ADD ID_LISTING int(11) NOT NULL default '0'"__FILE____LINE__);

// Other Settings
db_query("INSERT IGNORE INTO {$db_prefix}settings
(variable, value)
VALUES
('trader_approval', '0'),
('trader_feedbackperpage', '10'),
('trader_use_pos_neg', '0'),
('trader_membergroupspm', '1')
"
__FILE____LINE__);

?>

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


!Personal

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

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
'trackip' => array('Profile-View.php', 'trackIP'),

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

file $sourcedir/Admin.php

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

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

),
),

file $themedir/Display.template.php

ค้นหา -->>
โค๊ด: [Select]
// Show the member's primary group (like 'Administrator') if they have one.
if (!empty($message['member']['group']))
echo '
<li class="membergroup">', $message['member']['group'], '</li>';

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Start SMF Trader System
global $sourcedir;
include_once $sourcedir . '/Trader2.php';

GetTraderInformation($message['member']['id']);


$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
foreach($context['trader_mem_data'] as $row)
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}



if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] - $context['ncount']);
else
$tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount'];



// Show the trader info
echo '<li>
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';

//END SMF Trader System

file $themedir/Profile.template.php

ค้นหา -->>
โค๊ด: [Select]
<dd>', $context['member']['local_time'], '</dd>';

แก้เป็น -->>
โค๊ด: [Select]
<dd>', $context['member']['local_time'], '</dd>';

// Start SMF Trader System
global $sourcedir;
include_once $sourcedir . '/Trader2.php';


$tradecount = GetTraderCount($context['member']['id']);


GetTraderInformation($context['member']['id']);

$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
foreach($context['trader_mem_data'] as $row)
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}


$context['tradecount_nonetural'] = ($context['pcount'] +  $context['ncount']);

if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] -$context['ncount']);

echo '


<dt class="clear">' . $txt['smftrader_title'] . '</dt>
<dt>' . $txt['smftrader_profile'] . '</dt><dd>(<a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . '</a>)</dd>
<dt>' . $txt['smftrader_positivefeedbackpercent']  . '</dt><dd>' , $context['tradecount_nonetural'] != 0 ? round(($context['pcount'] / $context['tradecount_nonetural']) * 100, 2) : 0 , '%</dd>
<dt>' . $txt['smftrader_positivefeedback'] . '</dt><dd>' . $context['pcount'] . '&nbsp;<img src="' .  $modSettings['smileys_url'] . '/default/smiley.gif" alt="positive" /></dd>
<dt>' . $txt['smftrader_neutralfeedback']  . '</dt><dd>' .  $context['neturalcount'] . '&nbsp;<img src="' . $modSettings['smileys_url'] . '/default/undecided.gif" alt="neutral" /></dd>
<dt>' . $txt['smftrader_negativefeedback']  . '</dt><dd>' .  $context['ncount'] . '&nbsp;<img src="' .  $modSettings['smileys_url'] . '/default/angry.gif" alt="negative" /></dd>
<dt>' . $txt['smftrader_totalfeedback']  . '</dt><dd>' .  ($context['pcount'] - $context['ncount']) . '</dd>';
global $user_info;
if ($user_info['id'] != $context['member']['id'])
echo '
<dt class="clear"><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></dt>
';
// END SMF Trader System

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Trader System';
$txt['smftrader_version'] = '1.1';
$txt['smftrader_admin'] = 'Trader Settings';
$txt['smftrader_guest'] = 'Guest';
//Display text strings
$txt['smftrader_profile'] = 'Trade Count: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Submit feedback for ';
$txt['smftrader_totalfeedback'] = 'Total  Positive Feedback: ';
$txt['smftrader_positivefeedbackpercent'] = 'Positive Feedback: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Positive Feedback: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutral Feedback: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Negative Feedback: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'You were the:';
$txt['smftrader_buyer'] = 'Buyer';
$txt['smftrader_seller'] = 'Seller';
$txt['smftrader_trade'] = 'Trade';


$txt['smftrader_transaction'] = 'Transaction Rating:';
$txt['smftrader_positive'] = 'Positive';
$txt['smftrader_neutral'] = 'Neutral';
$txt['smftrader_negative'] = 'Negative';
$txt['smftrader_shortcomment_small'] = 'Short Comment';
$txt['smftrader_shortcomment'] = 'Short comment on your transaction:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 characters';
$txt['smftrader_topicurl'] = 'Topic URL:';
$txt['smftrader_longcomment'] = 'Long comment on your transaction:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'View All Feedback';
$txt['smftrader_sellerfeedback'] = 'View Seller Feedback';
$txt['smftrader_buyerfeedback'] = 'View Buyer Feedback';
$txt['smftrader_tradefeedback'] = 'View Trade Feedback';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF Trader System - Trader Overview';
$txt['smftrader_submittitle'] = 'SMF Trader System - Submit Feedback';
$txt['smftrader_reporttitle'] = 'SMF Trader System - Report Bad Feedback';


$txt['smftrader_contact'] = 'Contact';
$txt['smftrader_viewprofile'] = 'View full profile.';
$txt['smftrader_sendpm'] = 'Send this user a personal message.';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Trader';
$txt['permissiongroup_simple_smftrader'] = 'SMF Trader';
$txt['permissionname_smftrader_feedback'] = 'Allow submit feedback';
$txt['permissionhelp_smftrader_feedback'] = 'Allows the user to submit trader rating feedback.';
$txt['permissionname_smftrader_deletefeed'] = 'Allow delete ANY feedback by ANY user.';
$txt['permissionhelp_smftrader_deletefeed'] = 'Allows the user to delete feedback by anyone or anybody.';
$txt['cannot_smftrader_feedback'] = 'You are not allowed to submit feedback.';
$txt['cannot_smftrader_deletefeed'] = 'You are not allowed to delete feedback.';
$txt['permissionname_smftrader_autorating'] = 'Auto Approve Ratings';
$txt['permissionhelp_smftrader_autorating'] = 'Ratings do not need to wait for approval if this permission is given.';

//END SMF Trader System Text Strings

file $languagedir/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
//Begin SMF Trader System Text Strings

$helptxt['trader_approval'] = "
When checked: All ratings require approval before being posted unless they are in an autoapproved group found in permissions
<br /><br />
When unchecked: All ratings are auto approved since the ratings do not require approval.";

$helptxt['trader_use_pos_neg'] = "When enabled changes the trading count number to be a positive or negative figure based on the number of positive feedback minus the negative feedback. If it is a positive feedback number it results in a + (plus) in front of the number. If it is a negative feedback number results in a - (minus) in front the number.";


//END SMF Trader System Text Strings

ดาวน์โหลด: smftradersystem2.rar
ขออภัย! ส่วนนี้สงวนไว้เฉพาะสมาชิกเท่านั้น กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

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

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

smftraderinstall.php - SMF Trader System
Purpose - Installs the database tables for SMF Trader System
*/

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}feedback 
(feedbackid int(11) NOT NULL auto_increment, 
ID_MEMBER mediumint(8) unsigned NOT NULL default '0', 
comment_short tinytext NOT NULL, 
comment_long text, topicurl tinytext, 
saletype tinyint(4) NOT NULL default '0', 
salevalue tinyint(4) NOT NULL default '0', 
saledate int(11) NOT NULL default '0', 
FeedBackMEMBER_ID mediumint(8) unsigned NOT NULL default '0',
approved tinyint(4) NOT NULL default '1',
ID_LISTING int(11) NOT NULL default '0',
KEY ID_LISTING (ID_LISTING),
KEY ID_MEMBER (ID_MEMBER),
PRIMARY KEY  (feedbackid))"
);

$dbresult $smcFunc['db_query'](''"SHOW COLUMNS FROM {db_prefix}feedback");
$approved =  1;
$ID_LISTING 1;

while (
$row $smcFunc['db_fetch_row']($dbresult))
{
if($row[0] == 'approved')
$approved =0;

if($row[0] == 'ID_LISTING')
$ID_LISTING =0;

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

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

if (
$ID_LISTING)
$smcFunc['db_query'](''"ALTER TABLE {db_prefix}feedback ADD ID_LISTING int(11) NOT NULL default '0'");

// Other Settings
$smcFunc['db_query'](''"INSERT IGNORE INTO {db_prefix}settings
(variable, value)
VALUES
('trader_approval', '0'),
('trader_feedbackperpage', '10'),
('trader_use_pos_neg', '0'),
('trader_membergroupspm', '1')
"
);

?>

การตั้งค่า:




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



Switzerland   ชาย ออฟไลน์ikhunarm ikhunarm
เว็บไซต์
icon message
general ความคิดเห็นที่ 2 เมื่อ: 19 กรกฎาคม 2554, 07:25:44
ชอบตัวนี้มากครับ

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 3 เมื่อ: 21 สิงหาคม 2554, 12:28:40
admin สามารถใช้ได้

แต่สมาชิกใช้ไม่ได้อะคับ

ไม่มีที่กำหนดสิท ให้เพิ่มข้อมูลครับ

2.0 rc3

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


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 4 เมื่อ: 21 สิงหาคม 2554, 12:42:38
ดูให้ดีหน่อยครับ ในรูปการตั้งค่ารูปที่ 1 นะครับ ดูดีๆ

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 5 เมื่อ: 21 สิงหาคม 2554, 14:54:39


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


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 6 เมื่อ: 21 สิงหาคม 2554, 15:35:29
สงสัยผมคงมีความปกพร่องเรื่องภาษาไทยครับ จึงอธิบายให้คุณเข้าใจไม่ได้(ถึงแม้ใช้รูปประกอบ) ผมบอกให้คุณดูรูปที่ 1 แต่คุณกลับเอารูปที่ 2 มาให้ผมดู ไม่รู้จะสื่อสารอย่างไรแล้วครับ

เชิญอ่านทำความเข้าใจเกี่ยวกับการใช้งาน mod นี้ที่นี่ครับ -->> SMF Trader System

หรือ -->> การติดตั้ง mod แบบ InstallPackages และแบบ manual
และ -->> SMF Thai Translation วิธีแปล mod เป็นภาษาไทย

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 7 เมื่อ: 21 สิงหาคม 2554, 15:55:54
ตอนนี้ได้แล้วคับ เข้าไปดูที่ เว็บหลักมันมา


แต่ตอนนี้ติดตรงที่ว่า

พิมพ์ข้อความเป็นภาษาไทยไม่ได้คับ

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 8 เมื่อ: 21 สิงหาคม 2554, 16:00:43
ตอนนี้ได้แล้วคับ เข้าไปดูที่ เว็บหลักมันมา


แต่ตอนนี้ติดตรงที่ว่า

พิมพ์ข้อความเป็นภาษาไทยไม่ได้คับ

พิมพ์ไทยแล้วจะขึ้นเป็น emo

ส่วน link หัวข้อ เป็นตัว Huh??? หน่ะคับ

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


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 9 เมื่อ: 21 สิงหาคม 2554, 17:53:54
-->> SMF TUTORIAL : รวมบทความปรับแต่งที่น่าสนใจสำหรับ SMF
-->> การแก้ปัญหา SMF เป็นภาษาต่างดาว

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

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



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 10 เมื่อ: 22 สิงหาคม 2554, 18:50:36
ได้แล้วครับ หลังจากเข้าไปดู

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



Thailand   ชาย ออฟไลน์ เว็บไซต์
icon message
general ความคิดเห็นที่ 11 เมื่อ: 14 มีนาคม 2555, 17:08:25
มันขึ้นแบบนี้ ครับ ใน mod smftradersystem2
Table 'mon.smf_feedback' doesn't exist
ไฟล์: C:\AppServ\www\mon\Sources\Trader2.php
บรรทัด: 560
ท่านบอกว่าไม่มีตาราง smf_feedback ผมก็พยายามอ่านใน การแทรก เพิ่มตาราง และฟิลด์ใน phpMyadmin ของ mod SMF 

ผมต้องทำการ แทรก array ก่อน เพิ่มตารางใช่ไหมครับ
ซึ่ง array ที่ผมหาใช่ว่ามันอยุ่ในนี้ใช่ไหม Trader2.php
/ Trader actions
   $subActions = array(
      'main' => 'TraderMainView',
      'report' => 'Report',
      'report2' => 'Report2',
      'submit' => 'Submit',
      'detail' => 'ViewDetail',
      'delete' => 'Delete',
      'delete2' => 'Delete2',
      'submit2' => 'Submit2',
      'admin' => 'AdminSettings',
      'admin2' => 'AdminSettings2',
      'approve' => 'ApproveRating',
      'bulkactions' => 'BulkActions',
   );
แล้วก้ต้องแทรกใน smf_setting ใช่ไหม และจึง มาเพิ่มตารางเอาอีกที่ใช่ไหม ผิดพลาดประการใดโปรดแนะนำ



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


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 12 เมื่อ: 14 มีนาคม 2555, 17:39:51
ได้ลองรันไฟล์ smftraderinstall2.php หรือยังครับ ไฟล์นี้แหละที่มันดำเนินการสร้างตาราง ถ้าหากรันไม่ได้ก็ต้องสร้างตารางด้วยตัวเอง ที่มันฟ้องนั่นยังไม่มีตาราง smf_feedback ในฐานข้อมูลครับไม่เกียวกับไฟล์ Trader2.php

ไฟล์ Trader2.php มีคำสั่งประมวลผลจากตาราง smf_feedback แต่ตารางนี้ไม่มีอยู่มันถึงฟ้องแบบนั้นแหละครับ

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



Thailand   ชาย ออฟไลน์ เว็บไซต์
icon message
general ความคิดเห็นที่ 13 เมื่อ: 14 มีนาคม 2555, 22:49:15
 Afro ขอบคุณท่าน uncleo มากครับ ผมดีใจมาเลยที่ประสบความสำเร้จแล้วเหลือเเต่เปลี่ยน ภาษา ไทยเท่านั้นเองซึ่งผมว่าผมสามารถทำได้ถ้าได้อ่านบทความของท่าน
แต่ติดปัญหานิดเดียวเท่านั้น คือ แผงควบคุมถ้าไปไว้แถบบน แล้วเลือก > ปรับแต่งบอรด์> Trader Settings
มันไม่มี icon น่ารักซิท่าน (ดังภาพ) เราจะแก้ไขอย่างไง มีบทความคล้ายๆกันให้อ่านไหมครับ เพื่อนำมาประยุกต์ครับ หรือจะแนะนำมาเลยก็ได้ครับ
ขอบคุณมาก ขอให้รวยๆนะ ผมละดีใจ ทำสำเร้จ


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


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 14 เมื่อ: 15 มีนาคม 2555, 12:40:24
คลิกขวาที่กากบาทดู Properties ว่ารูปมันชื่ออะไร อยู่ที่ใหน มันจะฟ้องว่าไม่พบรูปก็เอารูปชื่อนั้น ไปใส่ไว้ในที่นั้น

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

Creative Commons License

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

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

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