By Michael Zahariev on Tuesday, 10 May 2016
Posted in Technical Issues
Replies 1
Likes 0
Views 409
Votes 0
I have created a custom badge which I am trying to implement. This badge will need to be assigned and not earned.

Here is my code in my cidm.badge file:
[
{
// The title of the badge.
"title" : "Certificate in Digital Money Graduate",

// The description of the badge
"description" : "You have successfully met the graduation criteria for a Certificate in Digital Money",

// The steps needed to unlock this badge.
"howto" : "Enroll in, and sucessfully meet the graduation criteria for the Certificate in Digital Money ",

// The alias of the badge.
"alias" : "cidm",

// The extension for this badge.
"extension" : "com_easysocial",

// The badge command.
"command" : "certificate.complete",

// The default avatar for this rule. Relative to the site's document root a.k.a (JPATH_ROOT)
"avatar" : "media/com_easysocial/badges/cidm-grad.png",

// When user creates a new discussion for 15 times.
"frequency" : 1
}
]


For some reason everytime I try upload this using acheivements > install i get the following error:
0 SocialTableBadge::bind(*NULL*)


Im not sure what I have done wrong. Please assist.
Hey there,

The sample badge file contains comments so that developers / webmasters can understand the properties of each attributes. You don't really need them and I believe it's causing the json_decode method to fail. Try this instead,

·
Tuesday, 10 May 2016 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post