By MD King on Friday, 03 July 2015
Posted in Technical Issues
Replies 8
Likes 0
Views 546
Votes 0
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.
A simple fix may be to remove those points upon unliking. Hope that's a rule added in a future update.
·
Friday, 03 July 2015 11:55
·
0 Likes
·
0 Votes
·
0 Comments
·
hi MD King,

Sorry for late reply to this,

Can you try download my attachment file and replace in JoomlaFolder\media\com_easysocial\apps\user\photos\photos.php and it should fix this issues when the user unlike, it will auto deduct the point.
·
Friday, 03 July 2015 13:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Failed with the following:

Fatal error: Call to undefined method FD::_() in /var/www/sites/domainname.com/media/com_easysocial/apps/user/photos/photos.php on line 267
·
Saturday, 04 July 2015 01:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Is that literally the error or did you change the domain name?
·
Saturday, 04 July 2015 01:56
·
0 Likes
·
0 Votes
·
0 Comments
·
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);
}

·
Saturday, 04 July 2015 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
This error caused the site to go down earlier.

Fatal error: Call to undefined method FD::_() in /var/www/sites/domain.com/media/com_easysocial/apps/user/photos/photos.php on line 267
·
Sunday, 05 July 2015 04:31
·
0 Likes
·
0 Votes
·
0 Comments
·
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);
}



The problem was the gamification of points, when I applied your file from previous, the site gave that error.
Today the entire site went down around 9am, with the error above.
·
Sunday, 05 July 2015 04:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi MD King,

I am really sorry for the delay of this reply as it is a weekend for us here and make you inconvenience on this,

Can you try download this file and replace in this file again JoomlaFolder\media\com_easysocial\apps\user\photos\photos.php and see how it goes?
·
Sunday, 05 July 2015 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post