-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added an option to set the default notification method for users #1242
Added an option to set the default notification method for users #1242
Conversation
Though I expect this is unfinished, I'm setting it to "Ready for review" as I don't know how to proceed without reviews/advice. |
Richard (aka @geekwright), our Core Team leader, is in process of moving, and will be available in the latter part of August to take a look into this and approve it. I hope, you can be patient till then. |
Sure, this is a case of trying to cleanly implement something that was previously hacked into a production install some years ago (not by me!). This is my attempt at a cleaner replacement and is what said install is now running. I'm just looking to future-proof this by (hopefully) getting some equivalent functionality into Xoops core. I'm open to advice on cleaning this up further. But there's no rush, it's running fine and is (somewhat) less hacky than when I started 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated transifex
Thank you for this proposal. We will study the code in detail for a future version of XOOPS (after the release of XOOPS 2.5.11). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is missing is the creation of the entries for the config and options in install/page_tablesfill.php
Also, needs a check in the upgrade code that adds the config and options, if needed.
Both of these are the in the more obscure parts of Xoops.
I'll take care of it |
a73cb1b
to
84f07ff
Compare
was anybody else able to test it? I would like to commit it for RC3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!
This applies when a new user registers themselves. It also sets the default value for the notification method in the form for adding a new user from the users admin area.
I have not added an option to core Xoops before, so this may be completely the wrong way to go about it.
To support the code changes, I (manually) ran SQL equivalent to the following against my (Xoops) database:
I have little to no idea how these queries should be represented in the repository (if they should be at all). Please do let me know how I can get these queries into the repository and/or clean up this implementation (as necessary) - thanks!