By Lumbroso on Sunday, 21 June 2015
Posted in General Issues
Replies 6
Likes 0
Views 819
Votes 0
Hello. Small question about badges: I have not found a badge for events? Type: Earn 10 points for the creation of an event.
Hi Lumbroso,

I am really sorry for the delay of this reply.
Other badge will require other command. Can you try these attached file and update us whether does it help you out?
·
Tuesday, 30 June 2015 18:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Lumbroso,

I sincerely apologize as the delay wasn't on purpose.

I believe there's no badges available for creating an event.
Can you try "Start Scanning" at BackEnd > Badges > Discover and see how it goes?
however you can create a custom badge for this event
Please refer to the documentation
http://stackideas.com/docs/easysocial/administrators/points/points
http://stackideas.com/docs/easysocial/developers/points/rule-file

Do update us if there's any error.
·
Monday, 22 June 2015 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
So I tried to think a little .... I have found in the points rules commands to integrate badges into my files ".badge"
For example: I want to create 3 badges (in enclosed rooms) that can give a badge according to:
"1sortie.badge" => when the user is holding its first event.
"bronze.badge" => 3 when the user organizes events
"argent.badge" => when the user holds 10 events

What is strange is that the badge ""1sortie.badge" is in the list of badges and not following two.
And even stranger: the badge does not work in forehead when I create a first output (this is the rule to apply)
·
Thursday, 25 June 2015 21:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Lumbroso,

May I suggest that you try for a single badge files first, than apply changes at \components\com_easysocial\controllers\events.php with these code
$badge = FD::badges();
$badge->log('com_easysocial' , 'events.create' , $this->my->id , JText::_(COM_EASYSOCIAL_REGISTRATION_BADGE_REGISTERED)); after line 583
You may give it try and I am really sorry that this is really out of my scope of support.
·
Friday, 26 June 2015 15:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
Thank you anyway for trying to help me! It works with the first badge anyway. I will now attempt to add other badges.
Last quetsion: If I want to create a badge this time for those who participate in events is that the code below is correct? :
$badge = FD::badges();
$badge->log('com_easysocial' , 'events.going' , $this->my->id , JText::_(COM_EASYSOCIAL_REGISTRATION_BADGE_REGISTERED));
·
Friday, 26 June 2015 17:30
·
0 Likes
·
0 Votes
·
0 Comments
·
I am creating other badges with the "events.create" and I think I can unable to use the same command several times for badges ?? (I added a new badge, this time with a different frequency (5) but it is not added to the list
·
Friday, 26 June 2015 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post