Commit Graph

1535 Commits

Author SHA1 Message Date
Shawn Kwang 2f8d96cc70 Drupal: Fixed bugs found by review and Scrutinizer. 2018-06-21 14:55:29 -05:00
Shawn Kwang 9c209edacf Drupal: Modified terms of use logic so password resets are not sent to TOU form. 2018-06-21 11:14:53 -05:00
Shawn Kwang 30a7f48520 Drupal: Modified RPC to take into account previous email addresses.
create_account RPC changed.
2018-06-21 11:14:53 -05:00
Shawn Kwang 68396248e3 Drupal: Some misc fixes and changes, mostly to wording and status messages. 2018-06-21 11:14:50 -05:00
Shawn Kwang 300acc3a69 Drupal: Modified boincuser_delete module delete user form.
User may not delete account until seven days after an email change. Additionally, delete account form has a link to the email/password change form.
2018-06-21 09:26:07 -05:00
Shawn Kwang 09efad55c7 Drupal: Add recover email form and functionality.
User may recovert previous email by using a form. This will revert the user's email but s/he must set a new password first.
2018-06-21 09:26:06 -05:00
Shawn Kwang 2c6f081fa9 Drupal: New email change user-experience/flow.
When changing an email, use receives notification at new and old email address.
Add checks for previous email address.
Also add check for boincuser_delete account to terms of use form.
Matches UX from upstream: https://github.com/BOINC/boinc/issues/2451

Resolves: https://dev.gridrepublic.org/browse/DBOINCP-436

Also see:
* https://github.com/BOINC/boinc/pull/2500
* https://boinc.berkeley.edu/trac/wiki/EmailChangeNotification
2018-06-21 09:26:06 -05:00
tristanolive 4a6b7c8c41
Merge pull request #2558 from drshawnkwang/drupal_fix-termsofuse-addbts
Drupal: Added bts() functions to terms of use forms.
2018-06-15 12:46:38 -04:00
Shawn Kwang 680a98fdf5 Drupal: Changed from boinc resource to project resource.
bts() should send strings to project resource as the terms of use and related text is project-specific.
2018-06-14 11:19:04 -05:00
Shawn Kwang 1a88e06201 Drupal: Added bts() functions to terms of use forms.
Part of https://dev.gridrepublic.org/browse/DBOINCP-428
2018-06-08 11:10:47 -05:00
Shawn Kwang 987b51123b
Merge branch 'master' into drupal_feature-existinguser-tou 2018-06-08 09:14:50 -05:00
tristanolive a310795ecb
Merge pull request #2539 from drshawnkwang/drupal_fix_termsofuse-wording
Drupal: Changed wording of terms-of-use page.
2018-06-08 09:56:55 -04:00
tristanolive d80e38746a
Merge pull request #2555 from drshawnkwang/drupal_fix-delete-expired-tokens
Drupal: Delete expired tokens in the token table.
2018-06-08 09:46:41 -04:00
tristanolive 0563807e10
Merge pull request #2554 from drshawnkwang/drupal_fix-teampanelbug
Drupal: Fixed bug in team panel.
2018-06-08 09:45:58 -04:00
tristanolive 3ed61729cf
Merge pull request #2553 from drshawnkwang/drupal_fix-refactor-checkhash
Drupal: Refactor password hash check, uses upstream function
2018-06-08 09:45:41 -04:00
tristanolive 93bce09a0d
Merge pull request #2543 from drshawnkwang/drupal_feature-getprojectconfig-override-option
Drupal: Make the get_project_config terms of use overridable.
2018-06-08 09:44:06 -04:00
Shawn Kwang aa249fea40 Drupal: Delete expired tokens in the token table.
Part of https://dev.gridrepublic.org/browse/DBOINCP-429
2018-06-07 16:26:16 -05:00
Shawn Kwang 21bfc9217a Drupal: Fixed bug in team panel.
When viewing user who was not a member of a team, the team panel showed 'Join a Team'. Added code to remove the team panel on users other than self-user's page.

Part of https://dev.gridrepublic.org/browse/DBOINCP-417
2018-06-07 16:22:05 -05:00
Shawn Kwang 2bf2c10117 Drupal: Refactor password hash check, uses upstream function now available.
Part of https://dev.gridrepublic.org/browse/DBOINCP-425
2018-06-07 16:10:49 -05:00
Shawn Kwang 849d821325 Drupal: Bug fix in user login and terms of use workflow.
Fixes bug where password reset would not go to form where user can reset password.

