WordPress – I'm Knight https://imknight.net From Freelancer to Bootstrapper Mon, 16 Jan 2017 14:12:43 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 How to bulk upload images for WordPress https://imknight.net/wordpress/bulk-upload-images-wordpress/ https://imknight.net/wordpress/bulk-upload-images-wordpress/#respond Thu, 21 Apr 2016 15:54:29 +0000 https://imknight.net/?p=3705 If you import content for your WordPress site, a major headache is to import lots of images. I have a project recently which need to import few thousand images, usually for bulk upload images, the...

The post How to bulk upload images for WordPress appeared first on I'm Knight.

]]>
If you import content for your WordPress site, a major headache is to import lots of images.

I have a project recently which need to import few thousand images, usually for bulk upload images, the first plugin that comes in my mind is Add From Server, but Add From Server actually can’t handle too many images at one go, I getting lots of error when I am trying that.

Today I going to teach how to bulk upload all the images by batch – using Media From FTP. There are lots of processes need to run for upload one images and it will affect the bulk upload process. We are going to turn off those setting to speed up the upload process.

  1. First, we need to turn off the resize feature, you can change this under Settings – Media, change all the size to 0, this will prevent all resize process.
  2. Comment out the current using theme, any code that related to ‘set_post_thumbnail_size’ and ‘add_image_size’, comment out these codes will prevent the additional resize process.
  3. Upload the Media from FTP plugin.
  4. Test the “Search & Register” to make sure the plugin run without problem.
  5. Prepare a folder with all your images; this will prevent accidentally import other files.
  6. Check on the Command-line tab and follow the instruction to change some of the code.
  7.  Test run with Command-line with a small sample to make sure the import without any issue.
  8. Schedule the process with the cronjob.
  9. Wait for all the images import; images will be deleted once imported.
  10.  Change back Step 1 and 2 and install regenerate thumbnail plugin to regenerate all the resize thumbnail.

For my personal experience, a 2GB VPS can import ten images every 2min without affect the server performance. If you using any cache plugin  ( example WP-Rocket ) turn it

Turn off any cache plugin  ( example WP-Rocket ), if you keep seeing the import process didn’t run and keep showing the same messages.

 

 

The post How to bulk upload images for WordPress appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/bulk-upload-images-wordpress/feed/ 0
Mean it when you say it https://imknight.net/wordpress/mean-say/ https://imknight.net/wordpress/mean-say/#comments Mon, 09 Feb 2015 00:30:01 +0000 https://imknight.net/?p=3413 Last week friday I have some bad experience on one of my favourite plugin – WP Rocket , it release a new feature for auto update some time ago and the first time it try...

The post Mean it when you say it appeared first on I'm Knight.

]]>
Last week friday I have some bad experience on one of my favourite plugin – WP Rocket , it release a new feature for auto update some time ago and the first time it try to perform auto update and the result is the plugin auto turn off , you can imagine when a plugin that handle caching suddenly go off , ya some of the site was unable to visit.

As a developer, I m perfectlly understand this kind of things happen, but what important is how you handle after that ? in my thought is WP Rocket should immediately send out email to all their user , because this is something potential to bring down the site, isn’t this something you should notify your user in the first place once you find out ?

So I tweeted and make my suggestion , but there are no reply from them , well ok at least I did suggest.

then just yesterday , WP Rocket release a post  Transparency matters  – “we’ve decided that we have absolutely nothing to hide” ,  I was like you never tell your user about what happen and you are still daring to make a claim like this ? So I tweeted again

this time they reply and after they reply I receive the email mention about this issue and mention about the new version is upcoming, what’s the best part ? the comment I leave they are still hide it, don’t think they going to approve.

Transparency_matters

Nothing to hide my ass , do it if you claim so , if you can’t do it , don’t mention it.

The post Mean it when you say it appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/mean-say/feed/ 2
Matt Mullenweg Live In SG https://imknight.net/events/matt-mullenweg-live-sg/ https://imknight.net/events/matt-mullenweg-live-sg/#respond Thu, 05 Jun 2014 06:03:16 +0000 https://imknight.net/?p=3319 I just spend around 4~5 hours on travel yesterday in order to attend an event that meet up with the WordPress founder  – Matt Mullenweg. I do feel a little bit struggle to attend...

