UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!


Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Execute badge achievement rule

Emil Appelkvist · ·
8:58 PM Saturday, 21 January 2017
First of all. I understand this might be out of scope for support.
Perhaps some fellow users can help, it will benefit the whole community.

Regular labs have a free extension called sourcer it allows to place php code in content.
Im now trying to make the badge achievement for a certain article.

Anyone knows how to continue? I guess the "action" thing might be missing.

require_once( JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php' );

// @badge: read.terms
Foundry::badges()->log( 'com_easysocial' , read.terms' , $userId , JText::_( 'Read an special article.' ) );

I have installed the rule file:

"title" : "terms",
"description" : "Read terms",
"howto" : "To unlock this badge, read the terms.",
"alias" : "terms",
"extension" : "com_easysocial",
"command" : "read.terms",
"avatar" : "media/com_easysocial/badges/poweredby.png",
"frequency" : 1

This can of course be very smart if you want to reward user for reading the terms, help pages, FAQ or other things etc.
Hopefully we can together make some great stuff here :)
The replies under this section are restricted to logged in users or users with an active subscription with us