By Emil Appelkvist on Saturday, 21 January 2017
Replies 6
Likes 0
Views 782
Votes 0
Hey.
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.


{source}
<?php
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.' ) );
?>
{/source}


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
.
·
Saturday, 21 January 2017 21:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Since this is beyond the scope of our support, I will move this under the Tutorials section.
·
Saturday, 21 January 2017 23:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks. This is a Easysocial related idea. I think you moved this to Tutorial - Easydiscuss.

Any pointers in the right direction Mark?
·
Sunday, 22 January 2017 02:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry but I am not familiar with sourcerer
·
Sunday, 22 January 2017 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post