Márcio Lopes F?o
Forum Replies Created
-
Forum: Plugins
In reply to: [OAuth Single Sign On - SSO (OAuth Client)] Backchanel logout problemIt seems that the issue itself was that the keycloak service that needs the configuration. Was not a thing inside the plugin.
After some ressearch of the plugin inner workings this code worked by calling the widget from PHP:
?the_widget('mooauth_widget');die;
Also this way I can setup a custom login page that will redirect it to the keycloack authentication page:
<div style="display: none;">
? ? ? ? ? ? <?php
? ? ? ? ? ? the_widget('mooauth_widget');
? ? ? ? ? ? ?>
? ? ? ? </div>
? ? ? ? <script>
? ? ? ? ? ? //attach listener to dom load
? ? ? ? ? ? document.addEventListener('DOMContentLoaded', function() {
? ? ? ? ? ? ? ? moOAuthLoginNew('keycloak');
? ? ? ? ? ? });
? ? ? ? </script>
? ? ? ? <?php die; ?>Just noticed that there is a Admin pannel specific for the JWT Login Settings, it should have been pointed out at the instructions.
Forum: Plugins
In reply to: [Post Grid and Gutenberg Blocks - ComboBlocks] Pagination is not workingThis morning I noticed that the page do a lazy loading Which is fine.
I’ve increased the range of posts then. It fix it for now.But it was such a inconvenience when I limited the number of posts to 50 And had no idea of how to achieve older posts.
Forum: Plugins
In reply to: [New User Approve] New user notification email with wrong approval linkCorrected it by editing this file:
/wp-content/plugins/new-user-approve/new-user-approve.phpUpdated the link by editing this function:
public function admin_approval_email( $user_login, $user_email ) { $default_admin_url = admin_url( 'users.php?s&pw-status-query-submit=Filter&new_user_approve_filter=pending&paged=1' );
Updated to this:
public function admin_approval_email( $user_login, $user_email ) { $default_admin_url = admin_url( 'users.php?page=new-user-approve-admin' );
The url sent now does not come as a “a” element (link), looks like I’ve created a new problem here.
Forum: Plugins
In reply to: [New User Approve] Confirmation email using user email as sender goes to spamI’ve fixed it by editing wp-content/plugins/new-user-approve/new-user-approve.php
Changed this function:
public function email_message_headers() { $admin_email = get_option( 'admin_email' ); if ( empty( $admin_email ) ) { $admin_email = ‘support@‘ . $_SERVER['SERVER_NAME']; } $from_name = get_option( 'blogname' ); $headers = array( "From: \"{$from_name}\" <{$admin_email}>\n", ); $headers = apply_filters( 'new_user_approve_email_header', $headers ); return $headers; }
changed the $admin_email at the begining to
$admin_email = '[email protected]';
so it don’t pass the empty() verification and uses the defined email.
Forum: Plugins
In reply to: [New User Approve] New User Approval – Approval Email CustomizationYou can edit it on /wp-content/plugins/new-user-approve/includes/messages.php
just be careful to not change the code, only the texts.There is also a set of different language messages in the localization folder, but that was too complex to configure for me also I didn’t liked the portuguese translations.
- This reply was modified 4 years, 8 months ago by Márcio Lopes F?o.