Hello/Hi/Greetings,
I am using community plugin By plg | Version 2.10.b for a Piwigo site. I want to switch off administrators from receiving emails, each time a user uploads photos.
I refered this forum question - https://piwigo.org/forum/viewtopic.php?id=17556 . and tried to implement the solution given by 'Penguintopia' at the bottom.
However it seems that the source code has been updated and the lines to comment are not available in the source code of the plugin at GitHub - https://github.com/plegall/Piwigo-community.
How do I solve this problem?
Plugin site:
https://piwigo.org/ext/extension_view.php?eid=303
Site environment detail:
Piwigo 2.10.2
PHP: 7.2.34
MySQL: 5.7.28
Graphics Library:
Piwigo URL: http://
Last edited by W@r@007 (2020-11-01 06:50:48)
Offline
The code is now in Piwigo-community/main.inc.php line 807.
Offline
Thank you for the solution. Its working now. :)
Offline
I wonder if there has been any movement on putting a setting into the plugin so this isn't necessary. For a long time people have been asking for this.
https://piwigo.org/forum/viewtopic.php?id=22663
https://piwigo.org/forum/viewtopic.php?id=21583
https://piwigo.org/forum/viewtopic.php?id=18499
https://piwigo.org/forum/viewtopic.php?id=17556
Offline
You seem to have fingers. Look through the Github reports.
Offline
executive wrote:
You seem to have fingers. Look through the Github reports.
I really do appreciate all your help, but comments like this don't promote a friendly community. If you don't want to give an answer then it is better to post nothing.
From the rules:
https://piwigo.org/forum/misc.php?action=rules
But a simple "do search!" is useless; better not to answer, and avoid getting annoyed with each other.
For me I don't mind, but for people who are new to using an internet forum for help, it's not very welcoming.
And I do apologize if I am not using the forum correctly. I appreciate all the help I have been given. It is a great reminder that software is not just software. It has to have a community of people behind if it is really going to succeed.
Last edited by piwent (2020-11-02 02:51:01)
Offline
I took the time to type out step by step how you can find the information you need. You literally asked me to do your hard work for you because you're too lazy. And now you have the gall to patronize me? You are really something.
Offline
executive wrote:
You seem to have fingers.
Sorry. This is the part I was reacting to. This is what I would call patronizing. I didn't think pointing out forum etiquette was considered patronizing.
executive wrote:
You literally asked me to do your hard work for you because you're too lazy. And now you have the gall to patronize me? You are really something.
I have no idea what a github report is. The bug reports? I am indeed lazy, but I wasn't expecting anyone else to do work for me. I don't think I even spoke to you in this thread before you mentioned the fact that I had fingers. I was just asking a question. I have spent hours reading though forum posts to try to figure things out. And telling me to read git reports doesn't seem to be telling me step by step what to do.
Anyway, I appreciate everyone's help. And I will try to understand what is happening on the git page.
Offline
Ok, I used my fingers (at least nine of them) and was able to track down this issue on the Community github repository (for others who are still learning, you have to actually open up the plugin's page on this site to see the link to github. Then you need to look at the issues tab).
The last message there was this:
plegall added this to the 2.9.b-beta milestone on May 16, 2018
I don't really know what that means in practice. That it has made it into core by now? Or does beta milestone just mean that was a hope? I'm guessing that it never made it in and is still just waiting to be taken up?
Offline
I thought I provided the steps in your cookies topic. Anyway, If anything I say is unclear, please ask and I'll be happy to elaborate.
plegall added this to the 2.9.b-beta milestone on May 16, 2018
Yes. This code was added back then:
if (count($to_notify) > 0 and (!isset($conf['community_notify_admins']) or $conf['community_notify_admins']))
which means that you can set the "community_notify_admins" variable in localfiles editor to disable the emails.
$conf['community_notify_admins'] = false;
or you can use Penguintopia's method.
There probably hasn't been enough interest to make this into a pretty UI option.
Offline
executive wrote:
Yes. This code was added back then:...
which means that you can set the "community_notify_admins" variable in localfiles editor to disable the emails.
Oh wow. Thanks! That's perfect. I don't think I ever would have found that on my own. It seems like this should be the preferred solution, eh? Because it won't be lost on a new version of Community plugin?
In all the reading through the forum I never came across this solution. If it's ok with the mods, I'd like to put that solution as a follow up to the posts where people have asked about it. I just did a search for "community_notify_admins" in the forums and there were no hits. So I'm guessing no one has posted about it before.
I also just discovered the link on the LocalFiles page that links to config_default.inc.php fle. Should that variable be listed in that file with a default so others can find it?
Offline
piwent wrote:
In all the reading through the forum I never came across this solution.
Right above the line "plegall added this to the 2.9.b-beta milestone on May 16, 2018" which you found, is another:
"plegall closed this in f09144b on May 16, 2018"
which means f09144b is the revision that resolved the issue. When you click on 'f09144b', it takes to the revised code.
That is the line I posted.
And above that plg writes:
"Before implementing #10 correctly with a smarter algorithm, I would like to make it possible to simply disable these notifications."
Which means it's just a temporary band-aid until the feature is fleshed out properly.
Before you start disseminating my idea as a solution, I advise you to test it. Because I didn't.
Last edited by executive (2020-11-03 12:02:58)
Offline