https://dev.gridrepublic.org/browse/DBOINCP-448
2018-06-06 14:27:21 -05:00
Shawn Kwang 3a0c42f1b3 Drupal: Fixed typo in description. 2018-06-01 15:26:10 -05:00
Shawn Kwang cf669b0eac Drupal: Add admin option to enable/disable existing users from being forced to agree to the terms-of-use when the login.
Part of https://dev.gridrepublic.org/browse/DBOINCP-428
2018-05-31 14:12:31 -05:00
Shawn Kwang ca26c55fbf Drupal: Fixed wrong logic, terms of use file may be empty. 2018-05-31 13:31:26 -05:00
Shawn Kwang e24bb7d557 Drupal: Make the get_project_config terms of use overridable.
Part of: https://dev.gridrepublic.org/browse/DBOINCP-428
2018-05-31 13:27:31 -05:00
Shawn Kwang 94cb6710f5 Drupal: Fixed additional strings, removing the words 'opt in' or 'opt-in'. Replaced with agreement to terms of use. 2018-05-31 10:38:10 -05:00
Shawn Kwang 840cdd4153 Drupal: Changed wording of terms-of-use page.
Part of: https://dev.gridrepublic.org/browse/DBOINCP-428
2018-05-29 09:32:47 -05:00
Oliver Bock 3ba7724d69
Merge pull request #2534 from drshawnkwang/drupal_fix-deleteuser-text
Drupal: Changed wording on delete page and email.
2018-05-28 14:39:08 +02:00
Oliver Bock 030b8f71f9
Merge pull request #2533 from drshawnkwang/drupal_fix-addpaths-ignore-optin
Drupal: Added more paths to ignore opt-in page.
2018-05-28 09:38:40 +02:00
Shawn Kwang 14b0766bb1 Drupal: Changed wording on delete page and email.
https://dev.gridrepublic.org/browse/DBOINCP-429
2018-05-25 12:26:37 -05:00
Shawn Kwang a8b28403ab Drupal: Added more paths to ignore opt-in page.
part of: https://dev.gridrepublic.org/browse/DBOINCP-428
2018-05-25 09:59:37 -05:00
Shawn Kwang 27d50496cf Drupal: Modified join page to change instructions based on whether or not user registration is enabled.
part of: https://dev.gridrepublic.org/browse/DBOINCP-428
2018-05-25 09:19:56 -05:00
tristanolive fb9477eeef
Merge pull request #2480 from drshawnkwang/drupal_feature-user-Webregistration
Drupal: User Opt-in consent and Web registration
2018-05-24 10:01:48 -04:00
Shawn Kwang e72aa0176b Drupal: Add cron jobs to delete expired records from tokens, user_deleted, and host_deleted tables, project database. 2018-05-18 10:38:16 -05:00
Shawn Kwang c73d764462 Drupal: Fixed misc Scrutinizer issues. 2018-05-18 09:18:37 -05:00
Shawn Kwang f7af0674a0 Drupal: removed debugging statement. 2018-05-18 08:57:56 -05:00
Shawn Kwang 071d64409c Drupal: Modified messages to be more user friendly. 2018-05-18 08:49:35 -05:00
Shawn Kwang 2cff2a2eaf Drupal: Removed old code.
Also added some bts() functions.
Removed grace-period code, no longer used.
2018-05-18 08:49:35 -05:00
Shawn Kwang 599e7d5588 Drupal: Add admin interface to allow admin to delete user. 2018-05-18 08:49:34 -05:00
Shawn Kwang 677a8a7ec8 Drupal: Modified boincuser delete function to delete record in boincuser table.
Also modified some watchdog messages.
2018-05-18 08:49:34 -05:00
Shawn Kwang cba68a56a6 Drupal: Add front-end code to for user delete.
Changed user delete form. It now sends a token in an email.
Use rconfirms deletion, and the account is now deleted (immediately).

https://dev.gridrepublic.org/browse/DBOINCP-429
2018-05-18 08:49:34 -05:00
Shawn Kwang 1804163ae3 Drupal: Fix bug in Font Awesome CSS.
Part of https://dev.gridrepublic.org/browse/DBOINCP-439
2018-05-17 09:22:31 -05:00
tristanolive 1a3f1d78b0
Merge pull request #2516 from drshawnkwang/drupal_update-fontawesome
Drupal: Update fontawesome library
2018-05-17 09:38:03 -04:00
Shawn Kwang 2a6bf3b7d4 Drupal: Upgrade of Font Awesome requires minor changes to theme and css. 2018-05-14 16:33:30 -05:00
Shawn Kwang 75b4614121 Drupal: Updated Font Awesome
Updated Font Awesome to version 5.0.13.

https://dev.gridrepublic.org/browse/DBOINCP-439
2018-05-14 16:33:30 -05:00
Shawn Kwang 4e7b70deae
Merge branch 'master' into drupal_feature-user-Webregistration 2018-05-14 08:44:22 -05:00
Shawn Kwang ba7c677e10 Drupal: Add font-awesome 'link' icon to all external links.
https://dev.gridrepublic.org/browse/DBOINCP-439
2018-05-09 16:04:38 -05:00
Shawn Kwang 753023618c Drupal: modify create_account RPC
Removed code from create_account RPC, now account creation is done in the block of code in hook_user, case 'insert'.
2018-05-09 13:38:58 -05:00
Shawn Kwang db2f1448a8 Drupal: Updated documentation, no functional changes. 2018-05-09 12:44:23 -05:00
Shawn Kwang 7239632b15 Drupal: Fixed bugs
Removed profileInfo which is not used.
Fixed bug: now user registration also consents to terms of use, if present.
Add check for duplicate Drupal usernames, based on BOINC username.
2018-05-09 12:44:15 -05:00
Shawn Kwang 6307e4e6af Drupal: Cherry pick commit b9510b9
Resolves merge conflict for boincuser.module
2018-05-09 12:44:10 -05:00
tristanolive 3d11607839
Merge pull request #2478 from drshawnkwang/drupal_feature-newpasswdhash
Drupal: Changed password hash algorithm to match upstream changes.
2018-05-09 09:33:51 -04:00
Shawn Kwang d91f8857df Drupal: Modified get_project_info RPC
Removed custom get_project_info RPC. Replaced with a version that changes the upstream BOINC RPC output.