The post Matt Mullenweg Live In SG appeared first on I'm Knight.

]]>
I just spend around 4~5 hours on travel yesterday in order to attend an event that meet up with the WordPress founder  – Matt Mullenweg. I do feel a little bit struggle to attend since recently the causeway is really massive jam everyday but thinking of it I been using WordPress since 2004 and this is the first time I can really meet up with the WordPress founder and it also his first time coming to SG, so i have decided on the very last-minute I want to attend the event.

It is the first time I listen to Matt giving talk and I m really impress and love it very much , before I know it  the event is about to end, he is really humour and I believe he impress every one, he share about the beginning, current and the future of WordPress , GPL and about his passion on open source.

At the end of the talk, you can see everyone rush up to take photo with him, I would like to do it also but too bad I m on a rush to go , I only manage to take a photo of him with interesting look.

matt-mullenweg

Welcome Matt to Singapore and hopefully can see you coming to Singapore more often.

The post Matt Mullenweg Live In SG appeared first on I'm Knight.

]]>
https://imknight.net/events/matt-mullenweg-live-sg/feed/ 0
Filter Gravity Forms Input before saving https://imknight.net/wordpress/filter-gravity-forms-input-saving/ https://imknight.net/wordpress/filter-gravity-forms-input-saving/#respond Sun, 01 Jun 2014 14:52:23 +0000 https://imknight.net/?p=3315 I share some tips on Gravity forms about how to save Gravity Forms Advanced Field to Custom Meta Field and this time I would like to share how to filter the inputs from Gravity Forms before...

The post Filter Gravity Forms Input before saving appeared first on I'm Knight.

]]>
I share some tips on Gravity forms about how to save Gravity Forms Advanced Field to Custom Meta Field and this time I would like to share how to filter the inputs from Gravity Forms before saving to your database.

For my use case I would like to remove the ‘http://’ from the url field, so that all the url that inputs by the user will be standardize , the same tips can be use if you need to apply some filtering for any input before you actually save it, for example, you might want to remove the dollar sign ($) on a pricing input.

Example I have created this url field on the forms, you can see that the default placeholder for url field will be ‘http://’ , some of the user understand this, so that they might just put in their url without the ‘http://’, some user might not be understood, once they enter the field, the ‘http://’ is disappear , they might think they need to input the ‘http://’ in front of their url input, which is why this looks a bit confusing.

Gravity-Form-Url-Field

 

The easy to solve this is either add some validation JavaScript on the form or doing a backend filter on the input, , what I mean for backend filter is i will do a string replace on every url input, just to ensure all the url will be without ‘http://’.

Just added this code in the functions.php, the action is gform_pre_submission_1 where the 1 will be your form id, the input id for the POST parameter will the Field ID, added in a simple string replace function to ensure the ‘http://’ will be replace.

Hopefully this tips help, let me know if you handle situation like this differently.

The post Filter Gravity Forms Input before saving appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/filter-gravity-forms-input-saving/feed/ 0
WooThemes Data Breach https://imknight.net/wordpress/woothemes-data-breach/ https://imknight.net/wordpress/woothemes-data-breach/#respond Thu, 15 May 2014 01:03:17 +0000 https://imknight.net/?p=3293 From now I guess most of the WooThemes’s customer has receive the important update. If you have changed the credit card recently due to the Heartbleed bug recently , you might be save, if not...

The post WooThemes Data Breach appeared first on I'm Knight.

]]>
From now I guess most of the WooThemes’s customer has receive the important update. If you have changed the credit card recently due to the Heartbleed bug recently , you might be save, if not time to check your credit card bill now started from 2nd or 3rd May.

I still remember on 5th May morning, I woke up in the early morning and saw lots of of SMS from my Bank which mention about lots of transaction happen when I sleeping, yes my first hit by credit card fraud after using credit card for online payment for so long. My bank actually blocked the card after 15 transaction which i think is a bit inefficient, the recover process is troublesome which include fill in some paper form for all the transactions that you didn’t make and even the merchant credit back there are still some different due to the currency issue which again you need to call in to waive it.

I been thinking since the incident , which part of my payment goes wrong ? the  credit card has been use for a multiple web services company , is it one of these company has been breached ? Shall I inform them ? is it due to the Heartbleed bug ? after one week later I saw the WooTheme’s post and realise that must be the root cause , my last purchase on WooThemes is all the way back to Dec 2013, which is why I didn’t suspect in the first place.

woothemes-logo

I think WooThemes handle this data breach pretty well.

  • They been transparent with the follow-up update on their blog.
  • They change the payment gateway to Paypal almost immediately.
  • They email the customer with all the update.
  • They compensate customer with some discount promo.

Just like what Chris Lema posted everyone will have issue , with the data breach so often happen around the web , there is hardly any store that are 100% secure, again the recent Heartbleed bug is a very good example, what more important is how they handle after things like this happen.

For me I will still continue support WooThemes since I have a few client which running on the WooCommerce and so far I been using their product happily, but I will more cautions on how I using my credit card for online payment. What I can think of is only use 1 credit card for all the online payment, tie another credit card with my Paypal account, so that it won’t affected each other, always check my mobile phone SMS and

 

The post WooThemes Data Breach appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/woothemes-data-breach/feed/ 0
Save Gravity Forms Advanced Field to Custom Meta Field https://imknight.net/wordpress/gravity-forms-advanced-field-custom-meta-field/ https://imknight.net/wordpress/gravity-forms-advanced-field-custom-meta-field/#comments Tue, 13 May 2014 00:08:21 +0000 https://imknight.net/?p=3275 Last month , it happen that I need to build something for a client using the Gravity Forms , it is my first time using Gravity Form this premium plugin, it is a very interesting...

The post Save Gravity Forms Advanced Field to Custom Meta Field appeared first on I'm Knight.

]]>
Last month , it happen that I need to build something for a client using the Gravity Forms , it is my first time using Gravity Form this premium plugin, it is a very interesting plugin which help a lot if you need a front end submission form, I would like to share one of tips how you can use the advanced field mapping to the custom meta field of a post.

For example if you want to map a form field to a custom meta field for the post, just drag the Custom Field from the Post Fields section to your form and select from the drop down, which custom field it should map to, very easy.

gravity-form-save-custom-field-1gravity-form-save-custom-field-2

by now, when the user submit the form, the form value will auto save to that particular custom meta value, but what if you want to use the Gravity Forms Advanced Field ? some of the Gravity Forms Advanced Field allow you to save lots of time , for example the address field, you created all the fields in one go, no need to create each address field one by one.

Gravity Forms Advanced Field

How to map this Gravity Forms Advanced Field to your Custom Meta Field ? you need to write some code and put it under your functions.php , the action name should be gform_after_submission_<your form id> , the parameter $entry[‘29.3’] is map to 3rd sub field , for example if your Address field id is 29 , the 3rd field will be City, it follow the number order, you just need repeat the update_post_meta

Additional tips:

  • If you want to save the Gravity Forms Entry to custom post type, use this plugin
  • If you want to save Gravity Forms Advanced Field to ACF Plugins , use this gists , it just replace update_post_meta function with ACF function.

 

The post Save Gravity Forms Advanced Field to Custom Meta Field appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/gravity-forms-advanced-field-custom-meta-field/feed/ 2
WordPress Plugins – Simple Share Buttons Adder https://imknight.net/wordpress/wordpress-plugin-simple-share-buttons-adder/ https://imknight.net/wordpress/wordpress-plugin-simple-share-buttons-adder/#comments Mon, 28 Apr 2014 14:40:07 +0000 https://imknight.net/?p=3257 Recently I have a WordPress project , when I about to complete it , there is a request to add social media sharing buttons on the single content page, I was thinking this is...

The post WordPress Plugins – Simple Share Buttons Adder appeared first on I'm Knight.

]]>
Recently I have a WordPress project , when I about to complete it , there is a request to add social media sharing buttons on the single content page, I was thinking this is a easy task there are so many social media sharing plugin out there, but the only catch is it need to be support Tumblr sharing. It’s a bit rare that the client request for Tumblr sharing , most of the common request is Facebook and Twitter , some time Google+.

So I thought this should be an easy task and started my plugin searching journey, after spending few hour to search, download and testing , most of the plugin cannot make it.

These are some of the reasons :

  1. Plugins which is  part of big site like Addthis / Shareaholic require you to register an account first before you can use the plugin
  2. Plugins which is very complex to use.
  3. Plugins which is not working.
  4. Plugins without Tumblr sharing.
  5. Plugins with ugly icons.
  6. Plugins with poor setting page.

Simple_Share_Buttons_Adder

lucky after few hours trial and error, I found this plugin call Simple Share Buttons Adder , some of the features are

  • easy to set up and use
  • the default icons are good and you are allowed to replace with your own set of icons.
  • there are other setting for you to tweak for example shall it display the share count,the size of the button etc.
  • it support Tumblr
  • quite lightweight

simple-share-button-setting

these are all the social media site that support and it support email and print too.

Highly recommend if you looking for a simple and easy solution to make your site easier for sharing among social media, I have replace my old plugin on this site too.

 

 

 

The post WordPress Plugins – Simple Share Buttons Adder appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/wordpress-plugin-simple-share-buttons-adder/feed/ 2
WordPress For Hipchat Upgrade https://imknight.net/project/wordpress-hipchat-upgrade/ https://imknight.net/project/wordpress-hipchat-upgrade/#respond Sat, 05 Apr 2014 16:18:43 +0000 https://imknight.net/?p=3232 I build a plugin call WordPress For Hipchat last year and release it on Github. I release the plugin during some self-training week and I blog about it. It’s been around 8 month and...

The post WordPress For Hipchat Upgrade appeared first on I'm Knight.

]]>
I build a plugin call WordPress For Hipchat last year and release it on Github. I release the plugin during some self-training week and I blog about it. It’s been around 8 month and I receive my first feature request.

Since I didn’t port the plugin over to official plugin site , it is a bit surprise someone to ping me through the issue list for some feature request. It isn’t something tough so i just spend sometime to get it done just now and release it. The feature request is to send notification to hipchat regardless the status, where I original build it to send only when a post get published.

The new setting page added radio input for user to select send notification for all or publish only.

HipChat_For_Word-Settings

Testing on my Hipchat account.

Hipchat-For-WordPress-1.0.2

I guess if I have time I should doing some clean up for this plugin, it seem like there are quite a few things can be tweak, but for now it work well for what it does.

The post WordPress For Hipchat Upgrade appeared first on I'm Knight.

]]>
https://imknight.net/project/wordpress-hipchat-upgrade/feed/ 0
Update your WordPress Plugins now https://imknight.net/wordpress/update-your-wordpress-plugins-now/ https://imknight.net/wordpress/update-your-wordpress-plugins-now/#respond Wed, 22 Jun 2011 14:28:36 +0000 https://imknight.net/?p=2389 If you using WordPress but didn’t follow all the WordPress news and happen that just update your plugins during the past few day , you might need to update your plugins again now. This...

The post Update your WordPress Plugins now appeared first on I'm Knight.

]]>
If you using WordPress but didn’t follow all the WordPress news and happen that just update your plugins during the past few day , you might need to update your plugins again now.

This morning the official WordPress blog announce that 3 popular plugins AddThis, WPtouch and W3 Total Cache has some suspicious commits which plant a backdoor on these plugins, so if you happen to updated these plugins for the past few day , it means that your WordPress might have a backdoor now, so check your plugins again and if there is any update available now which has been fixed by the WordPress team.

At the same time all WordPress.org user’s password has been reset , if you need to access the forum, just request a new password to send to your emails.It seem like now day even frequent update your plugins also might cause the security breach.

The post Update your WordPress Plugins now appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/update-your-wordpress-plugins-now/feed/ 0
WordPress Advent Started https://imknight.net/wordpress/wordpress-advent-started/ https://imknight.net/wordpress/wordpress-advent-started/#comments Thu, 02 Dec 2010 14:00:20 +0000 https://imknight.net/?p=2198 After the Black Friday and Cyber Monday sales , WPAdvert is started. I m totally forget to blog about WPAdvert yesterday,  if you looking for some great deal for a new WordPress Theme,  don’t miss out the WPAdvert....

The post WordPress Advent Started appeared first on I'm Knight.

]]>
After the Black Friday and Cyber Monday sales , WPAdvert is started. I m totally forget to blog about WPAdvert yesterday,  if you looking for some great deal for a new WordPress Theme,  don’t miss out the WPAdvert.

WPAdvent is about every day starting from 1st Dec, for 25 days, there will be a new WordPress special offer. It seem like this so call Advent Calendar concept has been widely apply for different online activity, example there is Gameloft Advent Calendar for iPhone games, web design and development articles and tutorials for advent and WP Engineer‘s Advent Calendar 24 days WordPress tips and trick each day.

WPAdvent is actually done by Ben Gillbanks, the owner of Binary Moon , one of the famous WordPress geek, you can check out the detail on why he created this seasonal WordPress saving. From what I observed it seem like the WPAdvent‘s offer is quite attractive , example Elemental Theme was selling with 80% discount yesterday ( yes I manage to get this ) and today the Advanced Newspaper is selling for just $9.90 only.

One of the tips that I can give is checking on the partner’s page to make sure that your favourite WordPress theme maker is inside, if they are I guess it will be a good chance  for you to grab a wonderful theme from them with promotional price.

The post WordPress Advent Started appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/wordpress-advent-started/feed/ 1