Support » Plugin: Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin » Content Moderation
Content Moderation
-
Hi,
Is it possible to force any changes made to an individuals profile page to not appear unless moderated and approved by an administrator?
-
Yes but I’m not down as the site admin as I’m contracted onto this. Bear with me and I will try and get hold of a copy.
Hi Miss Veronica,
Apart from the standard part about safe mode at the start, the error details are as follows:
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.2.2
Active theme: !!!!!!!!!!!!! (version 1.0.0)
Current plugin: Ultimate Member – Profile Content Moderation (version 2.0.0)
PHP version 7.4.33Error Details
=============
An error of type E_ERROR was caused in line 73 of the file /home/sites/2a/2/284d20b7b1/public_html/wp-content/plugins/um-profile-content-moderation-main/um-profile-content-moderation.php. Error message: Uncaught Error: Call to private method um\core\Mail::locate_template() from context ‘UM_Profile_Content_Moderation’ in /home/sites/2a/2/284d20b7b1/public_html/wp-content/plugins/um-profile-content-moderation-main/um-profile-content-moderation.php:73
Stack trace:
#0 /home/sites/2a/2/284d20b7b1/public_html/wp-content/plugins/um-profile-content-moderation-main/um-profile-content-moderation.php(310): UM_Profile_Content_Moderation->copy_email_notifications_content_moderation()
#1 /home/sites/2a/2/284d20b7b1/public_html/wp-includes/class-wp-hook.php(308): UM_Profile_Content_Moderation->um_extend_admin_menu_content_moderation(”)
#2 /home/sites/2a/2/284d20b7b1/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#3 /home/sites/2a/2/284d20b7b1/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/sites/2a/2/284d20b7b1/public_html/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-menu.php(184): do_action(‘um_extend_admin…’)
#5 /home/sites/2a/2/284d2Sorry this is being fixed by UM in the next version 2.6.3
You can make the required change by editing the file
.../wp-content/plugins/ultimate-member/includes/core/class-mail.php
at line 120 change from
private function locate_template( $template_name ) {
to
public function locate_template( $template_name ) {
Also documented by the UM developers here
https://github.com/ultimatemember/ultimatemember/commit/aafd4d0962fdbf993e23727f5a87f3a95dd94b86
Brilliant! That’s worked nicely. Thanks you so much for your time and effort on this!
Last question… will this plugin be in the WordPress Repository at some point so automatic updates can be enabled?
I will be working with some more updates to this plugin and don’t know if it will be widely used so all extra efforts for doing a WP supported plugin is justified.
Later today you will get version 2.1.0 with a time stamp and notice in the modal if a denial email has been sent for the Profile update being watched at.
The plugin version 2.1.0 is ready for download.
https://github.com/MissVeronica/um-profile-content-moderation
Hi Miss Veronica,
I’ve installed version 2.1.0 and updated the emails but when a change is made to an account profile, we do not get the message that it is pending review and there is nothing showing to review in the moderation list.
Verify that the Profile form is selected and
the primary role of the user is selected ( highest role priority )
in UM Settings -> General -> UsersAll Email templates must also be selected.
-
This reply was modified 3 months, 3 weeks ago by
missveronica.
-
This reply was modified 3 months, 3 weeks ago by
missveronica.
It’s the same as before – default profile for the form and subscriber for the user role.
Emails were also set to the new email templates now added.
Try to do a “Clear cache of Users” at the UM Dashboard.
I’ve cleared both the user cache and user status cache and still nothing 🙁
Use the phpMyAdmin to look at the
usermeta
table
search with the user_id for the account and meta_keyum_content_moderation
meta_value is either 0 or a timestamp like 16862382320 value an update has been accepted
1686238232 the time when an update was submittedThe value is “1686053290” which indicates an update has been submitted for user ID80 but there is still nothing showing to indicate anything needs to be reviewed.
Look at this User at “WP All Users” if the Account is “Approved”?
If Yes, set the Account to “Pending Review”.
-
This reply was modified 3 months, 3 weeks ago by
- You must be logged in to reply to this topic.