Enable rating photos to all visitors of frontend

Phoca Gallery - image gallery extension
mikikado
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Sep 2017, 21:13

Enable rating photos to all visitors of frontend

Post by mikikado »

Hi There!

I have installed Phoca Gallery v4.3.6.

As I figured out that rating of photos is allowed only for registered users.

So where and how can I change this? I tried "guests" but did not functioned. So if there is something to change in one of php-files would be great to know in which and which row.

For your help and answers thank you in advance.

best regards

Michael
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Enable rating photos to all visitors of frontend

Post by Jan »

Hi, yes, for now the rating can be done only by registered users to prevent from spam or other possible attacks, etc.

So yes, to enable it for guests, it needs to be customized:

administrator\components\com_phocagallery\libraries\phocagallery\rate\ratecategory.php
administrator\components\com_phocagallery\libraries\phocagallery\rate\rateimage.php

plus each modules and controllers in frontend for each view.

Jan
If you find Phoca extensions useful, please support the project
mikikado
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Sep 2017, 21:13

Re: Enable rating photos to all visitors of frontend

Post by mikikado »

Thank you for your answer Jan.

Would be nice to know which line I have to change and how to change in:
administrator\components\com_phocagallery\libraries\phocagallery\rate\ratecategory.php
administrator\components\com_phocagallery\libraries\phocagallery\rate\rateimage.php

Thank you for your answer(s) in advance.

Michael
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Enable rating photos to all visitors of frontend

Post by Jan »

Hi, unfortunately, I didn't do such modification yet, so I cannot give any clue advice what all should be changed :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply