News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Trader System

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

Previous topic - Next topic

foempspeedy

I tried to install on 1.1.7
Got this :
   Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
3.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
4.    Execute Modification    ./Themes/default/Display.template.php    Test successful
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.english-utf8.php    Skipping file

Means? :o

Oldiesmann

Quote from: foempspeedy on December 26, 2008, 08:35:41 PM
I tried to install on 1.1.7
Got this :
   Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
3.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
4.    Execute Modification    ./Themes/default/Display.template.php    Test successful
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.english-utf8.php    Skipping file

Means? :o


Test failed = some code that the mod was searching for wasn't found. This is likely caused by another mod that you have installed which changes the same code.

Skipping file = you don't have that file so it's skipping the modifications for that particular file.
Michael Eshom
Christian Metal Fans

foempspeedy

Quote from: Oldiesmann on December 26, 2008, 08:37:48 PM
Quote from: foempspeedy on December 26, 2008, 08:35:41 PM
I tried to install on 1.1.7
Got this :
   Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
3.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
4.    Execute Modification    ./Themes/default/Display.template.php    Test successful
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.english-utf8.php    Skipping file

Means? :o


Test failed = some code that the mod was searching for wasn't found. This is likely caused by another mod that you have installed which changes the same code.

Skipping file = you don't have that file so it's skipping the modifications for that particular file.

Does it means it safe to install or not?
I installed few mods :
   
1.    TinyPortal    0.983    [ Uninstall ]
2.    Posting_Announcement    1.1.2    [ Uninstall ]
3.    BK-SMF Sub-Board    1.5    [ Uninstall ]
4.    Profile_Visitors    4.0    [ Uninstall ]
5.    Order Stickied Topics    1.01    [ Uninstall ]
6.    Ultimate Avatar Pack    1.1    [ Uninstall ]
7.    Welcome Topic Mod    1.1    [ Uninstall ]
8.    Profile Comments    1.4    [ Uninstall ]
9.    Are You Human? Anti-Bot Registration Check    1.3    [ Uninstall ]
10.    Birthday on Profile Summary    1.0    [ Uninstall ]

foempspeedy

I want to apply this mod but i get this test failed :
3.     Execute Modification     ./Themes/default/Profile.template.php     Test failed

Can i continue or what is the problem causing this?
ty

djstew

how would i get this to work in the ultimate profile mod?

vbgamer45

Quote from: foempspeedy on December 30, 2008, 01:35:36 PM
I want to apply this mod but i get this test failed :
3.     Execute Modification     ./Themes/default/Profile.template.php     Test failed

Can i continue or what is the problem causing this?
ty
It won't install on the profile template that is all. You can probaly manually install it.
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

coldfusionpower

installed it at 2.0.4 .. got it working on default theme but not at custom theme Black RainV2 .. done the mod at both Profile.template.php and Modifications.english.php  for Black RainV2 .. and its there . but come up empty like this ..



vbgamer45

Yeah that is usually is a language file issue. If the language of the forum is not set to english.

Or if you do not copy all the language strings to the modications.* files of your theme
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: kizer on November 13, 2008, 02:21:42 PM
Any idea on the Error message I keep getting?

Comment made by: themouse_
An Error Has Occurred!"


I would like to know this as well ....

And also, as an admin how can i edit feedbacks, in that some people to now enter a url for the sale .. then it causes the feedback topic to point to a page cannot be displayed.
:: 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

alex30

please help, what do i do with this?

/Themes/default/languages/Modifications.english-utf8.php     Test failed

Kindred

Corrections needed to have this work on 2.0 RC1

first...   database field names need to be updated
Unknown column 'm.timeOffset' in 'field list'
File: /.../Sources/Trader2.php
Line: 620

change this to be m.time_offset


next: template changes

Ignore the stuff per the mod and do the following

in Profile.template.php

find:

if (!empty($modSettings['userLanguage']) && !empty($context['member']['language']))
echo '
<dt>', $txt['language'], ':</dt>
<dd>', $context['member']['language'], '</dd>';




Add After


// Start SMF Trader System
// First do the query for the number of ratings
global $smcFunc;

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

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

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

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

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

echo '
</dl>';

echo '
<dl>

<dt><b>' . $txt['smftrader_title'] . '</b></dt>
<dd>&nbsp;</dd>

