News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Trader System

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

Previous topic - Next topic

yameth

#200
Quote from: RoarinRow on December 30, 2006, 12:50:41 AM
Thank you for this modification  8)   The only thing I did differently was move the 'Trade Count' number below the post count and unbolded the text. 

Could you please tell us how can one go about doing that?

PS. Great mod. Very well appreciated by my forum members. Thanks.
SMF 2.0.11, EZPortal, Ad Management, SMF Articles, Simple Audio Video Embedder, SMF Trader System, SMF Packs SEO

vbgamer45

You would need to modify the Display.template.php of your theme to remove that code.
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

RoarinRow

Quote from: yameth on May 06, 2008, 03:18:52 AM
Quote from: RoarinRow on December 30, 2006, 12:50:41 AM
Thank you for this modification  8)   The only thing I did differently was move the 'Trade Count' number below the post count and unbolded the text. 

Could you please tell us how can one go about doing that?

PS. Great mod. Very well appreciated by my forum members. Thanks.

Go to your themes/default/display.template.php or your theme's display.template.php file then find this:

//Start SMF Trader System
//First do the query for the number of ratings
db_query("SELECT feedbackid FROM {$db_prefix}feedback WHERE ID_MEMBER ="  . $message['member']['id'], __FILE__, __LINE__);
$tradecount = db_affected_rows();

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

//END SMF Trader System


then paste it right after this:

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';


Mine looks like this:

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />';

//Start SMF Trader System
//First do the query for the number of ratings
db_query("SELECT feedbackid FROM {$db_prefix}feedback WHERE ID_MEMBER ="  . $message['member']['id'], __FILE__, __LINE__);
$tradecount = db_affected_rows();

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

//END SMF Trader System


My version takes out the bold and adds another break right before the avatar.


SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

yameth

RoarinRow, you have made my day. Thanks for the help guys!
SMF 2.0.11, EZPortal, Ad Management, SMF Articles, Simple Audio Video Embedder, SMF Trader System, SMF Packs SEO

RoarinRow

Quote from: yameth on May 07, 2008, 06:34:18 PM
RoarinRow, you have made my day. Thanks for the help guys!

Welcome, hope it works!   8)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Apllicmz

Nice Work good mod
Translate Portuguese and brazilian

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Sistema para comerciante ';
$txt['smftrader_version'] = '1.1';
$txt['smftrader_admin'] = 'Configurando Trader';
//Display text strings
$txt['smftrader_profile'] = 'Com&eacute;rciante: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Para enviar comentários';
$txt['smftrader_totalfeedback'] = 'Total de feedback positivo: ';
$txt['smftrader_positivefeedbackpercent'] = 'Feedback positivo: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Feedback positivo: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutro Feedback: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Feedback Negativo: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'Você e o:';
$txt['smftrader_buyer'] = 'Comprador';
$txt['smftrader_seller'] = 'Vendedor';
$txt['smftrader_trade'] = 'Comérciante';


$txt['smftrader_transaction'] = 'Notas transação:';
$txt['smftrader_positive'] = 'Positiva';
$txt['smftrader_neutral'] = 'Neutro';
$txt['smftrader_negative'] = 'Negativo';

$txt['smftrader_shortcomment'] = 'Breve comentário sobre a sua operação:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 characters';
$txt['smftrader_topicurl'] = 'Tópico URL:';
$txt['smftrader_longcomment'] = 'Longo comentário sobre a sua operação:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'Ver todos os comentários';
$txt['smftrader_sellerfeedback'] = 'Ver feedback do vendedor';
$txt['smftrader_buyerfeedback'] = 'Ver Feedback do comprador ';
$txt['smftrader_tradefeedback'] = 'Ver feedback do comércio ';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF sistema do comerciante  - comerciante Geral';
$txt['smftrader_submittitle'] = 'SMF Sistema do comerciante  - enviar comentários';
$txt['smftrader_reporttitle'] = 'SMF Sistema do comerciante - relatório mau feedback';


