Ronaldt
Forum Replies Created
-
Hi @wpmudev-support2, I’m not able to check since the other plugin changed their code to vanilla javascript (which is much better for simple code like this, if you ask me). I don’t have the original code with the jQuery.noConflict() any more to test with.
Thanks for the follow up Kasia.
Wish I could be of more help, but I trust in you hahaKind regards,
RonaldIt’s a third party premium plugin named CCL (custom-login form plugin).
We also contacted them about the problem and they rewrote the script to vanilla javascript which is better. Basically what it did before was:init.php
public function setScriptsAndStyles(){ // .. wp_enqueue_script( 'form-frontend', Utils::plugin_url() . 'js/form-frontend.js', array('jquery'), '1.1.19', true ); // .. } add_action( 'wp_enqueue_scripts', [$this, 'setScriptsAndStyles'] );
And this is where it actually went wrong:
js/form-frontend.js
jQuery.noConflict(); // this was the problem jQuery( document ).ready(function( $ ) { // Autofocus on login form if( $('input#user_login').length > 0 ) { $('input#user_login').focus(); } });
Hope it helps to replicate it.
Thanks,
RonaldHi guys, sorry for the lack of communication.
I somehow missed @wpmudev-support1’s reply and then with Christmas came and I wasn’t able to jump into it when @wpmudev-support6 replied.Looked into it today and found out that the problem was caused by a 3rd party plugin that used
$.noConflict();
directly in the wp_enqueue_scripts hook. When I commented out that line of code, Forminator no longer throws the error I reported earlier.
Weird thing is that it actually throws the error in Forminators’ main.js file and only on the Forminator Settings page, so maybe you can check if that is all as it is supposed to be.I did however notice another error in the Forminator Settings pages when there is no site/secret keys filled in. This happens both in Firefox and Chrome on clean installs (WP’s twentynineteen theme with just the Forminator plugin):
Uncaught Error: reCAPTCHA placeholder element must be an element or id
When I fill in the site/secret keys and reload the page, the error is gone. So it doesn’t break anything, I just wanted to let you know. Hope it helps.
Forum: Plugins
In reply to: [Recent Tweets Widget] TranslationThanks @grimmdude, placed the translated .po/.mo files in the /wp-content/languages/plugins/ directory and that did the job. ??
Forum: Plugins
In reply to: [Recent Tweets Widget] TranslationI’ve been waiting on it for quite some while. Do you have any idea when it’s ready? Not that complicated, just load the text domain and generate a .POT file that we can translate.
Thanks @avantwave, that fixed it for me too.
Forum: Fixing WordPress
In reply to: (Chrome) Grid problem. Text will, but featured image won't show upChances are that it is a bug in the latest version of Chrome (> 44.0.2403.157 m). See this topic: Strange Dashboard Display Problem when using chrome
The solution (client-side) from that topic:
Go to chrome://flags/#disable-slimming-paint
Enable the “Disable slimming paint” option.
Ensure that the “Enable slimming paint” option below it is not turned on.
Relaunch Chrome.I realise this doesn’t really fix it for your visitors. Up to you what to do with it, leave it be and hope for a quick update from the Chrome team, or take this as a start point of debugging…
Good luck.
[edit]
Okay, by the looks of things there might be something you can do. It’s a confirmed issue on both core.trac.www.remarpro.com and the Chromium project. It might need a temporary fix until the bug is fixed and pushed to the stable version of Chrome. I would start with puttingtransform: translateZ(0);
on the affected elements as mentioned in those tickets.Forum: Plugins
In reply to: [Football Pool] Bonus questions can't be saved after changeCan no longer edit my post, but I meant “No”, not “Yes” ??
For clarification;
No, it does not happen only in this scenario. Yes, I tried putting them in one “position” of the website (default WordPress text editor)Forum: Plugins
In reply to: [Football Pool] Bonus questions can't be saved after changeYes.
I created a new page and pasted the two shortcodes right underneath each other. Somehow it creates three forms in the code, two of which share the same id attribute.To illustrate it a little bit better I’ve created a screenshot of the generated code in the content portion of my template:
https://s28.postimg.org/l25qb0dhp/Screen_Shot_2014_06_11_at_09_51_52.pngPS I’m aware of the two different submit buttons, one for the separated bonus questions and one for the predictions + bonus question (connected to a match). But changing a bonus question in the separate form and clicking the submit button for that specific form still does not save the change. The same for the other form, of course.
Forum: Reviews
In reply to: [Football Pool] Awesome pluginHey Rick2079,
My the has as CSS override option in the the options, as many themes do. I basically changed the styling of some elements there, so it would override this plugin’s default styling. A separate .css for plugins would be a fine place too, as long as it will be loaded after the styling of this plugin or it would be much harder to override the styling (using ‘!important’ is bad practice).I also used the different shortcodes documented under the [help] page of this plugin to separate some of the elements. My theme uses VisualComposer so I was able to easily fill a page with multiple columns of info (without the hassle and limitations of widgets and sidebars), like these three columns for one page; rankings || upcoming matches || text content (basically Call to Action buttons to register/login).
On another page two columns; predictions table || bonus questions.Basically by moving things around and overriding some CSS I got it neatly integrated into my theme/site.
Forum: Plugins
In reply to: [Football Pool] Show missing info in prediction formDidn’t yet get it to work, but I do think this is what I am looking for.