The RPC will return the Drupal variable for the terms_of_use, and ignore the terms_of_use.txt file in the project directory.
2018-04-26 13:51:31 -05:00
Shawn Kwang aca555a3f7 Drupal: Applied patch SA-CORE-2018-004 for filefield module.
https://www.drupal.org/sa-core-2018-004
https://www.drupal.org/project/d6lts/issues/2965601
2018-04-25 12:26:40 -05:00
Shawn Kwang a61b5ef98d Drupal: Moved module filefield into Drupal-BOINC codebase, contrib/ directory.
https://dev.gridrepublic.org/browse/DBOINCP-443
2018-04-25 12:26:30 -05:00
Shawn Kwang 817b0c017c Drupal: Removed code block.
I do not believe this block of code is used. When I go to create a user, hook_user does not reach this block of code. There is no 'user_register' in 'validation_source'.
2018-04-25 11:00:19 -05:00
Shawn Kwang b75c368c4d Drupal: Fixed bug found by Scrutinizer. 2018-04-25 10:59:29 -05:00
Shawn Kwang a07285d894 Drupal: Fixed bugs found by Scrutinizer.
Shuffled code around (again) for user registration validation.
Master_url was not set.
2018-04-24 13:24:25 -05:00
Shawn Kwang cedacb30bc Drupal: Added login to allow user to login if no terms of use exists. 2018-04-23 15:42:05 -05:00
Shawn Kwang 3b7f45e69d Drupal: Customized get_project_config.pgp RPC
Added Job/Project keyword XML to admin pages to include in above RPC.
Change create_account RPC to consent to opt-in if terms-of-use is present.
2018-04-23 15:42:05 -05:00
Shawn Kwang af1a24c2b0 Drupal: Force users to see terms of use page to opt-in.
New terms of use form that user must consent to after logging in.
User cannot navigate away.
Exceptions are logout and delete user.
2018-04-23 15:41:06 -05:00
Shawn Kwang aaf3e2f126 Drupal: Added custom field to boincuser table.
Field named privacy_consent_dt keeps track of when user consents to terms-of-use.
2018-04-23 15:39:23 -05:00
Shawn Kwang b9510b9364 Drupal: Changed password hash algorithm to match upstream changes.
https://dev.gridrepublic.org/browse/DBOINCP-425
2018-04-23 14:16:43 -05:00
Shawn Kwang 3bb3b05b87 Drupal: Changed user registration form to include new legal text block.
To register for the site, the user must opt-in.
Also added CSS theme to user registration page.
2018-04-23 13:45:34 -05:00
Shawn Kwang 8e7173819b Drupal: Added admin option to disable the create_account.php RPC.
Also added text to be displayed on user registration page.
2018-04-23 13:45:34 -05:00
Shawn Kwang 428313a1d1 Drupal: Changed user registration validation.
User registration now is validated correctly. Users may be created using the Web interface.
2018-04-23 13:45:33 -05:00
Shawn Kwang 6b34cf714b Drupal: Removed old code for user registration.
Old code does not validate user when registering. Removed code.

https://dev.gridrepublic.org/browse/DBOINCP-428
2018-04-23 13:45:33 -05:00
Shawn Kwang e342235bf8 Drupal: Changed 'user' include to 'user_util'.
This change is due to : e712c7af9a
2018-04-20 15:11:41 -05:00
tristanolive 9aba396f78
Merge pull request #2424 from drshawnkwang/drupal_fix-useremailtemplates
Drupal: Changed email templates for user registration, activation
2018-04-19 00:59:16 -04:00
Shawn Kwang 2066c74d8c Drupal: Changed saluation, removed email address. 2018-04-12 12:54:30 -05:00
tristanolive f26963e7d8
Merge pull request #2450 from drshawnkwang/drupal_feature-showhostsfalse
Drupal: Changed create account to set show_hosts to false.
2018-04-12 09:33:10 -04:00
Shawn Kwang 7b1c077f5c Drupal: Changed create account to set show_hosts to false.
Also added help text to Privacy form.

https://dev.gridrepublic.org/browse/DBOINCP-430
2018-04-05 08:27:32 -05:00
Shawn Kwang df3fcae9ab Drupal: Fix bug when there is no language, a default flag should appear.
https://dev.gridrepublic.org/browse/DBOINCP-433
2018-04-04 10:26:56 -05:00
Shawn Kwang d0b0031875 Drupal: Altered wording to be more clear. 2018-03-29 15:45:27 -05:00
tristanolive 133abaadf4
Merge pull request #2425 from drshawnkwang/drupal_feature_userroles-forums
Drupal: Added user roles to forum user info, below username and stats.
2018-03-29 10:05:20 -04:00
Shawn Kwang 3ada381c7e Drupal: Added user roles to forum user info, below username and stats.
https://dev.gridrepublic.org/browse/DBOINCP-253
2018-03-27 11:55:16 -05:00
Shawn Kwang 19bc4def77 Drupal: Changed email templates for user registration, activation, password reset, etc.
https://dev.gridrepublic.org/browse/DBOINCP-431
2018-03-27 11:51:30 -05:00
Shawn Kwang ba4fd883ee Drupal: Changed db_set_active to use proper database name.
part of https://dev.gridrepublic.org/browse/DBOINC-60
2018-03-27 10:06:24 -05:00
tristanolive 20b634b0fd
Merge pull request #2408 from drshawnkwang/drupal_fix-prefxmltrim
Drupal: Trim strings in project-specific XML to help translators.
2018-03-15 10:49:40 -04:00
Shawn Kwang 9a7627c9e8 Drupal: Trim strings in project-specific XML to help translators.
Add custom trim function to code where the strings in the project-specific XML are aded to translation table(s).
Custom function removes whitespace from beginning and end of each line, separated by newline.

