Jasonian
Forum Replies Created
-
Forum: Plugins
In reply to: [Postie] Connection via pop3 to office 365 failedThis means you’ll want to use a different mail service for Postie, unless Postie updates to work with Microsoft’s Bearer auth.
Forum: Plugins
In reply to: [Postie] Connection via pop3 to office 365 failedhttps://learn.microsoft.com/en-us/lifecycle/announcements/new-resources-modern-authentication
POP and IMAP will no longer work as of Jan 1, 2023.
My IT admins were able to re-enable POP3 for me, but we need a better way to handle this before Jan 1.
Forum: Plugins
In reply to: [Postie] Connection via pop3 to office 365 failedI’ve heard that MS has turned off basic auth entirely.
Not sure if this will work going forward.
Forum: Reviews
In reply to: [Mortgage Calculators WP] Need Help! Updating Plugin Broke LicenseI can confirm. They did send a working package when I asked.
It’s been working fine ever since. Not sure about updates, though.
Thanks guys!
Forum: Reviews
In reply to: [Mortgage Calculators WP] Need Help! Updating Plugin Broke LicenseSame! apparently, their demo didn’t stop working, though.
https://lenderd.com/loan-officer-websites/#theme8
I reverted to the last version of the plugin I had, and you know what? The Refi and Affordability calculators disappeared. The latest update doesn’t even have the “Premium” tab mentioned in the Readme file, so there is no way to restore the license key.
I submitted a ticket through their support tab. Nothing so far.
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] Plugin withdrawn from WordPress@waylayer My pleasure! I have to still use it (way too deep to change now!) and patching was the only way.
Looks like it!
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] AlternativeI have a patched version that doesn’t allow anyone who is not an admin to add a redirect.
You can browse the change (I copied the original plugin code, then submitted a PR with the security fixes). The main directory has a .zip that you can download.
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] Plugin withdrawn from WordPressI have a patched version that doesn’t allow anyone who is not an admin to add a redirect.
You can browse the change (I copied the original plugin code, then submitted a PR with the security fixes). The main directory has a .zip that you can download.
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] Plugin withdrawn from WordPressIt was removed for security reasons, because a Contributor could potentially set up a redirect to an external website. If you don’t have anyone else registered on your site, and you have automatic registration turned off, there is no risk to you.
Forum: Developing with WordPress
In reply to: Simple PHP question – how to parse a url stringGive this a try:
$url = "/devel/lms/ja/lessons/planning-a-meeting-int/"; $my_array = explode("/",$url,5); $new_url $my_array[4];
echo $new_url
should give you
lessons/planning-a-meeting-int/
Just as stated above.- This reply was modified 5 years, 1 month ago by Jasonian.
Forum: Developing with WordPress
In reply to: 3rd-party portal using JavaScript and HTMLHi Upshift-86.
It looks like the app is looking for URL parameters, which it then returns as objects.
To get it to work, all I had to do was add the parameter of configId as a query string.
<iframe src="//api-web.rxwiki.com/refill/?configId=2000517c-b911-44b8-9ae6-0a845c692874" id="rxRefillApp" width="100%" scrolling="no" style="min-height: 200px; overflow: hidden; height: 571px;"></iframe>
You can add the other parameters, separating them by an ampersand.
It looks like the only allowed parameters are as follows (two different files, running similar functions)
From embedPortalApp.js
var allowedParams = [ 'configId', 'email_token', 'password_reset', 'validated', 'content_id', 'defaultLocationId', 'utm_campaign', 'utm_source', 'utm_medium', 'utm_term', 'utm_content' ];
From embedRefillApp.js
var allowedParams = [ 'configId', 'validated', 'defaultLocationId', 'utm_campaign', 'utm_source', 'utm_medium', 'utm_term', 'utm_content' ];
Maybe this helps.
Forum: Developing with WordPress
In reply to: functions.php check for subdomain in array as conditionalOh, good catch. underscores, not hyphens. Can you tell I write JS more often?
Thanks!
Forum: Developing with WordPress
In reply to: condicional para ejecutar .js por resolucionYou cannot determine window size from the server. Ergo, you cannot write the conditional in php in a plugin or theme functions.php.
You CAN add a conditional to the JS file to be loaded, however. This is especially simple if you have the entire script in a single function.
Let’s say the script to run IS a single function called
smallScreen();
You’re already most of the way there with the snippet you shared.
jQuery(document).ready(function() { if (window.width < 600px) { //see comments below about checking for height as well smallScreen(); } jQuery(window).on('resize', function() { if (window.width < 600px) { smallScreen(); //function to execute if window width is less than 600px else { largeScreen(); //function to execute if window width is 600px or greater. }); } });
If you also want to account for landscape mode tablets, you’ll want to also check for height, which you can do as an OR statement in the javascript conditional.
if (window.width < 600px || window.height < 800px) {
This must be written in the JS file, and the JS file can be included on a per page basis as in your example, but it cannot be loaded conditionally to device size. However, within the script, you can selectively call the function based on window size.
I hope this helps!
Forum: Fixing WordPress
In reply to: How to remove bottom scroll barYou could just hide the overflow, since it doesn’t appear that anything will be cut off by doing so.
Add a little custom CSS.
htm { overflow-x: hidden; }
Forum: Fixing WordPress
In reply to: Changing img src depending on text clickedYou can do that with a little jQuery quite easily.
let img1 = "//sitename.com/wp-contents/uploads/../../filename.jpg"; let img2 = "//sitename.com/wp-contents/uploads/../../filename.jpg"; let img3 = ... jQuery("#text1").on('click', function() { jQuery("#image").attr('src', img1); }); jQuery("#text2").on('click', function() { jQuery("#image").attr('src', img2); }); jQuery("#text3").on('click', function() { jQuery("#image").attr('src', img3); });
Obviously, modify the code as needed. You can just include this in your HTML inside of a <script></script> tag in the text editor (not the visual editor). If you’re using Gutenberg, you can use an HTML block to put this in.
- This reply was modified 5 years, 1 month ago by Jasonian. Reason: fixed spaces formatting of code