Hi Bogdan,
Sorry for late reply to this,
Let's me do a simple explanation one of the Easysocial existing badge called
"Chatter - Loves to chat with users on the site."
[
{
"title" : "COM_EASYSOCIAL_BADGES_CHATTER_TITLE",
"alias" : "chatter",
"description" : "COM_EASYSOCIAL_BADGES_CHATTER_DESC",
"howto" : "COM_EASYSOCIAL_BADGES_CHATTER_HOWTO",
"command" : "conversation.reply",
"extension" : "com_easysocial",
"avatar" : "media/com_easysocial/badges/chatter.png",
"frequency" : 150
}
]
Once you created this badge file, you have to write php code like following code in
JoomlaFolder\administrator\components\com_easysocial\models\conversations.php under this function addReply: (Badge command 'conversation.reply' is important part)
// @badge: conversation.reply
$badge = FD::badges();
$badge->log( 'com_easysocial' , 'conversation.reply' , $creatorId , JText::_( 'COM_EASYSOCIAL_CONVERSATIONS_BADGE_REPLIED_IN_A_CONVERSATION' ) );
In other word, when the user reply in conversation over 150 times, so this user will get the chatter badges.