All Articles by Sangkrit

Register/transfer domain names at http://system.sangkrit.net and mail to system@sangkrit.net to get your web/app made/managed as per the budget allocated.

4508 Articles

How to Disable WordPress Comments Media Attachments ?

You can very easily disable comments on WordPress media attachments. Open your theme’s function.php file and add the following hack:

function filter_media_comment_status( $open, $post_id ) {
$post = get_post( $post_id );
if( $post->post_type == ‘attachment’ ) {
return false;
}
return $open;
}
add_filter( ‘comments_open’, ‘filter_media_comment_status’, 10 , 2 );

How To Create A Mobile Friendly WordPress Site In Minutes ?

Convert your WordPress site in to a mobile friendly site in minutes. Make your smartphone visitors automatically get redirected (like Google & Facebook) to your site’s mobile version. DudaMobile WordPress plugin makes it easy, fast and free.

Continue reading How To Create A Mobile Friendly WordPress Site In Minutes ?

Easiest Way To Drag-Drop & Arrange Your WordPress Posts And Custom Post Types

WordPress displays your post in the order you publish them and if you need to rearrange them you have to change their publishing dates. Changing post dates creates dead links and you lost your post’s back links. So rather than changing post dates you can use this new and easy technique for rearranging your WordPress blog posts.

Continue reading Easiest Way To Drag-Drop & Arrange Your WordPress Posts And Custom Post Types

Best Plugin For Auto Tweeting Your WordPress Blog Posts

Tweetily – Tweet Your Posts Automatically! is the best plugin for auto tweeting your WordPress posts. Easy to install, easy to connect with twitter, automatically promotes your posts and pages on Twitter, keep your content alive and drive traffic to your site. Works better than Tweet Old Post Plugin. Set it and forget it!

Continue reading Best Plugin For Auto Tweeting Your WordPress Blog Posts

How to Restrict Certain Usernames in Your WordPress Site ?

If your are using WordPress Mutisite or BuddyPress and you have kept user registration open for public (via Settings -> General -> Membership (“Anyone can register”) sometimes creates problems. By default all usernames (if they already not already registered) are allowed during WordPress user registration process.

If you like to restrict certain usernames from getting registered on your site then first of all install and activate Restrict Usernames plugin. If you are using WordPress Multisite then network activate it and follow these steps:

  • If you are using single WordPress install then visit Dashboard->Users -> Name Restrictions admin settings page and specify username restrictions.
  • If you are using WordPress Multisite then visit Dashboard->My Sites -> Network Admin -> Users -> Name Restrictions and specify username restrictions.

Now anyone attempting to register on your site chooses any restricted username will be seeing this message:

“ERROR: This username is invalid. Please enter a valid username.”

Remember: This plugin doesn’t put any restrictions on usernames chosen by admin himself while creating user accounts from within the WP admin dashboard.

Continue reading How to Restrict Certain Usernames in Your WordPress Site ?

How To Check Unread Gmails From Linux Command Line Without Opening Any Browser ?

Here’s a command, if you use Gmail and like to check for unread email without having to opening up a browser. This command makes use of: curl, tr, awk, andsed and looks like:

curl -u GMAIL_ADDRESS:GMAIL_PASSWORD –silent “https://mail.google.com/mail/feed/atom” | tr -d ‘n’ | awk -F ‘<entry>’ ‘{for (i=2; i<=NF; i++) {print $i}}’ | sed -n “s/<title>(.*)</title.*name>(.*)</name>.*/2 – 1/p”

Where GMAIL_ADDRESS is your actual gmail address and GMAIL_PASSWORD is your gmail password. After successful authentication the sender and subject of your unread Gmail will be printed out.

How To Lock User Accounts In Your WordPress Site ?

Sometimes we require locking user accounts may be after given number of incorrect login attempts, because of dictionary attacks, when any author becomes inactive or when you want to ban any user.

I use a plugin User Locker. It lets you lock or deactivate any user account. After you install and activate it, a new menu option appears in Dashboard->Settings->User Locker which shows some default settings.

Limited Number of Login Attempts

Default WordPress installation is vulnerable to dictionary attacks as there is no limit on how many times user can use invalid password and attempt to login again and again. User Locker closes this security flaw by introducing maximum number of invalid login attempts. When someone exceeds this number, the account gets locked, which can be unlocked only by requesting new password (using Lost Password option) or by asking for Admin Support. This makes brute force and dictionary attacks nearly impossible.

Banning Certain User Accounts

 

 

It also allows you to disable selected user accounts which restricts user log in even if they know password. This feature is good for banning certain user accounts.

It also allows you to add lock/disable reason, only for your future reference. When account is automatically blocked, plugin can itself add lock reason (this is configurable). By default reason text is displayed on User List only but you can also display it for user after blocked login attempt. You have also option to keep some of them private – just start the reason text with ‘@’ (AT sign).

How to Extend Native WordPress Image Gallery With Optimized Support For iPhone & iPad Users ?

Extend native WordPress image gallery with optimized support for iPhone and iPad users.

WpJaipho plugin embeds Jaipho Javascript gallery in your WordPress Site. It replaces WordPress native media library image gallery using shortcode gallery with Jaipho gallery template for iPad and iPhone users.

How To Post From Twitter To WordPress ?

You can easily post your Tweets as individual WordPress posts. Twitter Tools was the famous WordPress Plugin for doing this but now its outdated. It was having certain limitations like you can add one Twitter account on one site not one account per author. Another thing was that it prompts you to create Twitter app and you need to do lot of configuration settings before using this  plugin.

So here I am discussing about a different plugin that post Tweets as WordPress posts in an easy way. It is the most easiest plugin for doing this. If you post more to Twitter and want your Tweets automatically appear in your WordPress blog as individual blog posts under specific categories like Tweets, Twitter Updates, News, Status etc then First thing you need to do is download and activate this Tweet As Posts Plugin.

After you complete with installation, follow theses steps:

  1. Visit Your Dashboard->Settings->Tweet As Posts.
  2. Enter Hashtag(s) in which you post more. Its all up to you which Hashtag you choose.
  3. Enter your Twitter username.
  4. Check the option Add Tweets as Posts.
  5. Select Post Category in which you want your Tweets to apppear.
  6. Select the default author for your Tweets.