https://dev.gridrepublic.org/browse/DBOINCP-418
2018-03-14 10:27:51 -05:00
Shawn Kwang e4414e1e90 Drupal: Fixed minor scrutinizer issues in PHP. 2018-03-14 09:06:30 -05:00
Shawn Kwang dd4a0e969e Drupal: Added misc help text. 2018-03-14 08:25:06 -05:00
Shawn Kwang 5f2d678c1f Drupal: Fixed bugs.
Fixed link to teams, use relative URL.
Added link in message to site maintenance admin page.
2018-03-14 08:12:43 -05:00
Shawn Kwang 2686231299 Drupal: Add boincteam utility to delete spammer teams.
Adds an admin page where the admin may select and delete teams that meet a certain SPAMMER criteria. Deletion is handled through drupal batch operation.

https://dev.gridrepublic.org/browse/DBOINCP-364
2018-03-14 08:12:43 -05:00
Oliver Bock c17e730d78 Drupal: updated Strongarm variable to reflect new HTMLPurifier version
Regression/missing in 9de2db9a
2018-03-09 08:20:28 -06:00
tristanolive f95ebc5e27
Merge pull request #2397 from drshawnkwang/drupal_update-htmlpurifierlibrary
Drupal: updated HTMLpurifier library to version 4.10.0.
2018-03-08 10:03:34 -05:00
tristanolive 64f75f7154
Merge pull request #2400 from drshawnkwang/drupal_fix-rules-updates
Drupal: Rules updates
2018-03-08 09:41:34 -05:00
Shawn Kwang d298973366 Drupal: Added additional text to email message. 2018-03-07 13:49:17 -06:00
Shawn Kwang 267a83572e Drupal: Added rule for forum topic moving. 2018-03-07 13:49:16 -06:00
Shawn Kwang 8fcbe781db Drupal: Modified some name/title strings to be more clear and concise. 2018-03-07 13:49:16 -06:00
Shawn Kwang f6d7688437 Drupal: Fixed bug where wrong 'parent' variable was used. 2018-03-07 13:49:16 -06:00
Shawn Kwang e0190c8876 Drupal: Added rule when topic is moved to a separate forum. Edited rule 'edit' notification will only trigger when body text has changed. 2018-03-07 13:49:16 -06:00
Shawn Kwang fdfc2ce848 Drupal: Added rules to send separate notifications for lock, sticky, and edit (not lock or sticky) actions. 2018-03-07 13:49:15 -06:00
Shawn Kwang 03d8d99076 Drupal: Added line breaks to rules email messages.
https://dev.gridrepublic.org/browse/DBOINCP-298
2018-03-07 13:49:15 -06:00
Shawn Kwang eaffc603a4 Drupal: View boinc_users to use boinc_ro replica DB. Some boinc_teams sub-views set to use replica DB as well, on a title-by-title basis. 2018-03-06 12:28:13 -06:00
Shawn Kwang 9de2db9a0a Drupal: updated HTMLpurifier library to version 4.10.0.
https://dev.gridrepublic.org/browse/DBOINCP-424
2018-03-06 12:04:08 -06:00
tristanolive f3692261cd
Merge pull request #2295 from drshawnkwang/drupal_feature-rules-notifymoderators
Drupal: Add additional rules to notify moderators when forum related actions occur.
2018-02-15 10:08:44 -05:00
tristanolive 868ae51411
Merge pull request #2270 from drshawnkwang/drupal_feature-userprivacy-1
Drupal: Allow users to ignore private messages.
2018-02-15 10:02:37 -05:00
tristanolive 221e167429
Merge pull request #2220 from drshawnkwang/drupal_feature-readonly-boincdb
Drupal: Allow for use of a read-only replica BOINC project database
2018-02-15 09:58:13 -05:00
tristanolive 102c8188d4
Merge pull request #2206 from drshawnkwang/drupal_feature-deleteuser
Drupal: Delete own user account.
2018-02-15 09:49:19 -05:00
Shawn Kwang 3b6faf8514 Drupal: Fixed misc. typo in file. 2018-02-07 14:43:22 -06:00
Shawn Kwang 202ff91b90 Drupal: Fix rebase manually. 2018-02-07 13:45:33 -06:00
Shawn Kwang a57384a27c Drupal: Return database queries to use boinc_rw datbase for any query not from tables: result, workunit, app, etc., tables associated with boincwork. 2018-02-07 13:43:05 -06:00
Shawn Kwang a45c1808a7 Drupal: Renamed boinc_read to boinc_ro. 2018-02-07 13:43:05 -06:00
Shawn Kwang b903e21166 Drupal: In boincimport, changed name of BOINC project database to boinc_rw. 2018-02-07 13:41:21 -06:00
Shawn Kwang 4129e09295 Druapl: Changed Drupal Views to use boinc_read database. 2018-02-07 13:41:21 -06:00
Shawn Kwang 17a46d7252 Drupal: Modified privatemsg module to use boinc_read database. 2018-02-07 13:41:21 -06:00
Shawn Kwang 445f0586d9 Drupal: Modified db_set_active() to use boinc_read for SELECT statements, and boinc_rw for INSERT, UPDATE, and DELETE statements. 2018-02-07 13:41:21 -06:00
Shawn Kwang 7824b82302 Drupal: Rename boinc to boinc_rw, and add boinc_read to $db_url.
If admin does not define boinc_read, boinc_rw is used in its place. In this way the admin may define a single database for both read+write queries, or two different databases for read & write operations.
2018-02-07 13:38:42 -06:00
Shawn Kwang e201d18f3c Drupal: Add settings.local.php to main settings.php file. Added local settings to gitignore. 2018-02-07 13:38:42 -06:00
Shawn Kwang bea2a2f397 Drupal: Fixed join page text for boinc users.
https://dev.gridrepublic.org/browse/DBOINCP-420
2018-02-01 10:06:44 -06:00
Shawn Kwang 9c485f3e73 Drupal: Fixed bugs where hide/unhide forum topic would be triggered. Now the node content must not change for these to be triggered. 2018-01-23 15:06:43 -06:00
Shawn Kwang 24d5b29f2f Drupal: Changed order and minor text edits to rules. No functional changes. 2018-01-23 14:35:33 -06:00
Shawn Kwang 062faf8210 Drupal: Modified rules so there will not be multiple rules triggered by a single comment or [team] forum topic edit event. 2018-01-23 14:12:09 -06:00
Shawn Kwang dff81881d2 Drupal: Both forum topics and team forum topics now trigger the moderator emails. 2018-01-11 09:02:39 -06:00
Shawn Kwang 9f152b988d Drupal: Added additional rules for moderator notification.
Added rules to notify moderator mailing list when a comment is:
* deleted by an admin
* editted by someone other than the original author
* hidden/unhidden by someone other than the original author
* converted to a new forum topic.

Also notify when a forum topic is:
* editted by a moderator or admin
* hidden/unhidden by moderator or admin
2018-01-09 15:04:52 -06:00
Shawn Kwang 5e844895cb Drupal: Added new rules actions for BOINC core.
Added rules invocation to comment control, such as convert a comment, in order to trigger a rule.

https://dev.gridrepublic.org/browser/DBOINCP-298
2018-01-09 13:56:06 -06:00
Shawn Kwang c1fcbdbd79 Drupal: Fixed issues found by Scrutinizer. 2017-12-21 09:34:47 -06:00
Shawn Kwang bb829b9eb3 Drupal: Scrutinizer found misc issues. Fixed them.
Duplicate code found, two functions: one in boinc team and one in boincuser to autocomplete a form field. Deleted boincteam and will retain boincuser version.
2017-12-21 09:24:04 -06:00
Shawn Kwang a7010ec15b Drupal: Add Join a Team link to account dashboard.
https://dev.gridrepublic.org/browse/DBOINCP-417
2017-12-21 09:05:46 -06:00
Shawn Kwang aa19b87410 Drupal: Fixed aethetic styles of privacy preferences form.
Added CSS to form CSS to adjust spacing.
2017-12-08 14:21:55 -06:00
Shawn Kwang 3f6c9beaec Drupal: Updated private message template and CSS to fix layout bugs. 2017-12-08 14:19:40 -06:00
Shawn Kwang bd9f29a0cf Drupal: Modified boinc theme for ignore user functionality.
Private messages now have delete and ignore user links.
User profile has ignore user link. CSS changes for private message view.
Modified user links on user account/profile page, new buttons when viewed by others.
2017-12-08 14:18:56 -06:00
Shawn Kwang 5f572b55c7 Drupal: Fixed privacy form, made it prettier.
Added bts() functions for strings.
2017-12-08 14:18:38 -06:00
Shawn Kwang 97c6062356 Drupal: Added ignore user links to private messages.
Removed private message view alter hook from pm_block_user module.
2017-12-05 12:02:52 -06:00
Shawn Kwang 42faa9b6da Drupal: Fixed bugs in ignore_user code.
Added a drupal_set_message() when adding user by uid.
2017-12-05 09:42:14 -06:00
Shawn Kwang 4c73aac251 Drupal: Modified hook_menu_alter to alter existing menu paths.
Removed menu paths for ignore_user/add & ignore_user/remove, as well as messages/block.
Redirect ignore_user/list to account privacy preferences.
2017-11-29 14:28:19 -06:00
Shawn Kwang 6e029af9f4 Drupal: Combined ignore_user and pm_block_user module functionality.
Added functionality to the boincwork ignore_user functions to also block users (whom you ignore) from sending you a PM.
2017-11-29 13:56:02 -06:00
Shawn Kwang d051c258c6 Drupal: Changed boinc theme to use custom function to generate ignore_user link.
ignore user link is generated in theme preprocessing. The function is a modified copy of ignore_user_link() from the ignore_user function.
2017-11-28 15:17:13 -06:00
Shawn Kwang c332a5d741 Drupal: Modified boincwork with privacy-related ignore_user functions.
Moved some functionality of ignore user to the boincwork module, specifically adding and ignoring users.
2017-11-28 12:21:14 -06:00
Shawn Kwang dc3caa1add Drupal: Added ignore user form elements to privacy preferences.
Add table for ignored users as well as autocomplete search box for usernames to add new users. No add user functionality in submit button.
2017-11-21 14:01:24 -06:00
Shawn Kwang b3acb01962 Drupal: Added user autocomplete function to each for boincusers. 2017-11-21 14:01:02 -06:00
Shawn Kwang d07f6cde6d Drupal: Removed ignore users from Community Preferences, will be moved elsewhere.
https://dev.gridrepublic.org/browse/DBOINCP-338
2017-11-21 11:58:55 -06:00
Shawn Kwang f7f5db1da7 Drupal: Unbanned users set role 'community member'.
Fixed bug returning a previously banned user to the role 'community member'.

