UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Easy Badges

Captain Tango · ·
1:00 AM Sunday, 27 July 2014
None
Thought I would share a little hack that I have been using on my site for a few months now.
What it does: A new way of assigning badges to a user.

First thing you will need to do is edit Site\controllers\photo.php
find
$photo->assignBadge( 'photos.tag' , $my->id );


add after
$badge  = Foundry::badges();
$badge->log( 'com_easysocial' , $tag->uid , $photo->user_id , JText::_( 'Tagged with a Badge' ) );


Next you will need to create some new user profiles in the backend for the badges you would like to give out. Then log into those profiles, and send friend requests to yourself, and anyone else you would like to have the ability to give out this badge.

Finally make and install the badge file itself. Where 'command' is the user id for the badge profile you just created.
[
{
"title" : "Mirror Universe",
"alias" : "selfie",
"description" : "Took a picture of their 'evil' side.",
"howto" : "Take a sexy mirror selfie",
"command" : "810",
"extension" : "com_easysocial",
"avatar" : "media/com_easysocial/badges/selfie.png",
"frequency" : 1
}
]



Hope some of you find this as useful as I have found it on my site.
The replies under this section are restricted to logged in users or users with an active subscription with us