custer fixed error in user id with email

This commit is contained in:
asus
2024-04-30 18:22:56 +02:00
parent d402e9a7e3
commit 0d20d71a7e
6 changed files with 650 additions and 7 deletions

325
bat_log.md Normal file
View File

@@ -0,0 +1,325 @@
lun. 2024-02-12 09:21:44 - Discharging [=======================<_] 96%
mar. 2024-02-13 00:32:03 - Discharging [===<_____________________] 14%
mar. 2024-02-13 08:24:35 - Discharging [===<_____________________] 13%
mer. 2024-02-14 02:44:36 - Discharging [====<____________________] 18%
mer. 2024-02-14 10:48:08 - Discharging [===<_____________________] 16%
jeu. 2024-02-15 02:49:53 - Discharging [==============<__________] 58%
jeu. 2024-02-15 08:07:32 - Discharging [==============<__________] 57%
jeu. 2024-02-15 22:38:03 - Charging [========================>] 98%
ven. 2024-02-16 07:40:52 - Discharging [========================<] 98%
sam. 2024-02-17 00:46:58 - Charging [=======>_________________] 30%
sam. 2024-02-17 09:12:44 - Discharging [=========<_______________] 38%
dim. 2024-02-18 02:22:45 - Discharging [=================<_______] 71%
dim. 2024-02-18 10:43:00 - Discharging [=================<_______] 69%
lun. 2024-02-19 02:32:49 - Discharging [==============<__________] 60%
lun. 2024-02-19 09:32:28 - Discharging [==============<__________] 58%
lun. 2024-02-19 09:52:28 - Discharging [=============<___________] 55%
lun. 2024-02-19 14:13:47 - Discharging [=============<___________] 54%
lun. 2024-02-19 23:59:02 - Discharging [========<________________] 33%
mar. 2024-02-20 09:11:12 - Discharging [=======<_________________] 29%
mar. 2024-02-20 23:41:13 - Discharging [======<__________________] 28%
mer. 2024-02-21 09:08:24 - Discharging [======<__________________] 26%
mer. 2024-02-21 23:58:25 - Discharging [==<______________________] 10%
jeu. 2024-02-22 09:18:20 - Discharging [==<______________________] 9%
ven. 2024-02-23 00:48:21 - Discharging [====<____________________] 20%
ven. 2024-02-23 09:05:36 - Discharging [====<____________________] 18%
sam. 2024-02-24 01:15:38 - Charging [==========>______________] 41%
sam. 2024-02-24 10:15:01 - Discharging [========================<] 100%
dim. 2024-02-25 01:46:12 - Charging [===============>_________] 62%
dim. 2024-02-25 08:10:15 - Discharging [===============<_________] 63%
dim. 2024-02-25 20:59:34 - Discharging [=================<_______] 71%
lun. 2024-02-26 09:15:36 - Discharging [=================<_______] 69%
lun. 2024-02-26 10:15:36 - Discharging [==============<__________] 58%
lun. 2024-02-26 11:51:40 - Discharging [==============<__________] 57%
lun. 2024-02-26 19:21:40 - Discharging [========================<] 100%
lun. 2024-02-26 22:46:43 - Discharging [========================<] 100%
mar. 2024-02-27 02:36:43 - Discharging [========<________________] 33%
mar. 2024-02-27 10:44:03 - Discharging [=======<_________________] 31%
mar. 2024-02-27 18:24:03 - Discharging [======<__________________] 27%
mar. 2024-02-27 18:35:03 - Discharging [=====<___________________] 24%
mar. 2024-02-27 18:45:03 - Discharging [=====<___________________] 21%
mar. 2024-02-27 18:47:47 - Discharging [====<____________________] 20%
mer. 2024-02-28 01:40:05 - Discharging [================<________] 65%
mer. 2024-02-28 09:50:14 - Discharging [===============<_________] 62%
jeu. 2024-02-29 02:00:16 - Discharging [=========<_______________] 38%
jeu. 2024-02-29 10:31:54 - Discharging [=========<_______________] 37%
ven. 2024-03-01 01:11:55 - Discharging [===============<_________] 61%
ven. 2024-03-01 01:31:52 - Discharging [==============<__________] 60%
ven. 2024-03-01 01:41:52 - Discharging [==============<__________] 57%
ven. 2024-03-01 09:37:47 - Discharging [=============<___________] 56%
ven. 2024-03-01 10:37:47 - Discharging [=========<_______________] 39%
ven. 2024-03-01 11:58:44 - Discharging [=========<_______________] 38%
ven. 2024-03-01 12:38:45 - Discharging [=======<_________________] 30%
ven. 2024-03-01 14:19:32 - Discharging [======<__________________] 28%
ven. 2024-03-01 23:59:33 - Discharging [====<____________________] 18%
sam. 2024-03-02 10:03:27 - Charging [====>____________________] 18%
dim. 2024-03-03 01:33:28 - Discharging [==========<______________] 43%
dim. 2024-03-03 10:02:22 - Discharging [==========<______________] 42%
lun. 2024-03-04 00:32:23 - Charging [=======================>_] 94%
lun. 2024-03-04 08:33:42 - Full [=========================] 100%
lun. 2024-03-04 14:43:42 - Discharging [===<_____________________] 14%
lun. 2024-03-04 15:40:58 - Discharging [===<_____________________] 13%
mar. 2024-03-05 00:05:07 - Discharging [==<______________________] 9%
mar. 2024-03-05 09:13:50 - Discharging [=<_______________________] 7%
mar. 2024-03-05 18:07:14 - Charging [===================>_____] 78%
mar. 2024-03-05 21:15:45 - Discharging [=====================<___] 85%
mar. 2024-03-05 23:45:45 - Discharging [=======<_________________] 31%
mer. 2024-03-06 07:18:56 - Discharging [=======<_________________] 29%
mer. 2024-03-06 18:38:56 - Charging [========================>] 98%
mer. 2024-03-06 20:00:41 - Full [=========================] 100%
mer. 2024-03-06 23:40:41 - Discharging [=====<___________________] 22%
jeu. 2024-03-07 07:38:42 - Discharging [=====<___________________] 21%
jeu. 2024-03-07 23:38:44 - Charging [=>_______________________] 8%
ven. 2024-03-08 07:34:06 - Discharging [===<_____________________] 16%
ven. 2024-03-08 18:24:07 - Discharging [========================<] 100%
sam. 2024-03-09 09:22:47 - Discharging [========================<] 100%
sam. 2024-03-09 21:53:54 - Discharging [================<________] 67%
sam. 2024-03-09 22:37:35 - Discharging [===============<_________] 64%
dim. 2024-03-10 01:27:35 - Discharging [=====<___________________] 22%
dim. 2024-03-10 09:26:10 - Discharging [====<____________________] 19%
dim. 2024-03-10 23:56:12 - Discharging [=======<_________________] 30%
lun. 2024-03-11 10:35:27 - Discharging [======<__________________] 27%
lun. 2024-03-11 11:45:27 - Discharging [===<_____________________] 15%
lun. 2024-03-11 15:21:20 - Discharging [===<_____________________] 14%
lun. 2024-03-11 16:21:20 - Charging [===========>_____________] 47%
lun. 2024-03-11 18:29:08 - Charging [======================>__] 90%
mar. 2024-03-12 01:49:10 - Charging [==================>______] 76%
mar. 2024-03-12 10:07:43 - Charging [===================>_____] 78%
mar. 2024-03-12 23:47:43 - Charging [============>____________] 52%
mar. 2024-03-12 23:52:59 - Charging [=============>___________] 55%
mer. 2024-03-13 01:02:59 - Charging [=======================>_] 95%
mer. 2024-03-13 09:47:53 - Full [=========================] 100%
mer. 2024-03-13 13:27:54 - Discharging [============<____________] 52%
mer. 2024-03-13 14:32:55 - Discharging [============<____________] 52%
mer. 2024-03-13 15:12:56 - Discharging [==========<______________] 42%
mer. 2024-03-13 16:42:42 - Discharging [==========<______________] 41%
jeu. 2024-03-14 01:12:44 - Discharging [=<_______________________] 8%
jeu. 2024-03-14 07:46:00 - Discharging [=<_______________________] 6%
ven. 2024-03-15 01:56:01 - Full [=========================] 100%
ven. 2024-03-15 07:22:45 - Discharging [========================<] 100%
sam. 2024-03-16 00:42:45 - Charging [==============>__________] 58%
sam. 2024-03-16 10:22:40 - Full [=========================] 100%
sam. 2024-03-16 14:49:04 - Discharging [===============<_________] 63%
sam. 2024-03-16 20:31:10 - Discharging [===============<_________] 62%
dim. 2024-03-17 02:21:12 - Discharging [========================<] 100%
dim. 2024-03-17 11:31:17 - Discharging [========================<] 100%
lun. 2024-03-18 03:11:42 - Charging [=======================>_] 93%
lun. 2024-03-18 10:44:31 - Discharging [=======================<_] 95%
lun. 2024-03-18 16:24:32 - Discharging [======<__________________] 25%
lun. 2024-03-18 17:16:36 - Discharging [=====<___________________] 23%
lun. 2024-03-18 18:26:37 - Discharging [<________________________] 4%
lun. 2024-03-18 19:43:48 - Discharging [<________________________] 2%
mar. 2024-03-19 00:24:22 - Charging [========================>] 98%
mar. 2024-03-19 06:55:02 - Full [=========================] 100%
mer. 2024-03-20 02:15:04 - Discharging [========<________________] 33%
mer. 2024-03-20 09:16:33 - Discharging [=======<_________________] 30%
jeu. 2024-03-21 00:56:34 - Charging [========================>] 97%
jeu. 2024-03-21 07:59:53 - Discharging [========================<] 100%
jeu. 2024-03-21 19:19:54 - Discharging [====================<____] 81%
jeu. 2024-03-21 23:14:48 - Discharging [===================<_____] 78%
jeu. 2024-03-21 23:54:48 - Discharging [================<________] 66%
ven. 2024-03-22 12:27:26 - Charging [===============>_________] 64%
ven. 2024-03-22 19:07:50 - Charging [============>____________] 50%
ven. 2024-03-22 22:44:17 - Charging [==============>__________] 59%
sam. 2024-03-23 00:44:16 - Full [=========================] 100%
sam. 2024-03-23 10:09:20 - Full [=========================] 100%
sam. 2024-03-23 15:19:21 - Discharging [======<__________________] 27%
sam. 2024-03-23 17:30:20 - Discharging [======<__________________] 26%
sam. 2024-03-23 18:20:20 - Discharging [===<_____________________] 15%
sam. 2024-03-23 20:56:54 - Discharging [===<_____________________] 13%
dim. 2024-03-24 00:26:54 - Discharging [====================<____] 83%
dim. 2024-03-24 09:46:28 - Discharging [===================<_____] 79%
dim. 2024-03-24 15:06:29 - Discharging [============<____________] 52%
dim. 2024-03-24 15:58:11 - Discharging [===========<_____________] 47%
dim. 2024-03-24 17:18:11 - Discharging [=======<_________________] 31%
dim. 2024-03-24 19:45:25 - Discharging [=======<_________________] 30%
dim. 2024-03-24 23:35:47 - Charging [========================>] 98%
lun. 2024-03-25 09:03:13 - Discharging [========================<] 98%
lun. 2024-03-25 22:13:14 - Discharging [======================<__] 89%
mar. 2024-03-26 10:12:23 - Discharging [=====================<___] 87%
mar. 2024-03-26 14:42:23 - Discharging [==<______________________] 10%
mar. 2024-03-26 20:07:46 - Charging [=>_______________________] 7%
mar. 2024-03-26 22:47:46 - Discharging [=======================<_] 96%
mer. 2024-03-27 09:04:58 - Discharging [=======================<_] 94%
mer. 2024-03-27 19:04:59 - Discharging [==<______________________] 9%
mer. 2024-03-27 19:14:16 - Charging [=>_______________________] 8%
mer. 2024-03-27 19:24:16 - Charging [====>____________________] 17%
mer. 2024-03-27 21:52:29 - Charging [====>____________________] 20%
mer. 2024-03-27 22:02:29 - Charging [=======>_________________] 30%
jeu. 2024-03-28 09:19:55 - Charging [=======>_________________] 30%
jeu. 2024-03-28 11:59:55 - Full [=========================] 100%
jeu. 2024-03-28 17:28:22 - Full [=========================] 100%
jeu. 2024-03-28 18:28:21 - Discharging [===================<_____] 77%
ven. 2024-03-29 09:44:09 - Discharging [==================<______] 76%
ven. 2024-03-29 13:04:09 - Discharging [=========<_______________] 38%
ven. 2024-03-29 16:47:32 - Discharging [=========<_______________] 37%
sam. 2024-03-30 00:55:08 - Discharging [=================<_______] 71%
sam. 2024-03-30 09:09:24 - Discharging [=================<_______] 71%
dim. 2024-03-31 01:39:26 - Discharging [====<____________________] 20%
dim. 2024-03-31 11:53:51 - Discharging [====<____________________] 18%
lun. 2024-04-01 01:33:53 - Discharging [==================<______] 75%
lun. 2024-04-01 11:26:51 - Discharging [==================<______] 74%
lun. 2024-04-01 12:26:52 - Discharging [===============<_________] 64%
lun. 2024-04-01 13:39:36 - Discharging [===============<_________] 63%
lun. 2024-04-01 15:09:35 - Discharging [===========<_____________] 47%
lun. 2024-04-01 20:08:47 - Discharging [===========<_____________] 46%
lun. 2024-04-01 23:28:48 - Charging [====================>____] 83%
mar. 2024-04-02 09:07:22 - Discharging [========================<] 100%
mer. 2024-04-03 00:12:50 - Charging [=======================>_] 95%
mer. 2024-04-03 09:02:02 - Discharging [========================<] 100%
mer. 2024-04-03 22:52:03 - Discharging [================<________] 65%
jeu. 2024-04-04 09:20:02 - Discharging [===============<_________] 62%
ven. 2024-04-05 00:10:04 - Charging [====>____________________] 17%
ven. 2024-04-05 10:26:13 - Charging [=====>___________________] 21%
ven. 2024-04-05 17:36:14 - Charging [===>_____________________] 16%
sam. 2024-04-06 11:58:09 - Discharging [====<____________________] 19%
sam. 2024-04-06 12:38:10 - Discharging [==<______________________] 9%
dim. 2024-04-07 22:03:19 - Charging [===>_____________________] 16%
lun. 2024-04-08 01:13:20 - Discharging [===================<_____] 77%
lun. 2024-04-08 09:32:23 - Discharging [===================<_____] 77%
mar. 2024-04-09 01:32:25 - Discharging [======================<__] 92%
mar. 2024-04-09 10:32:59 - Discharging [======================<__] 90%
mer. 2024-04-10 02:13:01 - Discharging [=========<_______________] 39%
mer. 2024-04-10 10:57:34 - Discharging [========<________________] 36%
jeu. 2024-04-11 18:02:35 - Charging [=====================>___] 86%
ven. 2024-04-12 07:28:47 - Discharging [======================<__] 91%
ven. 2024-04-12 23:47:59 - Discharging [==============<__________] 58%
sam. 2024-04-13 09:30:58 - Discharging [==============<__________] 57%
sam. 2024-04-13 16:10:59 - Discharging [==============<__________] 59%
dim. 2024-04-14 10:06:25 - Discharging [=============<___________] 55%
dim. 2024-04-14 11:56:25 - Discharging [=====<___________________] 24%
dim. 2024-04-14 17:07:35 - Discharging [=====<___________________] 23%
lun. 2024-04-15 00:37:37 - Charging [========>________________] 34%
lun. 2024-04-15 09:43:40 - Full [=========================] 100%
mer. 2024-04-17 21:17:16 - Discharging [========<________________] 36%
mer. 2024-04-17 22:31:13 - Discharging [========<________________] 33%
jeu. 2024-04-18 21:41:16 - Discharging [==========<______________] 41%
ven. 2024-04-19 09:01:54 - Discharging [=========<_______________] 37%
ven. 2024-04-19 11:21:54 - Charging [========>________________] 34%
ven. 2024-04-19 15:50:28 - Discharging [==========<______________] 43%
ven. 2024-04-19 20:00:29 - Charging [========================>] 98%
sam. 2024-04-20 09:45:52 - Discharging [========================<] 100%
sam. 2024-04-20 21:12:48 - Charging [========>________________] 33%
dim. 2024-04-21 17:44:42 - Discharging [=========<_______________] 37%
dim. 2024-04-21 20:44:43 - Charging [========================>] 98%
dim. 2024-04-21 20:50:39 - Charging [========================>] 98%
dim. 2024-04-21 21:20:39 - Discharging [=======================<_] 96%
lun. 2024-04-22 08:52:58 - Discharging [=======================<_] 95%
mar. 2024-04-23 02:39:52 - Discharging [======<__________________] 28%
mar. 2024-04-23 09:46:33 - Discharging [======<__________________] 27%
mer. 2024-04-24 01:06:35 - Charging [==================>______] 73%
mer. 2024-04-24 09:19:18 - Full [=========================] 100%
mer. 2024-04-24 18:59:19 - Discharging [==========<______________] 43%
jeu. 2024-04-25 01:15:06 - Discharging [==========<______________] 41%
jeu. 2024-04-25 01:25:06 - Discharging [=========<_______________] 37%
jeu. 2024-04-25 08:53:59 - Discharging [========<________________] 34%
jeu. 2024-04-25 18:54:00 - Charging [==>______________________] 12%
jeu. 2024-04-25 19:03:07 - Charging [====>____________________] 19%

304
gitlog.md Normal file
View File

@@ -0,0 +1,304 @@
2023-12-14 15:49:07 +0100 init with devis
2024-02-01 17:22:11 +0100 cleaned up private
2024-02-01 17:28:26 +0100 cleaned up private
2024-02-01 17:45:49 +0100 update remotes
2024-02-01 17:50:57 +0100 updated private
2024-02-07 13:19:47 +0100 added wordpress docker subomodule
2024-02-07 14:39:22 +0100 wip first shortcode
2024-02-07 18:46:28 +0100 - start a basic plugin that can send code to front - for the moment it send js scripts, css, and variables
2024-02-07 18:54:30 +0100 wip trying to get the var name directly, first try not working
2024-02-08 12:11:16 +0100 wip handle puting files and var on front
2024-02-08 12:31:07 +0100 - can add files to front with single function - can create html in shortcode with basic templates
2024-02-08 14:43:25 +0100 use compact with add_var_to_front
2024-02-08 15:24:22 +0100 added variables in create_html with compact
2024-02-08 15:28:18 +0100 removed templates in path to include html
2024-02-12 10:13:02 +0100 wip renaming plugins elements
2024-02-12 11:26:44 +0100 ini plugin
2024-02-12 11:42:56 +0100 update private notes
2024-02-13 12:35:31 +0100 correction in plugin utils function add_to_front in add_ajax_post the wp_enqueue_script has a wrong parameter with
2024-02-13 21:00:41 +0100 added notes in both submodules private and wordpress
2024-02-13 22:12:31 +0100 added corrections in submodule wordpress docker
2024-02-14 01:03:55 +0100 made a class version of plugin_tools
2024-02-14 02:49:14 +0100 added ajax call inside class plugin
2024-02-14 17:10:44 +0100 wip find user fields
2024-02-15 00:40:07 +0100 improved plugin class by changing for only one method to do all
2024-02-15 02:47:11 +0100 now ajax is in PLGMTLS object as a method
2024-02-15 02:51:22 +0100 litle bit of cleaning in plugin class
2024-02-17 20:18:36 +0100 wip trying to save acf fields from divi form builder
2024-02-18 01:21:08 +0100 - wip trying to patch jquery url validator - resolve conflict in addition of multiple vars and ajax function
2024-02-18 02:27:09 +0100 patch for jquery url validator working
2024-02-18 11:00:01 +0100 added url patch as a separate plugin
2024-02-18 13:06:02 +0100 - removed jquery validator url patch to put it in another plugin - starting to try the form_builder hooks for modif acf fields
2024-02-19 00:46:03 +0100 - moving ajax script outside plugin class, as a js file - wip trying to use the wordpress image editor
2024-02-19 02:38:50 +0100 wip image editor far from understand wordpress core
2024-02-20 10:09:05 +0100 trying to insert acf custom field to front
2024-02-20 23:44:10 +0100 submodules ipdates
2024-02-21 23:58:53 +0100 wip paypal tests
2024-02-22 11:50:01 +0100 small improvement in modals with diviengine-form-builder
2024-02-22 20:30:01 +0100 wip paypal with sdk not working
2024-02-22 23:44:22 +0100 sdk call works now, just the begining
2024-02-23 10:52:02 +0100 - added capacity in plugin tool to take urls - test front end integration ok
2024-02-23 19:36:03 +0100 - struggled to make ajax works, but now is ok - starting to make serverside works
2024-02-23 19:49:56 +0100 better file organisation
2024-02-23 21:03:34 +0100 wip route api_order
2024-02-23 23:43:23 +0100 try wordpress rest api instead of ajax
2024-02-24 01:19:39 +0100 created routes, but json parse error ate the end of transaction
2024-02-24 16:57:31 +0100 PAYPAL WORKING
2024-02-24 17:40:33 +0100 retrieving user that makes the purchase with nonce ok
2024-02-25 01:46:33 +0100 wip connecting user with payment
2024-02-25 11:02:47 +0100 wip track payment to user
2024-02-25 14:43:53 +0100 wip cron job to delete order id, but will deal with that later
2024-02-25 15:00:21 +0100 prefixed all paypal related fonctions with fipf
2024-02-25 18:11:33 +0100 payment update acf fields allright
2024-02-25 21:03:58 +0100 update private notes
2024-02-26 13:18:19 +0100 - forget old ajax wp, now use fetch wp - trying js files without imports
2024-02-27 01:54:46 +0100 wip trying to create better options to include scripts with attributes
2024-02-27 11:51:46 +0100 wip adding attributes, works with filter wp-script-attributes
2024-02-27 15:23:07 +0100 now we can add attributes to js files using the tools class
2024-02-29 01:04:41 +0100 wip trying to modify html before it is rendered
2024-02-29 23:45:02 +0100 - tests on editing author page with acf fields - some reflexions on registrations
2024-03-01 17:21:03 +0100 added inline code to plugin tools
2024-03-02 16:14:36 +0100 - added role at registration with xootix - cleaned folder
2024-03-02 21:43:43 +0100 some more little codes for restrictions and registrations
2024-03-03 01:37:10 +0100 shortcode to get user infos
2024-03-03 10:39:34 +0100 small improvement in print user infos list
2024-03-03 21:48:39 +0100 - added a reinit function for acf fields after form validation - added a plugin version of the modal patch for form builder
2024-03-04 08:52:18 +0100 renamed formbuilder patch files
2024-03-05 00:10:53 +0100 created a new function to filter emails
2024-03-05 09:55:54 +0100 upgraded email filter to filter also wp hook
2024-03-05 10:44:36 +0100 added check for logged in user in filter email
2024-03-05 17:22:11 +0100 - wip payment - already solved success and failure messages and redirection - solved increase date multiple times - users redirection works if error AND partner to posts instead of project
2024-03-06 13:53:47 +0100 wip payment kind of works with bugs
2024-03-06 23:44:46 +0100 - improved payement paypal for date and other things
2024-03-07 10:26:11 +0100 - payment : first date error corrected - payment : added httpErrorException - payment : error handling wip - profil page restriction gives access to admin and editor
2024-03-07 14:51:10 +0100 updated user info shortcode to output author page and format date
2024-03-07 15:13:16 +0100 small correction in user info
2024-03-07 17:05:55 +0100 - wip filter page prof - upgraded user info shortcode to default behavior on author page
2024-03-07 17:50:45 +0100 wip author page checks, waiting page redirection working
2024-03-07 19:03:42 +0100 updated filter email to filter the author page special keyword
2024-03-07 19:08:03 +0100 updated som error in filter email for special query author page
2024-03-07 19:21:11 +0100 update payment validation by changing prof to active
2024-03-07 21:34:48 +0100 wip prof check page now handle the success message on paiement
2024-03-07 22:32:50 +0100 changed all instances of fipf to cipf
2024-03-07 22:35:39 +0100 changed plugin name to cipf
2024-03-07 23:27:20 +0100 renew page message are working
2024-03-07 23:48:01 +0100 moved and updated reset fields into rebew file
2024-03-08 09:23:51 +0100 moved all const in class
2024-03-08 17:57:04 +0100 updates acf fields const values in class to avoid errors
2024-03-09 22:03:22 +0100 wip upgrade and clean payment process
2024-03-10 11:13:44 +0100 - added debug function - fixed issues in acf fields use
2024-03-10 14:12:24 +0100 changed meta field payment_status for acf field
2024-03-10 14:51:47 +0100 - renew state : removed - payment state : in acf
2024-03-10 22:37:38 +0100 - added a default css file to include to have a first handle - cahnged get_path/url to root_path/url - changed path setup -> now automatic from inside plugin
2024-03-10 22:53:15 +0100 added info in class about path construction
2024-03-10 23:12:20 +0100 card number id created
2024-03-11 00:02:55 +0100 changed all role occurences by a const
2024-03-11 23:20:38 +0100 wip check offres for newsletter
2024-03-12 19:54:18 +0100 - in plgntls transformed process to add fetch script even if list of srcs is empty - created a patch for form builder calculation
2024-03-12 21:53:32 +0100 - moved reset field function outside renew_card file - created a patch for formbuilder calculation pbm
2024-03-13 13:28:14 +0100 - wip create role at registration - upgraded shortcode user_infos to output acf format
2024-03-13 14:57:01 +0100 some improvments on shortcode user_info, to output the right secure string in most cases
2024-03-14 01:18:31 +0100 wip handle custom form submit
2024-03-14 10:29:02 +0100 added redirection without need of a page, use it for paypal success or failure message already
2024-03-14 12:31:31 +0100 wip debug redirections
2024-03-14 12:32:35 +0100 updated notes
2024-03-14 13:10:05 +0100 wip i broke everyhting :p
2024-03-14 13:48:19 +0100 nop it wasn't my plugin's fault
2024-03-14 13:48:37 +0100 Merge branch 'debug_routes'
2024-03-14 15:07:50 +0100 changed profil redirection so it does not need a real page anymore
2024-03-14 15:27:52 +0100 v 0.2.6
2024-03-14 18:35:21 +0100 fixed dates format error
2024-03-14 23:28:37 +0100 wip trying to force the acf id that formbuilder will use
2024-03-15 09:18:39 +0100 tried a fix on redirection without real page, by using template-redirection hook instead of init
2024-03-15 13:50:27 +0100 v0.2.8 wip can force the id of a user for a portion of page with shortcode
2024-03-17 02:27:28 +0100 created plugin custer, and removed shortcodes change_id and user_infos from cipf plugin
2024-03-17 02:28:27 +0100 custer v 0.1.1 : now fully working
2024-03-17 02:29:31 +0100 cipf v 0.2.9 : moved shortcodes change_id and user_info to another plugin, custer
2024-03-17 14:06:25 +0100 custer : changed namespace, now all function use it
2024-03-17 14:52:42 +0100 custer format output works with numbers
2024-03-17 15:28:08 +0100 - removed custom user function and put it in custer - changed main file for cipf instead of fipfcard - reset some fields after prof form validation
2024-03-17 17:59:27 +0100 price calculation now works whatever acf return is set
2024-03-17 17:59:48 +0100 redirections whould work now
2024-03-17 18:16:28 +0100 v 0.3.1 - reset cgv - price works with all acf returns for radio buttons - redirection works
2024-03-17 23:00:39 +0100 - v 0.3.2 : can hide or show admin menu
2024-03-18 12:23:27 +0100 change author id works for prof profil and prof form
2024-03-18 13:28:02 +0100 v 0.3.3 partner registration detected with slug using options and without referer
2024-03-18 13:30:17 +0100 updated notes
2024-03-19 07:11:04 +0100 v 0.1.4.1 correction new DateTime in shortcode, conflict with namespace
2024-03-19 07:11:45 +0100 v 0.1.4.2 temporary deactivate anchors
2024-03-19 07:24:53 +0100 wip registration partner role with xootix hook and hiden fields
2024-03-19 07:27:37 +0100 abandonned price calculation at payment time because of pbm with formbuilder
2024-03-19 07:28:17 +0100 wip account states
2024-03-19 07:30:59 +0100 update notes
2024-03-19 08:58:59 +0100 added dates functions for prof card
2024-03-19 12:37:16 +0100 created functions to handle all state changes
2024-03-19 13:06:16 +0100 most account states updating are working
2024-03-19 15:05:33 +0100 changed acf field access from _name to _key
2024-03-19 15:59:16 +0100 created css files for states displays
2024-03-19 16:27:38 +0100 v 0.3.4 states are now handled with specific functions for setting, getting, and adding css
2024-03-19 18:44:53 +0100 made the plugin dont redeclare font variable if used two times
2024-03-19 20:15:26 +0100 updated acf find non init field value with new technique to init with temp value first
2024-03-19 20:50:35 +0100 updated infos about states
2024-03-19 22:06:17 +0100 wip cahngin states
2024-03-19 22:47:00 +0100 fixed error in prof state for renew card
2024-03-19 23:48:40 +0100 partner redirection to page creation
2024-03-20 00:26:39 +0100 - most prof states shoud be ok - redirection partner page creation - user ids on checks states - reset cgv - restrict prof profil page
2024-03-20 01:02:46 +0100 - creates redirect-home function - restrict prof form to profs - restrict paypal page for prof only
2024-03-20 01:54:22 +0100 fixed pbm find author id ouside loop
2024-03-20 01:54:49 +0100 - hide admin bar for front user - admin page redirects non admin users
2024-03-20 01:58:37 +0100 v 0.3.9 profs are mostly ok i suppose, didn't checked all situations
2024-03-20 10:10:48 +0100 first step in making api keys modifiable in admin : using getter and setter instead of const
2024-03-20 11:24:40 +0100 fixed redirection preventing to edit in divi builder mode
2024-03-20 11:42:22 +0100 v 0.3.10 admin can validate payment from front
2024-03-20 14:44:19 +0100 new profs redirects to command
2024-03-20 15:29:34 +0100 rollback to not calculating price
2024-03-20 17:04:21 +0100 fixed error in creating card number
2024-03-20 17:06:44 +0100 debug mode false
2024-03-20 17:07:41 +0100 update making card renew after paiement only if it was new
2024-03-20 17:44:42 +0100 added important to css for display state, i am going to hell
2024-03-20 18:58:46 +0100 v 0.3.11 : - fixed error in creating card number - fixed error in creating first date limit - fixed error dont put card in valid after success payment
2024-03-20 19:31:54 +0100 fixed error when fipf see account it changes status accordgin to its own values
2024-03-20 20:02:03 +0100 changed all optionnal user_id in first parameters to last parameters
2024-03-20 21:10:56 +0100 better handle transfert validation
2024-03-21 16:09:44 +0100 added paypal diego live credentials
2024-03-21 16:10:07 +0100 small improvements in handling prof states : - card date validation now uses direct card duration, not a parameter - checker for both types of transfert valid and invalid - mv checks for transfert and date expiration in specific functions
2024-03-21 19:26:32 +0100 wip partner register role : found how to add hidden fields
2024-03-21 19:27:45 +0100 updated notes
2024-03-22 19:10:35 +0100 v 0.3.12 - update date when transfert success - role partner at creation ok
2024-03-23 15:24:14 +0100 wip adding fbpatch plugin
2024-03-23 18:25:43 +0100 wip menu can now receive form with rest api, but no nonce
2024-03-23 22:14:16 +0100 wip the nonce for the menu works
2024-03-23 23:51:35 +0100 wip nonce actually dont work
2024-03-24 11:12:11 +0100 wip nonce works now
2024-03-24 12:37:38 +0100 wip patches added to options
2024-03-24 13:23:00 +0100 wip patchs appears with informations, but are not yet updated
2024-03-24 15:05:00 +0100 option list update with form
2024-03-24 15:14:53 +0100 wip adding patchs conditionnaly
2024-03-24 16:06:47 +0100 fixed error in fetch
2024-03-24 16:16:55 +0100 adding patchs files according to form in menu
2024-03-24 17:06:10 +0100 moved all aptches from cipf plugin to fbpatch
2024-03-24 23:43:06 +0100 wip first strategy to overwrite the formbuilder post update is a dead end
2024-03-25 11:13:16 +0100 hide show post elements works
2024-03-25 11:17:16 +0100 fbpatch v 0.1.3
2024-03-25 13:07:12 +0100 fbpatch small fixes in options and hide-show
2024-03-25 15:16:19 +0100 updated options to make them not automatically loaded when added
2024-03-25 16:21:33 +0100 wip paypal credentials output in menu, but they dont update yet
2024-03-25 18:32:03 +0100 cipf v0.3.13 paypal credentials now from admin menu
2024-03-25 21:42:33 +0100 custer v 0.1.6 added special request for post url
2024-03-25 22:11:46 +0100 partner edit button not visible by someone else
2024-03-25 22:14:59 +0100 edited infos for todo and fabien
2024-03-26 22:33:41 +0100 wip filter email registration
2024-03-27 09:38:19 +0100 cipf v 0.4.1 wip trying to filter registration email
2024-03-27 13:06:48 +0100 can choose the email for registration, and wether to send one or not
2024-03-27 14:10:10 +0100 fixed error new prof choosing transfert can now access profil
2024-03-27 14:47:58 +0100 fixed default email options
2024-03-27 17:18:14 +0100 added message payments in admin menu
2024-03-27 17:23:22 +0100 small fixes in html and css for admin menu cipf
2024-03-27 18:54:57 +0100 cipf v 0.4.4 added randomization for posts if < -1
2024-03-29 21:56:12 +0100 updated plgntls : - renamed PLGNTLS_class -> Plgntls - changed method 'add_to_front()' to static method - moved fetch script as inline script, so the plgntls file is single - improved the way inline script and styles are added
2024-03-30 11:15:22 +0100 more improved in plgntls class to let add_to_front be added multiple times
2024-03-30 14:57:40 +0100 - added new plugin - improved the plgntls class for this plugin
2024-03-30 21:03:21 +0100 wip creating options and menu in plgntls
2024-03-31 01:45:25 +0100 wip trying to get the options working in class
2024-03-31 15:17:53 +0200 menu and options tools added to plgntls class in plugin xtxpatch
2024-03-31 17:34:10 +0200 more improves in optin gestion in class, automatic handling for basic cases
2024-03-31 17:59:17 +0200 fixed error with unserialization of option
2024-03-31 19:09:22 +0200 fixed error with option update
2024-03-31 19:25:39 +0200 xtxpatch saves the email settings, still need to handle them
2024-03-31 19:59:20 +0200 xtxpatch v 0.1.1 it works fine
2024-03-31 20:53:26 +0200 moved css from site to plugin
2024-03-31 23:38:04 +0200 cipf added css to hide parts of user profil when fipf see them
2024-04-01 01:39:38 +0200 prof more checks at profil and when fipf validate transfert
2024-04-01 23:09:22 +0200 - updated states to work for user_id and post_id - added states for partner page state publish-draft
2024-04-01 23:14:42 +0200 updated notes
2024-04-01 23:33:49 +0200 cipf v0.5.1
2024-04-02 13:24:22 +0200 wip event schedule
2024-04-02 15:44:33 +0200 plgntls : - added it to cipf plugin - fixed an error in using _prefix not as static value
2024-04-02 15:45:54 +0200 - updated all occurences of Plgntls:: constantes for Cipf:: const - update menu to use the new methods
2024-04-02 17:01:25 +0200 wip creating emails
2024-04-02 18:50:56 +0200 custer v0.2.2 includes queries in all output
2024-04-02 18:55:59 +0200 custer query to find admin email
2024-04-02 18:58:49 +0200 Merge branch 'master' into emails
2024-04-02 19:12:16 +0200 wip filter email subject and sender, in addition to message
2024-04-02 19:31:00 +0200 defined the emails
2024-04-02 23:39:27 +0200 added another state of error in payment if the payment is a success but the treatment has an error
2024-04-03 00:13:39 +0200 wip emails front admin menu
2024-04-03 10:31:27 +0200 html presentation of admin menu for emails
2024-04-03 12:37:04 +0200 fixed small errors in plugin tools for options and menu
2024-04-03 13:19:12 +0200 emails in admin menu and updating options seems to work
2024-04-03 13:36:28 +0200 added special query base_url
2024-04-03 13:58:03 +0200 completed email default messages
2024-04-03 14:07:25 +0200 fixed error in loop option email with _name
2024-04-03 14:21:33 +0200 fixed error with automatically adding _name to option
2024-04-03 14:53:34 +0200 emails ok, except for shcedule deletion, not yet
2024-04-03 15:16:00 +0200 cipf update payment handling error
2024-04-03 16:22:42 +0200 added protection when using get_plugins function outside amdin context
2024-04-03 16:23:14 +0200 emails in progress
2024-04-03 22:43:05 +0200 updated plgntls options to improve default with new options
2024-04-04 14:03:24 +0200 - reorganized files - fixed error in partner edti/creation page
2024-04-04 14:28:06 +0200 removed all nocache headers
2024-04-04 15:06:33 +0200 - fixed error in plgntls debug logs - fixed button partner modification page restrictions
2024-04-04 17:35:32 +0200 fixed error in checks partner own page and modify to draft
2024-04-04 20:27:02 +0200 added payment problem message
2024-04-04 22:54:28 +0200 - fixed error partner page draft redirection with post id - fixed error all logged in user could see partner post in draft
2024-04-05 00:07:01 +0200 added custer menu for notice
2024-04-05 17:19:51 +0200 custer v 0.2.3 added menu with notice
2024-04-08 21:43:08 +0200 update acf field handling to centerize every call
2024-04-08 22:19:02 +0200 - fixed error in acf fields handling - added history handler
2024-04-08 22:30:56 +0200 smal fixe in history presentation
2024-04-08 23:00:38 +0200 - added isset function in acf field centralized handling - schedule event for order id works
2024-04-09 11:46:08 +0200 cipf v 0.5.5 added history and order id acf
2024-04-09 15:54:44 +0200 new date handling
2024-04-09 18:16:38 +0200 added options in paypal credential and payment
2024-04-09 20:02:03 +0200 added change card prof 5€
2024-04-09 20:11:58 +0200 fixe small pbm with card change
2024-04-09 20:43:47 +0200 event delete
2024-04-09 20:47:17 +0200 added email when account is deleted
2024-04-09 22:33:34 +0200 schedult card expiration
2024-04-09 22:36:02 +0200 added email when account expire
2024-04-09 23:05:11 +0200 adde event expire card reminder
2024-04-09 23:20:35 +0200 event deletion account reminder
2024-04-10 11:55:28 +0200 improved check before sending reminder emails
2024-04-10 12:16:07 +0200 abort event scheduled for each actions, will try one daily check
2024-04-10 14:45:09 +0200 new handling of events
2024-04-10 21:04:52 +0200 better handling of init acf field
2024-04-10 22:31:43 +0200 added email from
2024-04-11 11:34:27 +0200 handle reminders before card expiration and account deletion
2024-04-11 12:33:27 +0200 fixed error in handling emails reminder for profs card
2024-04-11 14:36:44 +0200 events actions and email for profs are now well supported, without repeatitions
2024-04-12 17:13:57 +0200 cipf v 0.5.8 handle partner events
2024-04-13 10:13:03 +0200 added css class for fipf viewing user profiles
2024-04-14 21:00:58 +0200 updated email options
2024-04-14 22:59:13 +0200 custer fixed error replacing all emails arguments
2024-04-14 23:18:16 +0200 cleaned email custer
2024-04-15 18:43:01 +0200 updated emails default send from true to on
2024-04-15 18:44:09 +0200 fixed error in filter email when headers are not set or not an array
2024-04-15 18:45:18 +0200 added info in cipf emails handling about logging
2024-04-16 10:29:14 +0200 removed error log
2024-04-16 10:34:38 +0200 removed error log
2024-04-16 11:25:00 +0200 wip handle deleting images for prof deletion
2024-04-16 11:40:36 +0200 added protection if user dont exists in format user
2024-04-16 11:41:17 +0200 added function to handle deletion of image when prof is deleted in case it was not taken care of
2024-04-16 14:19:14 +0200 added protection for first post
2024-04-16 14:22:44 +0200 added comment to explain the protection
2024-04-16 14:24:20 +0200 added new version number in custer
2024-04-16 16:43:11 +0200 updated offers expiration hanling with separate checkbox for each 3 offers
2024-04-17 16:47:14 +0200 added css and functions to make some acf fields read-only
2024-04-17 16:56:56 +0200 fixed errors and remain files for cleaning
2024-04-18 10:58:53 +0200 added a way to disable any acf fields
2024-04-18 14:18:19 +0200 fixed pbm with field update prevention, but not sure if robust
2024-04-20 14:57:10 +0200 new update for readonly_acf field with better solution
2024-04-20 18:03:21 +0200 wip resolving date format pbm, already figured out where it comes from and how to create a new one
2024-04-20 21:14:36 +0200 wip datepicker, added an intercepter to the originale function to get the arguments
2024-04-21 21:05:26 +0200 wip datepicker js part is done, it creates a hidden field with date in acf format
2024-04-23 13:11:10 +0200 wip adding date to class was a mistake since it is global
2024-04-23 13:26:16 +0200 for the moment dates have the apporpriate text output
2024-04-24 00:28:25 +0200 fbpatch v0.2.2 patch for dates
2024-04-24 11:17:35 +0200 fbpatch better version of dates patch
2024-04-24 14:15:48 +0200 cipf v0.5.11 added instructions for css class
2024-04-24 19:03:31 +0200 fixed error when retrievieng acf dates with format
2024-04-25 11:23:26 +0200 some cleaning in comments in fbpatch
2024-04-25 11:24:12 +0200 notes update
2024-04-25 11:58:06 +0200 fixed error in handling dates with acf format as datepicker and not datetimepicker
2024-04-25 14:17:06 +0200 fbatch dates new version only in front
2024-04-25 16:24:33 +0200 fixed error in fbpatch dates

View File

@@ -4,7 +4,7 @@ Plugin Name: hggg_custer
Plugin URI:
Description: customize user : output infos on page, on email, and change current user id momentarly
Author: hugogogo
Version: 0.2.5.3
Version: 0.2.6
Author URI:
*/

View File

@@ -52,10 +52,6 @@ function format_user_info($query, $user_id, $if_empty = '') {
$output_date_format = Custer::USER_INFO_DATE_FORMAT;
$special_queries = Custer::QUERIES;
$current_user = get_user_by('id', $user_id);
if (empty($current_user)) {
return;
}
$is_acf = false;
@@ -71,6 +67,15 @@ function format_user_info($query, $user_id, $if_empty = '') {
}
/*
* for the rest, we need the user
*
*/
$current_user = get_user_by('id', $user_id);
if (empty($current_user)) {
return null;
}
/*
* check if it's an acf field

View File

@@ -9,8 +9,11 @@ if (!defined('ABSPATH')) {
}
function get_queries($user_id, $if_empty) {
function get_queries($user_id, $if_empty = '') {
$special_queries = Custer::QUERIES;
if (is_null($user_id)) {
return null;
}
$queries = array();
foreach($special_queries as $query) {
@@ -22,6 +25,9 @@ function get_queries($user_id, $if_empty) {
function find_author_page_url($user_id) {
if (is_null($user_id)) {
return null;
}
return get_author_posts_url($user_id);
}
@@ -33,6 +39,9 @@ function find_author_page_url($user_id) {
*
*/
function find_user_post_url($user_id) {
if (is_null($user_id)) {
return null;
}
$user_post_url = '';
$args = array(

Submodule private updated: 3b611c68c9...1901a2bef1