Beee
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] $this->is_active not reachedA TML Page; /login/?pending=activation
I use the shortcode on both the register and login page.
[theme-my-login default_action="login" show_title="0"]
Forum: Plugins
In reply to: [Theme My Login] $this->is_active not reachedI’ve tried it and it didn’t show any message after registering.
Forum: Plugins
In reply to: [Theme My Login] Override message for ‘action complete’Perfect. I added message and it did what I wanted it to do.
Forum: Plugins
In reply to: [Theme My Login] $this->is_active not reachedI’m not quite sure what you mean ?
Forum: Plugins
In reply to: [Theme My Login] Override message for ‘action complete’That didn’t work out as expected ?? Adding the message works, but I get another message which I didn’t expect.
See https://imgur.com/a/jAfrE.
So I tweaked my login form a bit to not show the error message when activation is complete.
Like this:
<div class="tml tml-login" id="theme-my-login<?php $template->the_instance(); ?>"> <?php $template->the_action_template_message( 'login' ); ?> <?php if ( isset( $_GET['activation'] ) && 'complete' == $_GET['activation'] ) { // do nothing } else { $template->the_errors(); } // etc. ?>
It does produce the result I want, but am I overlooking something if I remove the message there ?
- This reply was modified 7 years ago by Beee.
Forum: Plugins
In reply to: [Theme My Login] Override message for ‘action complete’The message works, but it’s styled as an error (red border, red background). Which is expectable because it has the class ‘error’.
Would it be an idea to remove the error but to add a template message ?
Forum: Plugins
In reply to: [Theme My Login] Override message for ‘action complete’AAH… It’s an ‘action message’. I tried hooking into template message, but that didn’t work out as expected.
Will try this and report back.
Forum: Plugins
In reply to: [Theme My Login] $this->is_active not reachedThis page explains the base concept of it.
https://timber.github.io/docs/reference/timber-post/It pulls all post data into $context[‘post’].
It can then be accessed in twig by echoing post.contentForum: Plugins
In reply to: [Theme My Login] Override message for ‘action complete’That second one is what I’m looking for. Can you provide some insight which this is ?
Forum: Plugins
In reply to: [Theme My Login] Filter available to add placeholders for passwords ?Awesome. That did the trick, thank you.
Forum: Plugins
In reply to: [Theme My Login] $this->is_active not reachedThanks for the reply, now I understand why it took so long….
I understand what you say but that is just not possible when you use Timber, which is a plugin that exists in the WP repository.
Twig is a templating language (by the people of Symfony) which is interpreted by Timber. This doesn’t have the traditional loop anymore, because logic and design are separated.
I have made a workaround by commenting out these lines (which makes it work), but it’s not ideal since it’s hacking into core and I don’t know what any other consequences might be.
Forum: Fixing WordPress
In reply to: Access plugin fileI placed the functions in the wrong place so they were hooking to early/late, so disregard my previous comment ??
Forum: Fixing WordPress
In reply to: Access plugin fileI’m looking to do something similar but I keep getting a 500 error. Even when I copy the default code from WP docs…. Dito with your code… Any tips/tricks ?
Forum: Plugins
In reply to: [Theme My Login] Allow weak passwordPlz remember it doesn’t show on the page you listed in your OP. That is the form to send the email which has the link to reset the password.
Visit link X (to reset password).
Enter login/email.
System sends email to you.
You click the reset link and get redirect to page Y.
On page Y is where the weak password setting shows.Forum: Plugins
In reply to: [Theme My Login] Allow weak passwordJust look at the source code: https://github.com/jfarthing84/theme-my-login/blob/6.4/templates/resetpass-form.php#L26