johnnyenglish14
Forum Replies Created
-
Hiya cheers for that. I was able to figure out how to get it to reload the same page instead of going to specific url and also cuts out the extra stuff after the # symbol (can be changed).
For anyone else that comes across this here is my final code:<?php add_action( 'wp_footer', function(){ global $post; ?> <script type="text/javascript"> jQuery( document ).ready( function($) { setTimeout(function() { $('.forminator-custom-form').trigger('after.load.forminator'); },100); $(document).on('after.load.forminator', function(event, form_id) { jQuery('form.forminator-custom-form').on('forminator:form:submit:success', function (e, formData) { var form_id = e.target.id; if ( form_id == 'forminator-module-1288' ) { let url = window.location.href.split('#')[0] setTimeout(function(){ window.open(url, '_self'); }, 1000); } }); }); }); </script> <?php }, 9999 );
Thanks for the reply.
While as I did say I had a separate page with it in I did just try it as an actual widget and not a Forminator widget and then it worked on the separate page. The problem is if it can’t work inside the popup (or wherever the form is really) it’s kind of useless to me.
I just deleted this part and it worked inside the popup:
if( ! $post instanceof WP_Post || ! has_shortcode( $post->post_content, 'forminator_form' ) ) { return; }
Is there a reason this part is necessary or something?
Anyway can this be adjusted to make it work on reloading to same page (but minus the #sign-in that the popup creates)? As mentioend I did add a embed url hidden field and I know that takes out that # part. I would assume it would be easiest to use that.
Thanks so much for the help.
Ok here you are: https://pastebin.com/uwRUKfra
I should point out I’m using this login form inside a popup for the main part so the form can pop up on any page. I do also have a separate page where the login form is embedded (as Elementor widget) but also doesn’t work on that. I have tried the different behaviour options like ajax/page caching etc and none of them made it work.
It would also be good to reload them to the page they were on instead of specific page (I have a {hidden-1} field with Embed URL set, which is what I use for current redirect). Thanks.
Forum: Plugins
In reply to: [Royal Elementor Addons and Templates] How can I set active tab via url?Cool thanks for that. I’ll be waiting for the update to come.
I was talking about editing the email that comes with the link to activate the account if you set the registration to “email activation”. I was able to fix it though thanks to help from someone else. In that image you shared it was actually because I had that set to none that I wasn’t able to edit the message.
Hi is there any update to this being fixed? I’m also having this issue with hiding the form just giving the default text for the registration form.
Nevermind I’m dumb.
All I had to do was change the # to a . in the element selector (so “.login-user”) and there we go. I didn’t realise the . was the css thing since I don’t really know much about css until I just saw a video.
Anyway hope this helps someone else.Hi thanks for the reply.
I had already come across that topic in my searches and it looks like to me it’s only dealing with the post activation email and not the actual email activation.
I’m trying to edit the email message that gets sent out to verify the users email address before the account gets activated.
As I mentioned, the code successfully changes the subject but not the message.
In the link I provided I can see Forminator edits the key in some way. Does it need to utilize the same things it does in that linked php file?Forum: Plugins
In reply to: [Royal Elementor Addons and Templates] How can I set active tab via url?Is there a way to add a mu-plugin or something that could make it work?
Surely must be some way. I know the popups tool has the ability to check if a string is inside the url before showing. Could what that uses be implemented into changing the active tab value somehow? I’m no php coder so I wouldn’t know but would be amazing if there was a way to get that to work.
Thanks for your reply.Thanks for the response.
I changed the things that needed to. The form ID, that’s the number I get in the shortcode right? It’s 762 for my login form.
I created a php file in the mu-plugins folder and it shows up as one in the installed plugins so that part worked.Unfortunately it’s not doing anything non standard. I tried on a couple of browsers and in incognito just in case but it just gave my hide form success message and no redirect.
Could there be something wrong with this code or have I missed something, or some other setting needs to be set for it to work?