News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Trader System

Started by SMFHacks.com Team, July 12, 2006, 12:35:09 AM

Previous topic - Next topic

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

aw06

Quote from: vbgamer45 on January 09, 2011, 02:14:27 PM
Use $ID_MEMBER or $user_info['id']

How ???

action=trader&$user_info['id']
action=trader&$ID_MEMBER

Have to see with me .. not quite sure ?  :-[
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

impreza

Portal Totemat - artykuły i filmy - treści w postaci artykułów i filmów.

kodbg

Hi,
I need some help with some coding. In the display template, I only want the trader info to show up if it's in a certain board.
I couldn't figure it out. :(

// 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 />';

Before this, i need something like:
if ($board['id'] == '53')
or
if ($category['id'] = '6')

Oops, i'm done:
global $board;
if ($board == '53' || $board == '73')

aw06

Quote from: aw06 on January 09, 2011, 03:11:42 PM
Quote from: vbgamer45 on January 09, 2011, 02:14:27 PM
Use $ID_MEMBER or $user_info['id']

How ???

action=trader&$user_info['id']
action=trader&$ID_MEMBER

Have to see with me .. not quite sure ?  :-[

Any Help with this ???
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

vbgamer45

1.6
!Do not show listings in submit feedback if already rated the listing - SMF Classifieds
integration
!Do not show the submit feedback link for yourself
!Do not ask for short topic url if classifieds option says you require to select a listing
- SMF Classifieds integration
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

hcfwesker

Is there any chance there could be a linked page that could have the list of all members with feedback, from highest to lowest.  Kinda like the shop MOD, with the richest members?

Also, can a members feedback table in the regular profile, be added to ultimate profiles?

aw06

Quote from: vbgamer45 on January 09, 2011, 09:49:46 AM
I am sorry meant Trader.php

Quote from: vbgamer45 on January 06, 2011, 10:49:36 PM
Yes it goes to their profile so they can see what members left on it.

Quote from: vbgamer45 on January 09, 2011, 02:14:27 PM
Use $ID_MEMBER or $user_info['id']

Here is my Trader.php,.. Can you add so that a link to the members trader page is sent and not a link to their profile..

<?php
/*
SMF Trader System
Version 1.2
by:vbgamer45
http://www.smfhacks.com
*/

if (!defined('SMF'))
die('Hacking attempt...');

function 
tradermain()
{
loadtemplate('Trader');

// Load the language files
if (loadlanguage('Trader') == false)
loadLanguage('Trader','english');

// Trader actions
$subActions = array(
'main' => 'main',
'report' => 'Report',
'report2' => 'Report2',
'submit' => 'Submit',
'detail' => 'ViewDetail',
'delete' => 'Delete',
'delete2' => 'Delete2',
'submit2' => 'Submit2',
'admin' => 'AdminSettings',
'admin2' => 'AdminSettings2',
'approve' => 'ApproveRating',
'bulkactions' => 'BulkActions',
);

@$sa $_GET['sa'];

// Follow the sa or just go to administration.
if (!empty($subActions[$sa]))
$subActions[$sa]();
else
$subActions['main']();
}
function 
main()
{
global $context$txt$db_prefix$scripturl$modSettings;

$context['sub_template']  = 'main';

@$memid = (int) $_REQUEST['id'];

if (empty($memid))
fatal_error($txt['smftrader_nomemberselected'], false);

$request db_query("
SELECT 
realName FROM 
{$db_prefix}members
WHERE ID_MEMBER = 
$memid LIMIT 1"__FILE____LINE__);
$row mysql_fetch_assoc($request);

$mcount db_affected_rows();

if ($mcount != 1)
fatal_error($txt['smftrader_nomemberselected'], false);

$context['traderid'] = $memid;
$context['tradername'] = $row['realName'];


db_query("
SELECT 
feedbackid 
FROM 
{$db_prefix}feedback 
WHERE approved = 1 AND ID_MEMBER =" 
$context['traderid'], __FILE____LINE__);
$context['tradecount'] = db_affected_rows();



$result db_query("
SELECT 
COUNT(*) AS total,salevalue 
FROM 
{$db_prefix}feedback 
WHERE approved = 1 AND ID_MEMBER = " 
$context['traderid'] . " GROUP BY salevalue" __FILE____LINE__);
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row mysql_fetch_assoc($result))
{
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'];
}

}
mysql_free_result($result);

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

// Get the view type
@$view = (int) $_GET['view'];
if (empty($view))
$view 0;


$queryextra '';
switch($view)
{
case 0:
$queryextra '';
break;
case 1:
$queryextra ' AND f.saletype = 1';

break;
case 2:
$queryextra ' AND f.saletype = 0';
break;
case 3:
$queryextra ' AND f.saletype = 2';

break;
default:
fatal_error($txt['smftrader_invalidview'], false);
break;
}


$context['start'] = (int) $_REQUEST['start'];


$dbresult db_query("
SELECT 
COUNT(*) AS total 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.ID_MEMBER = " 
$context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER  AND f.approved = 1 $queryextra "__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
$total $row['total'];
mysql_free_result($dbresult);

$dbresult db_query("
SELECT 
f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, 
f.comment_short, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.ID_MEMBER = " 
$context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER  AND f.approved = 1 $queryextra ORDER BY f.feedbackid DESC LIMIT $context[start]," $modSettings['trader_feedbackperpage'], __FILE____LINE__);
$context['trader_feedback'] = array();
while ($row mysql_fetch_assoc($dbresult))
{
$context['trader_feedback'][] = $row;
}
mysql_free_result($dbresult);

$context['page_index'] = constructPageIndex($scripturl '?action=trader;id=' $context['traderid'] . ';view=' $view $_REQUEST['start'], $total$modSettings['trader_feedbackperpage']);



// Set the page title
$context['page_title'] = $txt['smftrader_feedbacktitle'] . ' - ' $row['realName'];


}
function 
Submit()
{
global $context$txt$db_prefix$ID_MEMBER;

is_not_guest();

// Check if they are allowed to submit feedback
isAllowedTo('smftrader_feedback');


$context['sub_template']  = 'submit';

@$memid = (int) $_GET['id'];

if (empty($memid))
fatal_error($txt['smftrader_nomemberselected'],false);

$request db_query("
SELECT 
realName FROM 
{$db_prefix}members
WHERE ID_MEMBER = 
$memid LIMIT 1"__FILE____LINE__);
$row mysql_fetch_assoc($request);

$mcount db_affected_rows();

if ($mcount != 1)
fatal_error($txt['smftrader_nomemberselected'],false);

if ($ID_MEMBER == $memid)
fatal_error($txt['smftrader_errfeedbackself'] ,false);

$context['traderid'] = $memid;
$context['tradername'] = $row['realName'];


$context['page_title'] = $txt['smftrader_submittitle'] . ' - ' $row['realName'];

}
function 
Submit2()
{
global $db_prefix$ID_MEMBER$txt$modSettings;

is_not_guest();

// Check if they are allowed to submit feedback
isAllowedTo('smftrader_feedback');


// Get the trader id
$traderid = (int) $_REQUEST['id'];


if ($ID_MEMBER == $traderid)
fatal_error($txt['smftrader_errfeedbackself'] ,false);

// Check if comment posted
$shortcomment htmlspecialchars(substr($_REQUEST['shortcomment'], 0100),ENT_QUOTES);

if ($shortcomment== '')
fatal_error($txt['smftrader_errshortcoment'],false);


$topicurl htmlspecialchars($_REQUEST['topicurl'],ENT_QUOTES);
$salevalue = (int) $_REQUEST['salevalue'];
$saletype = (int) $_REQUEST['saletype'];
$longcomment htmlspecialchars($_REQUEST['longcomment'],ENT_QUOTES);
switch($saletype)
{
case 0:
break;

case 1:
break;

case 2:

break;

default:
fatal_error($txt['smftrader_errsaletype'],false);
break;
}
switch($salevalue)
{
case 0:
break;

case 1:
break;

case 2:
break;

default:
fatal_error($txt['smftrader_errsalevalue'],false);
break;
}

// Get the date
$tradedate time();



// Get the approval
if ($modSettings['trader_approval'] == 1)
{
$approval = (allowedTo('smftrader_autorating') ? 0);
}
else 
$approval 1;

// Admin's always approved
if (allowedTo('admin_forum'))
$approval 1;

// Finally Insert it into the db
db_query("INSERT INTO {$db_prefix}feedback
(ID_MEMBER, comment_short, comment_long, topicurl, saletype, salevalue, saledate, FeedBackMEMBER_ID, approved)
VALUES (
$traderid, '$shortcomment', '$longcomment', '$topicurl',$saletype$salevalue$tradedate$ID_MEMBER,$approval)"__FILE____LINE__);

$id db_insert_id();

if ($approval == 1)
{

SendTraderPMByID($id);



redirectexit('action=trader;id=' $traderid);
}
else
fatal_error($txt['smftrader_form_notapproved'], false);

}
function 
Report()
{
global $context$txt$db_prefix;

is_not_guest();

$context['sub_template']  = 'report';

@$feedid = (int) $_GET['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'], false);

$context['feedid'] = $feedid;


$context['page_title'] = $txt['smftrader_reporttitle'];
}
function 
Report2()
{
global $db_prefix$ID_MEMBER$webmaster_email$sourcedir$scripturl$txt$sourcedir$modSettings;

include $sourcedir '/Subs-Post.php';

is_not_guest();

@$comment htmlspecialchars($_REQUEST['comment'],ENT_QUOTES);

if ($comment == '')
fatal_error($txt['smftrader_errnocomment'], false);

// Add link to trader to comment field.
@$feedid = (int) $_REQUEST['feedid'];

$result "
SELECT f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, f.comment_short,
f.topicurl, f.comment_long, f.salevalue, f.saledate, m.realName
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m
WHERE f.feedbackid = 
$feedid AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult db_query($result__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);
$comment .= "\n"  $txt['smftrader_commentmadeby'] . '[url=' $scripturl '?action=profile;u=' $row['FeedBackMEMBER_ID'] . ']' $row['realName'] . '[/url]';
$comment .= "\n\n" '[url=' $scripturl '?action=trader;id=' $row['ID_MEMBER'] . ']' $txt['smftrader_viewtrader'] . '[/url]';


$comment .= "\n\n" $txt['smftrader_title'];


require_once($sourcedir '/Subs-Post.php');
$dbresult db_query("
SELECT 
m.ID_MEMBER 
FROM 
{$db_prefix}membergroups AS g,{$db_prefix}members AS m 
WHERE m.ID_GROUP = g.ID_GROUP AND m.ID_GROUP IN (" 
$modSettings['trader_membergroupspm'] . ")"__FILE____LINE__);
while($row2 mysql_fetch_assoc($dbresult))
{
$pm_register_recipients = array(
'to' => array($row2['ID_MEMBER']),
'bcc' => array(),
);



sendpm($pm_register_recipients,$txt['smftrader_title'] . ' ' $txt['smftrader_badfeedback'],$comment);
}
mysql_free_result($dbresult);

//if (!sendmail($webmaster_email, $txt['smftrader_title'] . ' ' . $txt['smftrader_badfeedback'],$comment))
// fatal_error($txt['smftrader_failedreport'],false);

redirectexit('action=trader;id=' $row['ID_MEMBER'] );
}
function 
ViewDetail()
{
global $context$db_prefix$txt;


$context['sub_template']  = 'detail';

@$feedid = (int) $_REQUEST['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'], false);

$context['page_title'] = $txt['smftrader_title'] . ' - ' $txt['smftrader_detailedfeedback'] ;
$context['feedid'] = $feedid;


$result "
SELECT 
f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, f.topicurl, 
f.comment_long, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.feedbackid = " 
$context['feedid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult db_query($result__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);

$context['trading_detail'] = $row;

}
function 
Delete()
{
global $context$db_prefix$txt;

// Check if they are allowed to delete feedback
isAllowedTo('smftrader_deletefeed');

@$feedid = (int) $_REQUEST['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'], false);

$context['feedid'] = $feedid;

$context['sub_template']  = 'delete';
$context['page_title'] = $txt['smftrader_title'] . ' - ' $txt['smftrader_deletefeedback'];

$result "SELECT f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, 
f.comment_short,  f.topicurl, f.comment_long, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.feedbackid = " 
$context['feedid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult db_query($result__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);

$context['trader_feedback'] = $row;


}
function 
Delete2()
{
global $context,  $txt;

// Check if they are allowed to delete feedback
isAllowedTo('smftrader_deletefeed');

@$feedid = (int) $_REQUEST['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'],false);

@$redirectid = (int) $_REQUEST['redirect'];
if (empty($redirectid))
fatal_error($txt['smftrader_notrader'], false);

DeleteByID($feedid);


redirectexit('action=trader;id=' $redirectid);
}
function 
AdminSettings()
{
global $context$txt,  $mbname$db_prefix$scripturl;

isAllowedTo('admin_forum');

adminIndex('trader_settings');

$context['page_title'] = $mbname ' - ' $txt['smftrader_title'] . ' - ' $txt['smftrader_text_settings'];
$context['sub_template']  = 'settings';


$context['start'] = (int) $_REQUEST['start'];


$dbresult db_query("
SELECT 
COUNT(*) AS total 
FROM 
{$db_prefix}feedback 
WHERE approved = 0"
__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
$total $row['total'];
mysql_free_result($dbresult);

$dbresult db_query("
SELECT 
f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, f.comment_short,
f.salevalue, f.saledate, m.realName, f.ID_MEMBER, u.realName mainName 
FROM (
{$db_prefix}feedback AS f)
LEFT JOIN 
{$db_prefix}members AS m ON (f.FeedBackMEMBER_ID = m.ID_MEMBER)
LEFT JOIN 
{$db_prefix}members AS u ON (f.ID_MEMBER= u.ID_MEMBER)
WHERE f.approved = 0 LIMIT 
$context[start],10"__FILE____LINE__);

$context['trader_appoval'] = array();

while ($row mysql_fetch_assoc($dbresult))
{
$context['trader_appoval'][] = $row;
}
mysql_free_result($dbresult);

$context['page_index'] = constructPageIndex($scripturl '?action=trader;sa=admin' $_REQUEST['start'], $total10);

}
function 
AdminSettings2()
{
global $db_prefix;

isAllowedTo('admin_forum');

$trader_approval =  isset($_REQUEST['trader_approval']) ? 0;
$trader_use_pos_neg = isset($_REQUEST['trader_use_pos_neg']) ? 0;
$trader_feedbackperpage = (int) $_REQUEST['trader_feedbackperpage'];

updateSettings(
array(
'trader_approval' => $trader_approval,
'trader_feedbackperpage' => $trader_feedbackperpage,
'trader_use_pos_neg' => $trader_use_pos_neg,

));

redirectexit('action=trader;sa=admin');
}
function 
ApproveRating()
{
global $db_prefix;

isAllowedTo('admin_forum');

$id = (int) $_REQUEST['id'];


ApproveByID($id);

redirectexit('action=trader;sa=admin');
}
function 
SendTraderPMByID($id)
{
global $db_prefix$sourcedir$txt$scripturl;

$request db_query("
SELECT
 m.realName, f.comment_short, f.ID_MEMBER
FROM 
(
{$db_prefix}feedback AS f, {$db_prefix}members as m)
WHERE f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.feedbackid  = 
$id LIMIT 1"__FILE____LINE__);


$row mysql_fetch_assoc($request);

mysql_free_result($request);


$pm_register_recipients = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array(),
);

require_once($sourcedir '/Subs-Post.php');

sendpm($pm_register_recipients$txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" $txt['smftrader_commentmadeby'] . $row['realName'] . "\n" "{$scripturl}?action=profile");

}

function 
BulkActions()
{
isAllowedTo('admin_forum');

if (isset($_REQUEST['ratings']))
{

$baction $_REQUEST['doaction'];

foreach ($_REQUEST['ratings'] as $value)
{

if ($baction == 'approve')
ApproveByID($value);
if ($baction == 'delete')
DeleteByID($value);

}
}

// Redirect to approval list
redirectexit('action=trader;sa=admin');
}

function 
DeleteByID($id)
{
global $db_prefix;

// Delete the comment
db_query("
DELETE FROM 
{$db_prefix}feedback
WHERE feedbackid = 
$id"__FILE____LINE__);
}
function 
ApproveByID($id)
{
global $db_prefix;

db_query("UPDATE {$db_prefix}feedback
SET approved = 1
WHERE feedbackid = 
$id LIMIT 1"__FILE____LINE__);

SendTraderPMByID($id);

SendCommenterPMByID($id);
}


function 
SendCommenterPMByID($id)
{
global $db_prefix$sourcedir$txt$scripturl;

$request db_query("
SELECT
 m.realName, f.comment_short, f.ID_MEMBER,f.FeedBackMEMBER_ID, u.realName MainName, m.timeOffset 
FROM 
(
{$db_prefix}feedback AS f)

LEFT JOIN 
{$db_prefix}members as m ON (f.FeedBackMEMBER_ID = m.ID_MEMBER)
LEFT JOIN 
{$db_prefix}members as u ON (f.ID_MEMBER = u.ID_MEMBER)

WHERE  f.feedbackid  = 
$id LIMIT 1"__FILE____LINE__);


$row mysql_fetch_assoc($request);

mysql_free_result($request);


$pm_register_recipients = array(
'to' => array($row['FeedBackMEMBER_ID']),
'bcc' => array(),
);

require_once($sourcedir '/Subs-Post.php');

$finaltime timeformat(forum_time(false));
$finaltime strip_tags($finaltime);

sendpm($pm_register_recipientssprintf($txt['smftrader_commenter_subject'],$row['MainName']), 
sprintf($txt['smftrader_commenter_body'],$row['MainName'],$finaltime));

}
?>
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

vbgamer45 i want to change the message that is send via pm

From
QuoteComment made by: User
Link to Profile

To
QuoteComment made by: User
Please log onto your Profile Page to view all new Feedbacks

Can you help me
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

aw06

Quote from: vbgamer45 on February 17, 2011, 09:42:13 AM
Check the Trader.english.php file to change

Yes but how do i stop it from putting the link to the profile .. ??

The link comes up with an error , so i want to remove the link..
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

vbgamer45

Search the language text string and look code line by line to figure it out.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

imatt87

How do i change the text from  SMF Trader System - Submit Feedback to Ace Reptiles Trader System - Submit Feedback

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

imatt87

Quote from: vbgamer45 on February 18, 2011, 01:44:18 PM
Modify themes/default/languages/trader.english.php

What do i need to change ?

<?php
/*
SMF Trader System
Version 1.4
by:vbgamer45
http://www.smfhacks.com [nofollow]
*/

$txt['smftrader_rating'] = 'Rating';
$txt['smftrader_comment'] = 'Comment';
$txt['smftrader_from'] = 'From';
$txt['smftrader_to'] = 'To';
$txt['smftrader_detail'] = 'Detail';
$txt['smftrader_date'] = 'Date';
$txt['smftrader_report'] = 'Report';
$txt['smftrader_approve'] = 'Approve';
$txt['smftrader_options'] = 'Options';
$txt['smftrader_invalidview'] = 'Invalid view...';
$txt['smftrader_viewdetail'] = 'View Detail';
$txt['smftrader_delete'] = 'Delete';
$txt['smftrader_submitfeedback2'] = 'Submit Feedback';
$txt['smftrader_reportfeedback'] = 'Report Feedback';
$txt['smftrader_detailedfeedback'] = 'Detailed Feedback';
$txt['smftrader_detailedcomment'] = 'Detailed Comment';
$txt['smftrader_commentby'] = 'Comment by: ';
$txt['smftrader_returntoratings'] = 'Return to Trader Ratings';
$txt['smftrader_shortcomment2'] = 'Short Comment';
$txt['smftrader_deletefeedback'] = 'Delete Feedback';

$txt['smftrader_nomemberselected'] = 'No member selected';
$txt['smftrader_errfeedbackself'] = 'You can not leave feedback for yourself.';
$txt['smftrader_errshortcoment'] = 'You did not enter a short comment!';
$txt['smftrader_errnocomment'] = 'You did not place a comment for this feedback.';

$txt['smftrader_errsaletype'] = 'Invalid sale type.';
$txt['smftrader_errsalevalue'] = 'Invalid sale value.';
$txt['smftrader_errnofeedselected'] = 'No feedback selected.';
$txt['smftrader_failedreport'] = 'Failed to report trader rating comment.';
$txt['smftrader_badfeedback'] = 'Bad Feedback';

$txt['smftrader_notrader'] = 'No trader.';
$txt['smftrader_viewtrader'] =  'View Trader';
$txt['smftrader_commentmadeby'] = 'Comment made by: ';


$txt['smftrader_set_permissionnotice'] = 'Lastly! Do not forget to make the permissions are set for each group, in order for them to use the trader system.';
$txt['smftrader_set_editpermissions'] = 'Edit Permissions';
$txt['smftrader_text_settings'] = 'Settings';
$txt['smftrader_text_permissions'] = 'Permissions';

$txt['smftrader_save_settings'] = 'Save Settings';

$txt['trader_feedbackperpage'] = 'Number of feedback to show on each page';
$txt['trader_use_pos_neg'] = 'Use positive/negative total trade count on display page';

$txt['smftrader_trader_approval'] = 'Trader Rating Approval';
$txt['smftrader_form_notapproved'] = 'Your rating will not appear in the user\'s trader profile to others until it is approved.';
$txt['smftrader_text_pages'] = 'Pages: ';

$txt['smftrader_newrating'] = 'You have a new comment on your feedback profile';

$txt['smftrader_commenter_subject'] ='Your comment for %s has been approved';
$txt['smftrader_commenter_body'] ='The comment you left for %s on %s has been approved.';

$txt['smftrader_text_withselected'] = 'With Selected';
$txt['smftrader_text_performaction'] = 'Perform Action';
$txt['smftrader_bulk_approveratings'] = 'Approve';
$txt['smftrader_bulk_deleteratings'] = 'Delete';

$txt['smftrader_classifieds_listing'] = 'Classifieds Listing: ';

$txt['smftrader_err_classifieds_listing'] = 'You must select a Classifieds listing that you have bid on or created to leave feedback for this user.';

$txt['smftrader_err_no_classifieds_listing'] = 'You do not have any completed listings waiting to be rated';

?>

vbgamer45

To change it completely you need to modify Trader.php
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

imatt87

I dont know what i need to Modify in there thats what im asking, isnt there a simple way to alter the name without recoding it all ?

vbgamer45

No there isn't since that text is combined from multiple text srings.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: