By And Kit on Thursday, 02 August 2018
Posted in Technical Issues
Replies 3
Likes 0
Views 0.9K
Votes 0
Hi,

I'm trying to setup user Achievement/Badge on EasySocial. On the backend Achievement config, I can create/edit badges, but I'm not able to configure the Achievement rule itself. It seems to be contained in the Achievement Command? Could you let me know where the rules are configured? For example, how can I create badges such as Badge-10, Badge-50, Badge-100 that will be assigned to users with 10, 50, 100 followers?

Also a follow-up question, where do the achievement badge appears? Is it possible to have it appear on the User Avatar, for example next to the online/offline status indicator? If a user have multiple badges, which badge will be displayed by default? For example, in the example above with Badge-10, Badge-50, ..., if a user has 55 followers, will the Badge-50 be displayed by default?

Thanks!
Hi And Kit,
I can create/edit badges, but I'm not able to configure the Achievement rule itself. It seems to be contained in the Achievement Command?
You would have to manually create the .badge files with the custom command. Then place the files at designated directories so that the system may discover and install them.
how can I create badges such as Badge-10, Badge-50, Badge-100 that will be assigned to users with 10, 50, 100 followers?
Unfortunately, currently EasySocial does not support multiple badges using the same command.
Also a follow-up question, where do the achievement badge appears?
Badges appear in the user's profile header under the user's name like so(https://i.imgur.com/PpYl2As.png).
Is it possible to have it appear on the User Avatar, for example next to the online/offline status indicator?
Not really sure how this looks like, perhaps you can provide a screenshot?
If a user have multiple badges, which badge will be displayed by default?
As mentioned above, multiple badges with the same command is not possible currently. For other badges, by default they display on the user's profile header according to the badge's id.
·
Friday, 03 August 2018 12:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

Thank you for your reply.

Can you let me know the path to the built-in .badge files, and if there is any guidance documentation on the structure of the .badge file. If you have any advice on what is needed to make the Badge-10/Badge-50/Badge-100 example (it can be multiple badges, but all measures number of followers), I understand I may need to do some development, but would appreciate if you have any guidance (if any).

Sure, please see attached screenshot, I indicated what I have in mind for having the badge on the avatar (small red boxes), from the demo website http://easysocial.stackideas.com/ ... It will just be 1 badge shown, for example, on the above example, it will be the Badge-10 or Badge-50, etc. indicating the number of followers for the user.

Can you let me know the script/code that is displaying the badges on the user profile header under user name?

Thanks
·
Friday, 03 August 2018 21:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

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

Are you referring this followers badges? http://take.ms/y5Xrp

If yes, you have to create a new custom .badge file, you can download my attached file and install from your site backend > Easysocial > achievement > install , once you installed, it will show your custom badge on the achievement badge listing page.

So you have to put these code into this file
JoomlaFolder/administrator/components/com_easysocial/includes/subscriptions/subscriptions.php , you can refer on my attached screenshot below for more details.

[gist type="php"]
ES::badges()->log('com_easysocial', 'followers2.follow', $currentViewer->id, 'COM_EASYSOCIAL_FOLLOWERS_BADGE_FOLLOWING_USER');
ES::badges()->log('com_easysocial', 'followers3.follow', $currentViewer->id, 'COM_EASYSOCIAL_FOLLOWERS_BADGE_FOLLOWING_USER');
[/gist]

The reason why need to add these code into this file is because that follow user functionality code under this php file.


Sure, please see attached screenshot, I indicated what I have in mind for having the badge on the avatar (small red boxes), from the demo website http://easysocial.stackideas.com/ ... It will just be 1 badge shown, for example, on the above example, it will be the Badge-10 or Badge-50, etc. indicating the number of followers for the user.

Can you let me know the script/code that is displaying the badges on the user profile header under user name?

Unfortunately that was not possible to achieve this.
Regarding this customisation, it will involved to customise a few files in order to achieve this.
If you really want this functionality, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.
·
Saturday, 04 August 2018 14:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post