If a user likes a picture, then removes the like, then likes again, they get 2 points.
So, you can repeatedly like and unlike an image to amass points.
So, you can repeatedly like and unlike an image to amass points.
Fatal error: Call to undefined method FD::_() in /var/www/sites/domainname.com/media/com_easysocial/apps/user/photos/photos.php on line 267
// By the way, i add more photo type checking under the file.
if ($likes->type == 'photos.user.create' || $likes->type == 'photos.user.add' || $likes->type == 'photos.user.upload' || $likes->type == 'photos.user.uploadAvatar' || $likes->type == 'photos.user.updateCover') {
$photo->load($likes->uid);
$photo->assignPoints('photos.unlike', Foundry::user()->id);
}
Fatal error: Call to undefined method FD::_() in /var/www/sites/domain.com/media/com_easysocial/apps/user/photos/photos.php on line 267
Arlex Wong wrote:
Hi MD king,
I am really sorry for the delay of this reply as it is a weekend for us here.
I've checked in your site and like/unlike your photo, it seems work fine for me.
May i know which page you hitting this error? Please advise.
// By the way, i add more photo type checking under the file.
if ($likes->type == 'photos.user.create' || $likes->type == 'photos.user.add' || $likes->type == 'photos.user.upload' || $likes->type == 'photos.user.uploadAvatar' || $likes->type == 'photos.user.updateCover') {
$photo->load($likes->uid);
$photo->assignPoints('photos.unlike', Foundry::user()->id);
}