<dt><b>' . $txt['smftrader_profile'] . '</b></dt>
<dd><b>(<a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . '</a>)</b></dd>

<dt><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></dt>
<dd><b>' , $context['tradecount_nonetural'] != 0 ? round(($context['pcount'] / $context['tradecount_nonetural']) * 100, 2) : 0 , '%</b></dd>

<dt>' . $txt['smftrader_positivefeedback'] . '</dt>
<dd>' . $context['pcount'] . '&nbsp;<img src="' .  'Smileys/default/smiley.gif" alt="positive" /></dd>

<dt>' . $txt['smftrader_neutralfeedback']  . '</dt>
<dd>' .  $context['neturalcount'] . '&nbsp;<img src="' . 'Smileys/default/undecided.gif" alt="neutral" /></dd>

<dt>' . $txt['smftrader_negativefeedback']  . '</dt>
<dd>' .  $context['ncount'] . '&nbsp;<img src="' .  'Smileys/default/angry.gif" alt="negative" /></dd>

<dt>' . $txt['smftrader_totalfeedback']  . '</dt>
<dd>' .  ($context['pcount'] - $context['ncount']) . '</dd>

<dt><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></dt>
<dd>&nbsp;</dd>';
// END SMF Trader System

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

zepfms

It would be great if there was an option to set the URL field mandatory..

Thanks for this great addon  :)

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

Can a feature or hack be added to allow for sending of emails to the forums admins when new feedbacks are submittied ... i have approval checked so from time to time i have to go into admin panel and check for new feedback...

would be good if i could get an email notification . even a PM notification
:: 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

Eclipse16V

Does it work with SMF2.0RC1 ?
I don´t find it on the profil.template.de
It isn´t fixed on the last version of this mod.
I worked with:
SMF 2 in German

Shop:
SID Giessen

Kindred

2.0RC1 requires some manual tweaks to use it in the profile...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

makasu

When I try to register to my forum i get this error ><

The database value you're trying to insert does not exist: money

Anyone know how to solve that? :D

C4G-TK

I am using V2 RC1 and I installed this manually with two failed tests.  Profile.template.php & Display.template.php.  I made one little change for the Display.template in order to have it show the rating lower inside the post, but otherwise I thought I did it correctly.  In the profile, I need to tweak it a little because it spans the entire width of the screen to show the feedback, but otherwise it looks to be working correctly.

My problem arises when I went into my Error Log.  (Like I said, I did have the two errors listed above, but I thought I did them correctly despite making the change noted.)

I've attached the three errors that it is pulling in the Error Log and the two edits I did that showed as Failed Tests prior to doing them manually.

Display.template edit here:


// Is karma display enabled?
if ($modSettings['karmaMode'] != '0'){
echo '
<li class="margintop">', $txt['karma_power'], ': ', $message['member']['karma']['power'], '</li>
<li class="margintop repbars">
';
foreach($message['member']['karma']['bars'] as $karma_bar)
echo '<img src="', $settings['images_url'], '/karma_', $karma_bar['type'], '.gif" title="', $message['member']['name'], ' ', $karma_bar['desc'], '" alt="', $message['member']['name'], ' ', $karma_bar['desc'], '" />';
echo '
</li>';
}

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']))
echo '
<li>', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '</li>';

//Start SMF Trader System
//First do the query for the number of ratings
global $smcFunc;
$result = $smcFunc['db_query']('', "
SELECT
COUNT(*) AS total,salevalue
FROM {db_prefix}feedback
WHERE approved = 1 AND ID_MEMBER = " . $message['member']['id'] . " GROUP BY salevalue");
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row = $smcFunc['db_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'];
}

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



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



// Show the member's gender icon?


Profile.template edit here:


if (!empty($modSettings['userLanguage']) && !empty($context['member']['language']))
echo '
<dt>', $txt['language'], ':</dt>
<dd>', $context['member']['language'], '</dd>';

// Start SMF Trader System
// First do the query for the number of ratings
global $smcFunc;

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



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

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

$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="' .  'Smileys/default/smiley.gif" alt="positive" /></td></tr>
<tr><td>' . $txt['smftrader_neutralfeedback']  . '</td><td>' .  $context['neturalcount'] . '&nbsp;<img src="' . 'Smileys/default/undecided.gif" alt="neutral" /></td></tr>
<tr><td>' . $txt['smftrader_negativefeedback']  . '</td><td>' .  $context['ncount'] . '&nbsp;<img src="' .  'Smileys/default/angry.gif" alt="negative" /></td></tr>
<tr><td>' . $txt['smftrader_totalfeedback']  . '</td><td>' .  ($context['pcount'] - $context['ncount']) . '</td></tr>
<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


echo '
</dl>';

-img removed-

vkot

What about this? http://www.smfhacks.com/index.php/topic,1450.0.html
Is it done yet? Will it be done soon? Does anyone have a clue on how it can be done?
(Maybe I could built some code myself, but I have lack of time)
For specialized SMF installation/customization, Web Development, Linux Server Administration, click here.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

Advertisement: