By User on Saturday, 28 September 2019
Posted in General Issues
Replies 11
Likes 0
Views 489
Votes 0
Hello. ES have default archivement:
Points Achiever
To unlock this badge, you need to gain 2000 points on the site first

I would like to create new archivement
Points Master
To unlock this badge, you need to gain 10000 points on the site first

What the best way to do it?
1) in backend press "Create New Badge" and... Don't know what next.
2) or find file "points.badge", make a copy of this file and rename "points-master.badge", change something inside too.

[{
"title" : "COM_EASYSOCIAL_BADGES_POINTS_ACHIEVER",
"alias" : "points-master",
"description" : "COM_EASYSOCIAL_BADGES_POINTS_ACHIEVER_DESC",
"howto" : "COM_EASYSOCIAL_BADGES_POINTS_ACHIEVER_HOWTO",
"command" : "points.achieve",
"extension" : "com_easysocial",
"avatar" : "media/com_easysocial/badges/points-master.png",
"frequency" : 10000
}]

Upload it by FTP. Discover and install it. Thats all?

Thanks.
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

You have to follow this instruction how to add custom badge in order to make system automatically assign this new badge to your user :

1. duplicate this file JoomlaFolder/administrator/components/com_easysocial/defaults/badges/points.badge

2. rename this file name to points1.badge or other name also can

3. Edit this file and modify these few important things https://take.ms/ac8nJ , can't make it same as existing badge especially command.

4. Once you done already, install this new badge from your site backend > Easysocial > achievements > install

5. After that you have to edit this file JoomlaFolder/administrator/components/com_easysocial/includes/points/points.php and paste the code inside this https://take.ms/t68T5

Currently this is the only way to respect your custom badge.
·
Sunday, 29 September 2019 09:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi. Thanks for the instruction.
3. Edit this file and modify these few important things https://take.ms/ac8nJ , can't make it same as existing badge especially command.
Can use for new archivement the same command : "points.achieve" without editing file JoomlaFolder/administrator/components/com_easysocial/includes/points/points.php?

Because the only difference is the number of userpoints to goal.

Or if few badge use the same commant, it will not install or works properly?

Thanks.
·
Sunday, 29 September 2019 16:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, that badge installation part will not allow if those command already exist.

In order to achieve your current requirement, you have to follow my instruction at above.
·
Monday, 30 September 2019 10:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello. After few months I noticed that new users (who registered later) can't get this badge. Can you please help with it?
5. After that you have to edit this file JoomlaFolder/administrator/components/com_easysocial/includes/points/points.php and paste the code inside this https://take.ms/t68T5
Yes, this file edited and looks like:
// Assign a badge to the user for earning points.
$badge = ES::badges();
$badge->log('com_easysocial', 'points.achieve', $userId, JText::_('COM_EASYSOCIAL_POINTS_BADGE_EARNED_POINT'));
$badge->log('com_easysocial', 'points.expert', $userId, JText::_('COM_EASYSOCIAL_POINTS_BADGE_EARNED_POINT')); // crimson
$badge->log('com_easysocial', 'points.master', $userId, JText::_('COM_EASYSOCIAL_POINTS_BADGE_EARNED_POINT')); // crimson
and new badge are installed. But users report they still can't get it.
·
Sunday, 01 March 2020 22:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually that is not possible to achieve these badge if you want those new user register on your site because I noticed you have set these both achievement type to frequency and set to 1500 - 2000 times, you can check my screenshot here : https://monosnap.com/file/f5VvfB7onctrgWNi2rWLUmeIhJwtbM

May i know which user account suppose to get this badge but system didn't assign it? So we can better have a check.
·
Monday, 02 March 2020 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I noticed you have set these both achievement type to frequency and set to 1500 - 2000 times
Hello. Points-achiever with goal 2000 is default badge. I didn’t changed type (frequency) and seems it works fine (user get badge after 2000 points or later). I only changed 100 to 2000.

Another one similar badge Points-expert (bike picture) with goal 15000 (not 1500). This user already has 15000+ points but he didn’t get it.
https://stranakrovi.com/community/32783-rocs

I have one more similar badge with money bag icon and 30.000 points.

Should I change “by friquency” to “by points”?

Thanks.
·
Monday, 02 March 2020 12:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello. Points-achiever with goal 2000 is default badge. I didn’t changed type (frequency) and seems it works fine (user get badge after 2000 points or later). I only changed 100 to 2000.

It shouldn't work if you set frequency, if you set to "15000" times, user have to earn point 15000 times only can achieve the badge. (Regardless of the number of points earned).

If you want something like when the user reach 15000 point then achieve that badge, unfortunately that is not possible to achieve this since points type only work for 1 type of action, and frequency type doesn't look at points earned.
·
Monday, 02 March 2020 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi.
If you want something like when the user reach 15000 point then achieve that badge
Yes, I thought it works this way.
...unfortunately that is not possible to achieve this since points type only work for 1 type of action, and frequency type doesn't look at points earned.
If change Achieve Type: By Points, it still will not works like I want?
Or it will works only for Points Achiever (default badge), but not for custom badges?
·
Tuesday, 03 March 2020 01:04
·
0 Likes
·
0 Votes
·
0 Comments
·
If change Achieve Type: By Points, it still will not works like I want?
Or it will works only for Points Achiever (default badge), but not for custom badges?

If you change to "Achieve Type" to "By point", it will show another 2 fields :

- Rules To Achieve The Badge
- Rules To Remove The Badge

What this field "Rules To Achieve The Badge" mean is, system required you to set one of the point rules here for example :

1. I set "Points Threshold" to 50

2. Then I set "Rules To Achieve The Badge" to "story.create (5 point - base on your point rules as what you set)"

3. In order to get this badge, user have to create 10 story post on the site.

Regarding with your case, currently is not possible to achieve at this point of time because currently we do not have an option to allow you to set apply to all the point, mean as long as user point reach 50 point then user can get that badge.
·
Tuesday, 03 March 2020 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello. I noticed that office users (who didn't logged some time) get Points Achiever badge. Why it happens? Rule works also if user1 passively get user points (for example when user2 react to user1's content)? Thanks.
·
Wednesday, 04 March 2020 02:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello. I noticed that office users (who didn't logged some time) get Points Achiever badge. Why it happens? Rule works also if user1 passively get user points (for example when user2 react to user1's content)? Thanks.


Yes, we have "Like Post" point rules for this, system will add point to that post creator.

This is why that user 1 can able to unlock that points achiever badge.
·
Wednesday, 04 March 2020 13:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post