Enable rating photos to all visitors of frontend

Before you ask see the Phoca Gallery User Manual
mikikado
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Sep 2017, 21:13

Enable rating photos to all visitors of frontend

Post by mikikado » 13 Sep 2017, 21:19

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: 38707
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Enable rating photos to all visitors of frontend

Post by Jan » 14 Sep 2017, 13:19

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 » 16 Sep 2017, 14:57

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: 38707
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Enable rating photos to all visitors of frontend

Post by Jan » 19 Sep 2017, 23:16

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

Who is online

Users browsing this forum: No registered users and 3 guests