https://dev.gridrepublic.org/browse/DBOINCP-416
2017-11-21 11:32:49 -06:00
Shawn Kwang 417a527325 Drupal: Changed permissions so only community members may write private messages, read and delete are still allowed for any authenticated user.
https://dev.gridrepublic.org/browse/DBOINCP-415
2017-11-15 14:13:38 -06:00
tristanolive 147842c330
Merge pull request #2233 from drshawnkwang/drupal_fix-privatemsg-perm-1
Drupal: Changed permissions of privatemsg module to not allow …
2017-11-13 17:45:25 -05:00
Shawn Kwang fe6831dadf Drupal: Changed permissions of privatemsg module to not allows 'authenticated user' access to the settings of private messages.
Part of https://dev.gridrepublic.org/browse/DBOINCP-415
2017-11-13 10:59:56 -06:00
Shawn Kwang 90d3302219 Drupal: Fixed bug in autocomplete function.
Part of https://dev.gridrepublic.org/browse/DBOINCP-328
2017-11-13 10:14:18 -06:00
Tristan Olive 94984795e4 Drupal: Minor reorganization of team management panel
* Move code that constructs a link to PM all team members inside of the module_exists() block, since privatemsg_get_link() will fail if the module is not enabled
* Make "View member list" a link rather than a label and move it down in the list for asthetic reasons
* Move the "Edit team info" link up in the list, since it is more commonly used than "Change founder", "Remove team", etc.
* Remove the "Send member private message" column from assorted team views, since it is not relevant in most contexts and the functionality is easily accessed via the user profile page otherwise
2017-11-09 12:38:44 -05:00
Tristan Olive bd78271dd1 Merge branch 'drupal_feature-team-pm-all-remove-emails' of https://github.com/drshawnkwang/boinc into drshawnkwang-drupal_feature-team-pm-all-remove-emails 2017-11-09 09:59:24 -05:00
Shawn Kwang ef521b6de2 Drupal: Removed the unused hook for the text-based members' email list from boincteam_hook.
Minor text changes to reflect that emails are no longer available to team founders.
2017-11-08 11:06:31 -06:00
Tristan Olive 6b01fb3d2d Drupal: Handle team_email_list RPC SQL error cases
* Remove explicit "drupal" database selector as it is already handled by db_set_active(); this broke the query on a system with a different name for the Drupal database
* Handle the case where a team has no members (or an invalid team ID is given); MySQL IN() cannot be empty or it will generate a SQL error

https://dev.gridrepublic.org/browse/DBOINCP-362
2017-11-08 10:52:14 -05:00
Tristan Olive dc21f1f9de Merge branch 'drupal_fix-team-email-rpc' of https://github.com/drshawnkwang/boinc into drshawnkwang-drupal_fix-team-email-rpc 2017-11-08 10:05:07 -05:00
Shawn Kwang a472642804 Drupal: Updated boinc_standard Feature. 2017-11-07 14:19:21 -06:00
Shawn Kwang 8b0bba1caf Drupal: Added message to use when logging (back) in and notifying that the account deletion has been canceled. 2017-11-07 14:14:57 -06:00
Shawn Kwang e8a4cc65d1 Drupal: Don't delete row user's in drupal.boincuser table.
Changed button layout.
Added clearing of user.signature in BOINC database.
2017-11-07 13:54:30 -06:00
Shawn Kwang 56a65753e6 Drupal: Removed email addresses from displayed team information. Replaced with PM team members.
Removed email addresses from team Views. Replaced with link to send the member a private message.
Added ability for team founder/admin to send a private message to all team members.

https://dev.gridrepublic.org/browse/DBOINCP-328
2017-11-06 10:40:35 -06:00
tristanolive 46e16206af
Merge pull request #2192 from drshawnkwang/drupal_fix-accountfinish-linknewwindow
Drupal: Changed moderation link to open in a new window (tab).
2017-11-02 11:02:05 -04:00
tristanolive f4a402a14a
Merge pull request #2186 from drshawnkwang/drupal_fix-privatemsg-delimiterbug-3
Drupal: Reverted code to use a comma as separated between BOINC username
2017-11-02 10:57:31 -04:00
Tristan Olive 09caf25b46 Drupal: Remove debugging code from delete profile confirmation form 2017-11-02 10:32:32 -04:00
Shawn Kwang bcb1c5af98 Drupal: Fixed minor PHP issue for Scrutinizer: needed to declare as an array. 2017-11-02 10:32:32 -04:00
Shawn Kwang e38debe68d Drupal: Added button styling to clear profile page. 2017-11-02 10:32:32 -04:00
Shawn Kwang 0fcc0337cb Drupal: Modified boinccode to present a custom node deletion page to user when clearing his/her user profile. 2017-11-02 10:32:32 -04:00
Shawn Kwang cdef592eae Drupal: Allow users to delete their own user profiles.
https://dev.gridrepublic.org/browse/DBOINCP-286
2017-11-02 10:32:32 -04:00
Shawn Kwang b97753de35 Drupal: Fixed bugs found by Scrutinizer.
Scrutinizer found some PHP bugs and minor issues that were fixed, example: misnamed variable.
2017-11-02 08:15:23 -05:00
Shawn Kwang 88f04fe117 Drupal: Fixed minor PHP issue for Scrutinizer: declare $xml as array. 2017-11-02 08:10:47 -05:00
Shawn Kwang 80a222f80d Drupal: Updated boinc_standard Feature with new delete own account permission. 2017-11-01 13:51:16 -05:00
Shawn Kwang c96761b54c Drupal: Modified function to only give one option: delete user.
Commented out the disable user functionality. This can be re-instated in the future.
Delete user does not delete any rows from BOINC database. Instead the user table is modified to erase personal data, e.g., name, email, etc. The record of the user stays.
2017-11-01 13:45:45 -05:00
Shawn Kwang d10f778957 Drupal: Modified how team users' data are queried.
Replaced user_load() with separate queries into BOINC and drupal databases to build team member information.
2017-11-01 10:15:24 -05:00
Shawn Kwang aafc26d217 Drupal: Changed boincuser module to support new boincuser_delete module.
Added new fields to boincuser database table, installed in the boincuser module.
2017-11-01 08:28:15 -05:00
Shawn Kwang e15105deaf Drupal: Add module boincuser_delete which adds functionality to delete both Drupal and BOINC users.
https://dev.gridrepublic.org/browse/DBOINCP-410
2017-11-01 08:28:15 -05:00
Shawn Kwang 5f768bfcb5 Drupal: Removed emails returned from this RPC.
https://dev.gridrepublic.org/browse/DBOINCP-362
And
https://dev.gridrepublic.org/browse/DBOINCP-328
2017-11-01 08:27:53 -05:00
Shawn Kwang 49d5550e3c Drupal: Changed moderation link to open in a new window (tab).
https://dev.gridrepublic.org/browse/DBOINCP-395
2017-10-26 10:58:40 -05:00
Shawn Kwang dbd7c7707d Drupal: Added space between username and BOINC id in autocomplete box. 2017-10-26 10:07:57 -05:00
Shawn Kwang 6ec195ca8a Drupal: Reverted code to use a comma as separated between BOINC usernames.
https://dev.gridrepublic.org/browse/DBOINCP-411
2017-10-24 14:21:02 -05:00
tristanolive f0c38d5d60 Merge pull request #2173 from drshawnkwang/drupal_feature-solrhelp-date
Drupal: Add Search Help block.
2017-10-19 22:58:23 -04:00
Tristan Olive c8e53fd035 Merge branch 'drshawnkwang-drupal_feature-addpages-generator' 2017-10-19 22:43:46 -04:00
Tristan Olive 022a825e49 Drupal: Fix wording in page generator help message 2017-10-19 22:40:06 -04:00
tristanolive c5707ec3c9 Merge pull request #2169 from drshawnkwang/drupal_fix-privatemsg-delimiterbug-2
Drupal: Delimiter changed to space.

This is being merged as an improvement to using commas, which may conflict with usernames and cause unexpected behavior (sending to the wrong user, etc.). However, further work is needed for usability; it's quite confusing visually that non-breaking spaces are in user names and regular spaces are used as the delimiter, since they look the same.
2017-10-19 22:10:32 -04:00
Shawn Kwang 0d4647c042 Drupal: Addd bts() function calls to text.
Added documentation, removed unused function.
2017-10-17 09:37:31 -05:00
Shawn Kwang 3ca75f6970 Drupal: Added block settings to Feature global_search_solr. 2017-10-17 09:37:30 -05:00
Shawn Kwang b0c4a1b97b Drupal: Added Search Help block to search pages.
Search Help block added via a separate modue: boinc_solr_search, which contains customiations to the solr search functionality for BOINC.
Also modified date format to use consistent date.

https://dev.gridrepublic.org/browse/DBOINCP-331
2017-10-17 09:37:30 -05:00
Shawn Kwang 1cbeb31d65 Drupal: Delimiter changed to space.
BOINC usernames may contain any character, including commas. Now when the BOINC username is loaded, spaces are replaced by UTF-8 hex code: "\xc2\xa0", non-breaking space. This allows the code to use a regular space as a delimiter between usernames.

https://dev.gridrepublic.org/browse/DBOINCP-411
part of https://dev.gridrepublic.org/browse/DBOINCP-254
2017-10-16 12:09:25 -05:00
Shawn Kwang 5934c5388e Drupal: Added moderation and rules and policies page/node to the BOINC standard page generator.
https://dev.gridrepublic.org/browse/DBOINCP-401
2017-10-16 12:08:50 -05:00
Shawn Kwang 1de898a417 Drupal: Fix moderation link on account finish landing page.
https://dev.gridrepublic.org/browse/DBOINCP-395
2017-10-16 11:49:46 -05:00
Shawn Kwang 63e325dac9 Drupal: Revert commits:
09b619bb97
62b64347f7
3fead8d9a5
c3d8d4dfcf

These four commits are associated with Pull Request (PR) 2025, topic branch drshawnkwang:drupal_feature-projprefxml-apps.

Conflicts:
	drupal/sites/default/boinc/modules/boincwork/includes/boincwork.helpers.inc
Conflict was manually fixed.

