Thanks manhta
So I have attached the php file as a text..
I can see on line 2835 "function completeCourse"
But after that I am totally lost..
Since we are only adding a badge to students who completed our 7-day free course and not each and every course we offer. Then wouldn't we need to be specific on how to assign?
The specific course ID is #1 7天免费 网上雅思培训班 (7-day Free Course)
The specific badge ID is #48 免费课学生 (Certificate of Completion)
I was told to enter this So I have attached the php file as a text.. I can see on line 2835 "function completeCourse"
But after that I am totally lost..
Since we are only adding a badge to students who completed our 7-day free course and not each and every course we offer. Then wouldn't we need to be specific on how to assign?
The specific course ID is #1 7天免费 网上雅思培训班 (7-day Free Course)
The specific badge ID is #48 免费课学生 (Certificate of Completion)
Do I enter exactly what you wrote somewhere in this?So I have attached the php file as a text.. I can see on line 2835 "function completeCourse"
But after that I am totally lost..
Since we are only adding a badge to students who completed our 7-day free course and not each and every course we offer. Then wouldn't we need to be specific on how to assign?
The specific course ID is #1 7天免费 网上雅思培训班 (7-day Free Course)
The specific badge ID is #48 免费课学生 (Certificate of Completion)
Do I enter exactly what you wrote somewhere in this? So I have attached the php file as a text.. I can see on line 2835 "function completeCourse"
But after that I am totally lost..
Since we are only adding a badge to students who completed our 7-day free course and not each and every course we offer. Then wouldn't we need to be specific on how to assign?
The specific course ID is #1 7天免费 网上雅思培训班 (7-day Free Course)
The specific badge ID is #48 免费课学生 (Certificate of Completion)
Do you happen to know where I enter the following code? I was told to enter into send email function part to assign badge to the user:
$file = JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php';
require_once($file);
$userId = 100; // need to assign the correct user id which you want to assign this badge to him
$assignBadgeMsg = JText::_('write your message here');
$badgeCommand = "plan1.subscribed";
$badge = ES::badges();
$badge->log('com_easysocial', $badgeCommand, $userId, $assignBadgeMsg);
```[upl-file uuid=3ea428ed-4da5-44bf-97d1-2a38a9399a92 size=38kB]gurutasktxt.zip[/upl-file]