tylercollier
Forum Replies Created
-
Forum: Plugins
In reply to: [Strong Testimonials] Can’t activate plugin programmaticallyThank you!
I almost have the answer. Rather than using the url from
wp.ajaxurl
, I should have been using the WP REST API, with a URL likehttps://mysite.dev/index.php/wp-json/wp/v2/comments?post=1
.The problem I have now is that oddly doesn’t include a value for
data-ulike-id
. Note how it’s the empty string in the content JSON response:"content": { "rendered": "<p>Hi, this is a comment.<br />To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.<br />Commenter avatars come from <a href="https://gravatar.com">Gravatar</a>.</p><div id="wp-ulike-comment-" class="wpulike wpulike-default" ><div class="counter"><a data-ulike-id="" data-ulike-type="likeThisComment" data-ulike-status="3" class="wp_ulike_btn image"></a><span class="count-box">0</span></div></div>" }
I can reproduce this. Do a fresh WordPress install of 4.8 with the uLike plugin and add a comment to the only existing post, then fetch the comments with the URL I mentioned above.
- This reply was modified 7 years, 4 months ago by tylercollier.
To anyone else coming across this, they are helping me by suggesting to do the standard ‘turn off all the plugins 1 by 1 to find out which one conflicts with jetpack’.
I am having the same problem. Would you please post any solutions?
co1inr’s fix worked for me. Set redirect=””.
[login-with-ajax redirect=""]
Forum: Plugins
In reply to: [Login With Ajax - Fast Logins, 2FA, Redirects] Login callbacks?It turns out I don’t need the callbacks. I had not marked “Use Mixpanel people” in my Segment project’s integration for Mixpanel.
Forum: Plugins
In reply to: [Login With Ajax - Fast Logins, 2FA, Redirects] Using invalid jQuery selectorIt should be default. I reported to you it was version 1.7.1 but that was actually the version of one of my browser plugins. I actually have in my page sources jquery 1.11.0 and jquery-migrate 1.2.1 (which I had never heard of).
This is wordpress 3.9 btw.
This isn’t causing me problems, I noticed only when I was looking through your source and trying the
Disable refresh upon login?
setting. So you can close this if it works for you.This code launches/shows the Login With Ajax modal login form. You must have the Login With Ajax plugin installed, and you must have set up the Login With Ajax widget (or shortcode) to use the modal template. Then by using the code above, you can have any button or link on your site launch the widget, which can be placed on a more prominent call-to-action.
In case anyone else, here it is. This code depends on jQuery. Replace the “.myclass” part with the selector for your DOM element(s).
$(document).on("click", ".myclass", function(e) { e.preventDefault(); var target = $('.lwa').data('modal'); target.reveal({ modalbgclass: 'lwa-modal-bg', dismissmodalclass: 'lwa-modal-close' }); });
+1