$txt['smftrader_contact'] = 'Contactar';
$txt['smftrader_viewprofile'] = 'Ver perfil completo.';
$txt['smftrader_sendpm'] = 'Envie este membro uma mensagem pessoal.';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Trader';
$txt['permissionname_smftrader_feedback'] = 'Permitir enviar coment&aacute;rios';
$txt['permissionhelp_smftrader_feedback'] = 'Permite ao membro enviar ao comerciante fating feedback.';
$txt['permissionname_smftrader_deletefeed'] = 'Permitir apagar qualquer coment&aacute;rio por qualquer membro.';
$txt['permissionhelp_smftrader_deletefeed'] = 'Permite ao membro apagar feedback por qualquer pessoa ou qualquer membro.';
$txt['cannot_smftrader_feedback'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar coment&aacute;rios.';
$txt['cannot_smftrader_deletefeed'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a excluir feedback.';
$txt['permissionname_smftrader_autorating'] = 'Auto aprovar avalia&ccedil;otilde;es';
$txt['permissionhelp_smftrader_autorating'] = 'Votos n&atilde;o precisa esperar a aprova&ccedil;&atilde;o se essa autorizaç&atilde;o seja dada.';

//END SMF Trader System Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Sistema para comerciante ';
$txt['smftrader_version'] = '1.1';
$txt['smftrader_admin'] = 'Configurando Trader';
//Display text strings
$txt['smftrader_profile'] = 'Com&eacute;rciante: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Para enviar comentários';
$txt['smftrader_totalfeedback'] = 'Total de feedback positivo: ';
$txt['smftrader_positivefeedbackpercent'] = 'Feedback positivo: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Feedback positivo: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutro Feedback: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Feedback Negativo: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'Você e o:';
$txt['smftrader_buyer'] = 'Comprador';
$txt['smftrader_seller'] = 'Vendedor';
$txt['smftrader_trade'] = 'Comérciante';


$txt['smftrader_transaction'] = 'Notas transação:';
$txt['smftrader_positive'] = 'Positiva';
$txt['smftrader_neutral'] = 'Neutro';
$txt['smftrader_negative'] = 'Negativo';

$txt['smftrader_shortcomment'] = 'Breve comentário sobre a sua operação:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 characters';
$txt['smftrader_topicurl'] = 'Tópico URL:';
$txt['smftrader_longcomment'] = 'Longo comentário sobre a sua operação:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'Ver todos os comentários';
$txt['smftrader_sellerfeedback'] = 'Ver feedback do vendedor';
$txt['smftrader_buyerfeedback'] = 'Ver Feedback do comprador ';
$txt['smftrader_tradefeedback'] = 'Ver feedback do comércio ';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF sistema do comerciante  - comerciante Geral';
$txt['smftrader_submittitle'] = 'SMF Sistema do comerciante  - enviar comentários';
$txt['smftrader_reporttitle'] = 'SMF Sistema do comerciante - relatório mau feedback';


$txt['smftrader_contact'] = 'Contactar';
$txt['smftrader_viewprofile'] = 'Ver perfil completo.';
$txt['smftrader_sendpm'] = 'Envie este membro uma mensagem pessoal.';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Trader';
$txt['permissionname_smftrader_feedback'] = 'Permitir enviar coment&aacute;rios';
$txt['permissionhelp_smftrader_feedback'] = 'Permite ao membro enviar ao comerciante fating feedback.';
$txt['permissionname_smftrader_deletefeed'] = 'Permitir apagar qualquer coment&aacute;rio por qualquer membro.';
$txt['permissionhelp_smftrader_deletefeed'] = 'Permite ao membro apagar feedback por qualquer pessoa ou qualquer membro.';
$txt['cannot_smftrader_feedback'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar coment&aacute;rios.';
$txt['cannot_smftrader_deletefeed'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a excluir feedback.';
$txt['permissionname_smftrader_autorating'] = 'Auto aprovar avalia&ccedil;otilde;es';
$txt['permissionhelp_smftrader_autorating'] = 'Votos n&atilde;o precisa esperar a aprova&ccedil;&atilde;o se essa autorizaç&atilde;o seja dada.';

//END SMF Trader System Text Strings
]]></add>
</operation>
</file>




<?php
/*
SMF Trader System
Version 1.1
by:vbgamer45
http://www.smfhacks.com
Translate by:Candidosa2
http://www.joomlamz.com
*/

$txt['smftrader_rating'] = 'Rating';
$txt['smftrader_comment'] = 'Comentário';
$txt['smftrader_from'] = 'De';
$txt['smftrader_detail'] = 'Detalhes';
$txt['smftrader_date'] = 'Data';
$txt['smftrader_report'] = 'Relatório';
$txt['smftrader_approve'] = 'Aprovar';
$txt['smftrader_options'] = 'Opções';
$txt['smftrader_invalidview'] = 'Inválida vista...';
$txt['smftrader_viewdetail'] = 'Ver Detalhes';
$txt['smftrader_delete'] = 'Apagar';
$txt['smftrader_submitfeedback2'] = 'Enviar Feedback';
$txt['smftrader_reportfeedback'] = 'Relatório Feedback';
$txt['smftrader_detailedfeedback'] = 'Detalhes do Feedback';
$txt['smftrader_detailedcomment'] = 'Detalhes do comentário';
$txt['smftrader_commentby'] = 'Comentário de: ';
$txt['smftrader_returntoratings'] = 'Retornar ao comerciante avaliações';
$txt['smftrader_shortcomment'] = 'Breve comentário';
$txt['smftrader_deletefeedback'] = 'Apagar Feedback';

$txt['smftrader_nomemberselected'] = 'Nenhum membro selecionado';
$txt['smftrader_errfeedbackself'] = 'Você não pode deixar feedback para si mesmo.';
$txt['smftrader_errshortcoment'] = 'Você não inseriu um breve comentário!';
$txt['smftrader_errnocomment'] = 'Você não colocar um comentário para este comentário.';

$txt['smftrader_errsaletype'] = 'Inválido tipo de venda.';
$txt['smftrader_errsalevalue'] = 'Valor inválido venda.';
$txt['smftrader_errnofeedselected'] = 'Não a comentários selecionados.';
$txt['smftrader_failedreport'] = 'Falha ao relatório do comerciante rating comentário.';
$txt['smftrader_badfeedback'] = 'Bad Feedback';

$txt['smftrader_notrader'] = 'Nenhum comerciante.';
$txt['smftrader_viewtrader'] =  'Ver Trader';
$txt['smftrader_commentmadeby'] = 'Observação feita por: ';


$txt['smftrader_set_permissionnotice'] = 'Finalmente! Não se esqueça de fazer as permissões fixas para cada grupo, para que estes possam utilizar o sistema de comerciante.';
$txt['smftrader_set_editpermissions'] = 'Editar Permissões';
$txt['smftrader_text_settings'] = 'Configurações';
$txt['smftrader_text_permissions'] = 'Permissões';

$txt['smftrader_save_settings'] = 'Gravar configurações';


$txt['smftrader_trader_approval'] = 'Trader Rating aprovação';
$txt['smftrader_form_notapproved'] = 'Sua classificação não aparecerá no perfil do membro comerciante ate que outros sejam aprovado.';
$txt['smftrader_text_pages'] = 'Pages: ';

$txt['smftrader_newrating'] = 'Você tem uma nova avaliação sobre o seu perfil';

?>



gadgetrader

help i really really want this mod but when i dl it and install it .. there are no pics and no options to choose from..

i am running ancient and rusted theme please help

gadgetrader

any one please .. this mod is perfect for my site but i get no images and no text  and also no option for it under the Configuration menu (its just a blank spot) but its says it installs fine ..


again please help its a perfect mod for my site .. thank you in advance

germz

I have the same problem. Nothing is showing up and I keep getting errors on "Who.English.php" somebody please help!!!!

germz

I would also like to add i'm getting these errors.


Apply Filter: Only show the errors with the same message
8: Undefined index: smftrader_admin
File: /home/thegermz/public_html/forums/Sources/Subs.php
Line: 2796



8: Undefined index: smftrader_admin
File: /home/thegermz/public_html/forums/Sources/Subs.php
Line: 2796


vbgamer45

That's an error either with your language pack or your themes custom modifications language file.
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

gadgetrader

Quote from: vbgamer45 on June 17, 2008, 07:50:35 PM
That's an error either with your language pack or your themes custom modifications language file.

me or the poster above me ?

vbgamer45

Admin -> Server Settings

Set your language to English

and not english utf8
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

germz

My thing was on English and it didn't work. Anyway I fixed it can't remember how but it works now.

gadgetrader

mine is also set to English

vbgamer45

if you use custom them you need to update the language files as well.
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

gadgetrader

can u tell me exactually what i need to update ?

vbgamer45

themes/yourthemename/language/modification.english.php for every theme you need
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

gadgetrader

#218
i only need it for the one theme i use .. what mods do i have to make for that ?

sorry you are going to have to forgive me i am a new at this ..

p.s. i installed the theme and left it on if you want to go to the site and look at it .. there is no text and no images on it

gadgetrader

ok here is the update for me .. it works thats the good thing .. but for my orginal admin account it does not work .. any ideas?

Advertisement: