News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Trader System

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

Previous topic - Next topic

Pandos


Kindred

well, obviously, you have to use the correct number for the group, in place of the "9"
Слова
Украина

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."

Pandos

The number of the desired additional group is 95. So when i use it, only Globals and Admin can see the link. But group_id is not additional group.

Kindred

but the array for GROUPS doesn't care if it's the primary or an additional group.
(when I look at the array, I see that my account is part of 8 different groups.

the first one in the list is the primary group....

    [groups] => Array
        (
           
  • => 187
                [1] => 8
                [2] => 1
                [3] => 159
                [5] => 149
            )
Слова
Украина

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."

darkspreader

#504
Is there a way to disable PM notification? I've been looking through the code but I can't figure it out.

Thanks in advance.

Edit: Is this what I have to remove in Trader.php?

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");

}


Edit2: Found that when I went to submit new ratings, there was a PHP error that SendTraderPMByID was undefined or something, so I went back into Trader.php, looked for SendTraderPMByID, then removed the whole line that it was in, and it seems to be working now.

Can anyone confirm that this is the right way to disable PM notifications? I'm not really a pro at PHP, just really good at copying and pasting, lol.

vbgamer45

Just remove

   sendpm($pm_register_recipients, $txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" . $txt['smftrader_commentmadeby'] . $row['realName'] . "\n" . "{$scripturl}?action=profile");
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

darkspreader

Thanks!

I have one last question. I would like to display the member's trade count in a PHP block in Tinyportal. I took the code from profile.template.php and edited it a little to get this:

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

However, when it shows up on the block, the number inside the parentheses is missing, and when I click on the link, the member ID is missing from the link. What can I do to fix this?

venex

Any ideas why when I install this MOD it hides the comments on the profiles of users??

The MOD i use for the comments is this one: http://custom.simplemachines.org/mods/index.php?mod=436

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

venex


vbgamer45

Yeah you would have to install one and then install the other and then look in the code for profile.template.php and see where the conflict is
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

BlownShovel

SMF 1.1.11
Trader System 1.2

The fellow helping us with mySQL was looking at DB connections and performance and noticed that trader feedback board has
its own DB table and the table is MyISAM.

We are thinking we should change that to InnoDB like the others as long as there is no requirements that it be myISAM 

It appeared to have a lot of table locks earlier in the day.

vbgamer45

It probably won't make much of a difference that table isn't queried that much.
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

BlownShovel

Thanks for the feedback.  I think we will make the change to be consistent with our other tables.  I just didn't want to break anything by changing it.  I'll let the DB guy know.  Thanks

venex


vbgamer45

Trader2.php no other script should modify 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

darkspreader

Quote from: darkspreader on September 29, 2010, 05:31:21 PM
Thanks!

I have one last question. I would like to display the member's trade count in a PHP block in Tinyportal. I took the code from profile.template.php and edited it a little to get this:

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

However, when it shows up on the block, the number inside the parentheses is missing, and when I click on the link, the member ID is missing from the link. What can I do to fix this?
Do you have any idea on this? I noticed that when I go to the actual trader information page, the link works fine, and the number shows up as well. Anywhere but that, it doesn't show.

vbgamer45

Well $context['member']['id']   and $tradecount are not set in your portal block you need to fill hose in there is a call in Trader.php to get the tradercount by member id so you need to place the member id.
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

darkspreader

Sorry, but how would I go about doing this? I'm not the best in PHP. :P

superjugadores

Ok this is driving me nuts right now... i have a couple of hours trying to give my moderators permission to approve/unnaprove feedbacks.

Is there a way to code something like "give user id=34 permission to approve feedbacks".

Common guys i't can't be that hard...

Advertisement: