Moe Loubani
Forum Replies Created
-
Forum: Reviews
In reply to: [Protect Uploads] MALWARE!@alexanderandrews1989 thanks for the heads up but it wouldn’t have been this plugin that was injected but rather a plugin with the same name. Is there any chance you could email me at [email protected] and send me a copy of the plugin that was injected so I can take a look?
https://wpscan.com/plugin/protect-uploads shows no vulnerabilities and I’ve looked over the code but I’ve found nothing that could be a hack that starts with this plugin
Nevermind, just saw the comments that my IDE hides about the templates folder. That will work! Thanks 🙂
Forum: Developing with WordPress
In reply to: Change locale inside ajax callI don’t understand, if you set that filter above does the PDF not get translated? I mean if you set it sitewide it must, right?
You even say here that it worked:
The only way I got it working is either by changing the language of the WordPress backend in Settings, or by using the locale hook
So just change the conditional to something like if $_POST[‘action’] === ‘generate_pdf’ and when the ajax call happens it should be in the new language
- This reply was modified 9 years, 2 months ago by Moe Loubani.
- This reply was modified 9 years, 2 months ago by Moe Loubani. Reason: meant $_POST
Forum: Developing with WordPress
In reply to: Change locale inside ajax callMaybe like the example set here https://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/locale:
add_filter( 'locale', 'set_my_locale' ); function set_my_locale( $lang ) { if ( 'gl' == $_GET['language'] ) { // set to Greenlandic return 'ka_GL'; } else { // return original language return $lang; } }- This reply was modified 9 years, 2 months ago by Moe Loubani.
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?Woot awesome! Good to hear it worked out 🙂
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?It could be an issue with curl and your web host, I did a bunch here without any problems and I think I’ve seen other people use it for thousands of images without any problems like that.
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?Hmm that’s weird, it should work with most of those (the ones with .jpg endings at least) not sure what is going on with the ones with no extension though. When I checked just now it worked with 5 of those images above so it must be something related to your hosting setup.
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?Lol laserjobs, funny that you commented 1 minute ago I literally just updated the link to handle those types as well,
http://www.moeloubani.com/downloads/import-external-images-sqspc.zip
Same link as before.
Give it a try and let me know if it works for you! 🙂
Forum: Plugins
In reply to: [Pootle Pagebuilder - WordPress Page builder] Site moves not workingSeems like this was a server issue rather than an issue with the plugin, my apologies!
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?That’s great to hear Angie!! I’m a bit busy with some other work but if you check back in a few days I’ll try to update the plugin to handle the ones with ?format=original, I know I ran into it but for me it was just one or two with that so I did them manually.
Will post here when I have a solution! 🙂
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?Hello everyone, I ran into this problem as well and I’ve modified the Import External Images plugin to permit the Squarespace images to be exported. I just swapped out the function that it was using (download_url) with a custom curl one that I’m sure passed some stuff through the headers that the WP function didn’t. I was having the issue where my filenames were already ending in png or jpg yet no import was happening. All fixed now!
Here is a link for you guys to download a copy: http://www.moeloubani.com/downloads/import-external-images-sqspc.zip
Enjoy, hope it makes life easier for some of you! 🙂
Forum: Plugins
In reply to: [WP Dash Support] Screenshots please?Hello AnaKelly, are you sure you added and email? Can you check if it’s working with other plugins/contact forms?
Forum: Plugins
In reply to: [WP Dash Support] Screenshots please?Hello Brad, I just uploaded a couple a few minutes ago, are they showing up for you? There’s one of the default form on the dashboard and one of the email you get coming from the form, I could take one of the settings area and/or a customized form if you’d like to see that?
Please let me know if you’d like to see any others, I’m more than happy to upload them!
Thanks for getting in touch 🙂