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
add after
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.
Hope some of you find this as useful as I have found it on my site.
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.