• Welcome to Simple Machines Community Forum. Please login or sign up.
December 08, 2021, 06:22:46 AM

News:

SMF 2.0.18 has been released! Please update. Read more.


SMF Trader System

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

Previous topic - Next topic

SMFHacks.com Team

Update!

2.0
+Improved SMF 2.0 style in some areas of the trader system.
+Listing is now shown on the detail page if you have SMF Classifieds installed.
+Listing Title now shown above short comment if you have SMF Classifieds installed.
+Buyer/Seller now in bold on trader feedback listing page
!Better support for UTF8 characters SMF 2.0
!Fixed an issue with sometimes allowing the same SMF Classifieds listing to be allowed to be rated twice.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

SMFHacks.com Team

2.0a
+Added support for SMF 2.1.x
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

SMFHacks.com Team

Update
2.0.1
!Do not show trader link for guests posts
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

njtweb

I've never used this and would like to remove it. I'm getting the following test failed errors but they don't make sense. They fail and say to replace with the same failed file.

Can I safely remove this mod without worry?

Thank you for your help.

vbgamer45

That is safe to ignore. Happens when mods add to those langauge files.
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

njtweb

Quote from: vbgamer45 on June 18, 2019, 08:50:30 AM
That is safe to ignore. Happens when mods add to those langauge files.

Thank you, I removed it and didn't get any errors but Trader count is still there in the post bit user info. Can I manually remove that from display.template? If so, can you direct me which chunk of code to remove?

Thank you

vbgamer45

Yes in display.template.php remove

// Start SMF Trader System
if (!empty($message['member']['id']))
{
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
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

njtweb

I removed the trader system. I dumped the SMF file cache. I did a shift F5 and a cntrl F5. I looked in Display.template and none of the SMF trader system code is there. But the Trader bit is still on the front end?

vbgamer45

check default theme files.
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

njtweb

Quote from: vbgamer45 on June 18, 2019, 12:34:36 PM
check default theme files.

Default curve? That is my default theme.

njtweb

Update - I don't know why I didn't see it with a cntrl F but I went line by line and found it. It's gone now.

shadav

August 17, 2019, 07:38:12 PM #731 Last Edit: August 17, 2019, 07:50:41 PM by shadav
ok i'm blind or something, I added this to 2.0.15 but I can not find anywhere in the admin to set it on/off or anything...
it's showing up on members pages and post info but as far as I can tell there is nothing in the admin for settings and whatnots....


nevermind, my install got a bit botched up... fixed the admin file

vbgamer45

there should be an admin setting called trader settings in the dropdiwns
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

SMFHacks.com Team

Security Update:
3.0
!Added session checks on feedback submission and reporting feedback
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

gevv

Hello,

Error log occurs when trader enters profile page  (php 7.4 rc3)

/index.php?action=trader&amp;id=14221;view=3
Sources/Trader2.php (Line 178)

8: Trying to access array offset on value of type null

$context['page_title'] = $txt['smftrader_feedbacktitle'] . ' - ' . $row['real_name'];



8: Trying to access array offset on value of type null
File
Sources/Trader2.php
Line
178
/index.php?action=trader&id=14221

Backtrace information

    #0: smf_error_handler()
    Called from /Sources/Trader2.php on line 178
    #1: TraderMainView()
    Called from //Sources/Trader2.php on line 45
    #2: tradermain()
    Called from //index.php on line 178


ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

vbgamer45

Update
3.0.1
!Fixed PHP 7.4 error log
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

gevv

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Advertisement: