diff --git a/plugins/cipf_plugin/cipf_plugin.php b/plugins/cipf_plugin/cipf_plugin.php index cb20616..bfba4ef 100644 --- a/plugins/cipf_plugin/cipf_plugin.php +++ b/plugins/cipf_plugin/cipf_plugin.php @@ -4,7 +4,7 @@ Plugin Name: hggg_cipf Plugin URI: Description: Author: hugogogo -Version: 0.5.0 +Version: 0.5.1 Author URI: */ @@ -50,6 +50,8 @@ include_once(Plgntls::root_path() . 'php/display_css.php'); include_once(Plgntls::root_path() . 'php/payments.php'); include_once(Plgntls::root_path() . 'php/random_posts.php'); +include_once(Plgntls::root_path() . 'php/admin_user_profil.php'); + diff --git a/plugins/cipf_plugin/css/fipf_user_profile.css b/plugins/cipf_plugin/css/fipf_user_profile.css new file mode 100644 index 0000000..5176676 --- /dev/null +++ b/plugins/cipf_plugin/css/fipf_user_profile.css @@ -0,0 +1,34 @@ +/* +* [/] Options personnelles, +* [/] À propos du compte, +* [/] Mots de passe d’application, +* [/] Login/Signup +*/ + + +/* +*/ +form#your-profile h2:has(+ .form-table .user-rich-editing-wrap), +form#your-profile .form-table:has(.user-rich-editing-wrap) { + display: none; +} + +/* +*/ +form#your-profile h2:has(+ .form-table .user-description-wrap), +form#your-profile .form-table:has(.user-description-wrap) { + display: none; +} + +/* +*/ +form#your-profile #application-passwords-section { + display: none; +} + +/* +*/ +form#your-profile h2:has(+ .form-table.xoo-aff-form-table), +form#your-profile .form-table.xoo-aff-form-table { + display: none; +} diff --git a/plugins/cipf_plugin/php/admin_user_profil.php b/plugins/cipf_plugin/php/admin_user_profil.php new file mode 100644 index 0000000..6762f2f --- /dev/null +++ b/plugins/cipf_plugin/php/admin_user_profil.php @@ -0,0 +1,38 @@ + diff --git a/plugins/cipf_plugin/php/hide_admin.php b/plugins/cipf_plugin/php/hide_admin.php index 575d95a..4447b10 100644 --- a/plugins/cipf_plugin/php/hide_admin.php +++ b/plugins/cipf_plugin/php/hide_admin.php @@ -91,4 +91,5 @@ function restrict_admin_access_CIPF() { + ?> diff --git a/plugins/custer/custer.php b/plugins/custer/custer.php index 3724aac..cbb4f81 100644 --- a/plugins/custer/custer.php +++ b/plugins/custer/custer.php @@ -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.0 +Version: 0.2.1 Author URI: */ diff --git a/plugins/custer/format_user_infos.php b/plugins/custer/format_user_infos.php index b05caea..6f5fad2 100644 --- a/plugins/custer/format_user_infos.php +++ b/plugins/custer/format_user_infos.php @@ -59,18 +59,18 @@ function format_user_info($query, $current_user, $user_id, $if_empty = '') { * return author page url * */ - if ($query === '__author_page__') { + if ($query === '__author_page_url__') { $output = get_author_posts_url($user_id); return \CUSTER\return_result($output); } /* - * if is special query __user_post__ + * if is special query __user_post_url__ * return author page url * */ - if ($query === '__user_post__') { + if ($query === '__user_post_url__') { $output = \CUSTER\find_user_post_url($user_id); return \CUSTER\return_result($output); }