![]() |
|
modification of rating-Plugin - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: modification of rating-Plugin (/thread-9664.html) Pages:
1
2
|
modification of rating-Plugin - the_griffin - 19-02-2012 Hi, I run Zenphoto 1.2.2 for a very long time successfully including a modification of the rating-plugin. This modification did a replacement of the user-IP by an user-ID (integer value) which I got from my MyBB-forum settings. This is necessary because our forum has several users with different user-IDs but the same IP. On the other side I don't want to get the same user being able to rate an image again and again by using a different IP. After upgrading to PHP5.3 I had to upgrade Zenphoto as well and tried to integrate my ID-modification for the rating plugin again. However, it seems that something at the rating plugin changed fundamentely. I have been trying to get rid of this problems by several weeks but didn't succeed. Therefore, I would be very glad to get any hints how to exchange the IP by an integer value (user-ID) again at the rating plugin. Thank you very much in advance. modification of rating-Plugin - acrylian - 20-02-2012 Sorry, 1.2.2 is so old that I don't even remember what was different back then. IF you want to us e the same users on your forum and on your Zenphoto install you should take a look at federated_logon plugin instead. modification of rating-Plugin - the_griffin - 20-02-2012 Hi acrylian, Thank you very much for your answer. I don't blame you for not remembering about this old version... I suppose that your proposed plugin might be too much for my purpose. The gallery can be accessed by logged in users only and upload of image and creating albums is restricted to admins. It was charming to avoid the user-IP and using their ID instead. Therefore I intend not to work with var_dump($ip) shows that the user-ID is existing but it seems that the update.php doesn't get it. Any help would really much appreciated as the gallery is really amazing and most welcome in my forum. modification of rating-Plugin - acrylian - 21-02-2012 Sorry, I cannot dig into this specific problem. The data is submitted via ajax so you might need to add something. modification of rating-Plugin - the_griffin - 21-02-2012 Thank you for your reply, acrylian. However, I think that ajax only submitts the stars rating value but not the IP. Or am I wrong? modification of rating-Plugin - acrylian - 21-02-2012 Haven't looked at it for quite some time but it does use the IP. It has however an option to hash the IP as storing purely it is considered a privacy issue in countries of the EU. So maybe you have enabled that. modification of rating-Plugin - the_griffin - 21-02-2012 When using the IP, what is not my intention, the database shows this entry: Nevertheless, is the IP-hash done by zenphoto and if yes, where could I find the setting for this? modification of rating-Plugin - sbillard - 21-02-2012 You want the The latter is fixed in the nightly build tonight. Of course, this will not help in the situation you describe as it simply hashes the IP address so that the paranoid EU cannot complain. You will need to replace the modification of rating-Plugin - the_griffin - 22-02-2012 I am not sure what you mean with "Disguise IP", sorry. As described above, replacing the getUserIP() function in the rating plugin was my original intention and the way I how I did it in the 1.2.2 zenphoto version. I inlude the global variables from the MyBB software to be able to read the uid of the user by using I tried to use modification of rating-Plugin - sbillard - 23-02-2012 Well, as I said the Replacing the |