See:
https://dev.gridrepublic.org/browse/DBOINC-87
2017-10-05 10:02:53 -05:00
tristanolive f26ef90b93 Merge pull request #2144 from drshawnkwang/drupal_feature-privatemsg-useboinc-id-name
Drupal: Modified private message module to use BOINC username (and id).
2017-10-05 10:11:17 -04:00
Shawn Kwang 35a7f27c39 Drupal: Bug fixes and layout changes.
Fixed bug where users could send message to users who did not exist.
Changed autocomplete dropdown to use BOINC id in parenthesis.
Removed dpm() debugging statements.
2017-09-28 10:51:13 -05:00
tristanolive a112cd4322 Merge pull request #2091 from drshawnkwang/drupal_fix_commentlinkborder
Drupal: Fix boinc theme css
2017-09-12 15:33:51 -04:00
Shawn Kwang b32d3a0f9d Drupal: Removes extra border from comment link when user cannot post comments to the Web site. 2017-09-06 12:04:10 -05:00
Shawn Kwang 80f2aa2471 Drupal: Changed subscription links to use <ul> and <li> tags, and thus CSS classes which set the border between links. 2017-09-06 11:23:57 -05:00
Shawn Kwang 4ee2840a2b Drupal: Modified how subscribe link layout. Removed "|" for divider, use CSS for a border divider.
Part of https://dev.gridrepublic.org/browse/DBOINCP-309
2017-08-29 15:30:07 -05:00
Shawn Kwang 3d6c8c1071 Drupal: Modified private message module to use BOINC username (and id).
Private message module will now use the BOINC username (display name) in the "to" field, in the autocomplete, and in sending the email notification.
Added custom email body and other variables to private_messages Feature via strongarm.
Added field to User Profile which displays BOINC ID.

https://dev.gridrepublic.org/browse/DBOINCP-254
2017-08-28 15:50:26 -05:00
tristanolive c796f3f7e0 Merge pull request #2025 from drshawnkwang/drupal_feature-projprefxml-apps
Drupal: Changed how application list is obtained for project preferences.
2017-08-24 10:42:21 -04:00
tristanolive 4f2a9aced7 Merge pull request #2062 from drshawnkwang/drupal_use-boinc-username
Drupal: Use BOINC username in place of Drupal username
2017-08-24 10:36:16 -04:00
tristanolive 5155910727 Merge branch 'master' into drupal_feature-projprefxml-apps 2017-08-24 09:43:23 -04:00
tristanolive 902a0247f9 Merge pull request #2015 from drshawnkwang/drupal_fix-tasktablebugs2
Drupal: Fixed two bugs in task table.
2017-08-24 09:35:25 -04:00
Shawn Kwang 9071002c46 Drupal: Two minor changes to the display of usernames.
Added boinc username (display name) to Admin User Search View.
Modified admin user edit page to describe the two different usernames.
2017-08-24 08:13:37 -05:00
Shawn Kwang c3d8d4dfcf Drupal: Misc change to documentation/comment in code. 2017-08-23 11:06:56 -05:00
Shawn Kwang 3fead8d9a5 Drupal: Removed <title> element from <app_overrides> container.
Fixed some minor bugs/code issues.
2017-08-23 09:19:50 -05:00
Shawn Kwang d87b09f5fc Drupal: Minor changes to documentation and switch statement. 2017-08-23 08:51:47 -05:00
tristanolive f83c2527db Merge pull request #2048 from brevilo/SA-CONTRIB-2017-068
Drupal: D6 LTS / views
2017-08-22 17:23:23 -04:00
Shawn Kwang 10be0cab3b Drupal: Use BOINC username in place of Drupal username in various places.
1. Community Stats: top users list uses boinc username.
1. Account dashboard, friends block: hover/alt/title text uses boinc username.
1. User profile images: hover/alt/title text uses boinc username.

https://dev.gridrepublic.org/browse/DBOINCP-254
2017-08-22 10:03:52 -05:00
Shawn Kwang 62b64347f7 Drupla: Removed commented-out code. 2017-08-21 15:45:16 -05:00
Oliver Bock 1b4e2d1503 Drupal: D6 LTS / views
* https://dev.gridrepublic.org/browse/DBOINCP-407
* Applied SA-CONTRIB-2017-068-6.x-2.x patch
2017-08-18 15:22:33 +02:00
Shawn Kwang 09b619bb97 Drupal: Changed how project application list is obtained for project preferences.
Application list is now obtained from the database. The project-specific preferences XML upload/configuration are overrides for the applications list.
Modified projectpref.xsd file, <apps> tag is now <app_overrides>.

https://dev.gridrepublic.org/browse/DBOINC-87
2017-08-11 15:04:12 -05:00
Shawn Kwang 630814b8e6 Drupal: Changed wording of node-edit section for boinc translate.
https://dev.gridrepublic.org/browse/DBOINCP-394
2017-08-11 14:36:16 -05:00
Shawn Kwang 414fc988cc Drupal: Fixed some issues with the task table code.
1. Fixed WHERE statements for sqlall query.
2. Changed sqlsub query to use an array to hold all WHERE clauses, and then implode() the resulting array.
3. pretty_application_name() now handles cases where a unknown negative number is given for app_version_id: Unknown anonymous platform.
2017-08-10 10:39:08 -05:00
tristanolive 07b7dbcd0a Merge pull request #2016 from drshawnkwang/drupal_feature-accountfinish
Drupal: New account_finish landing page
2017-08-10 10:39:15 -04:00
tristanolive 8525dfabb0 Merge pull request #2018 from drshawnkwang/drupal_feature-projprefxml-addmodtime
Drupal: Added <modified> tag to project_preferences payload XML.
2017-08-10 09:58:24 -04:00
tristanolive 624ada48cc Merge pull request #2014 from drshawnkwang/drupal_feature-notaskfounddb
Drupal: Added logic to print No task/host/workunit found if View returns no results
2017-08-09 23:17:27 -04:00