Archive for the tutorials Category
WordPress : Display content to registered users only
During WordPress theme, or plugin development there are times when you want to show certain page’s content based upon the user. For instance, you want to display a download link to only registered users and display a Register link to un-registered or new users. So we are going to discuss a way thr
Read Full PostEmpty WordPress trash automatically
Wordpress has an inbuilt trash system which keeps your posts, pages, comments in trash for 30 days by default. However, WordPress has a way to change this default 30 days time period. We can even disable this feature such that WordPress does not empties the trash automatically. In order to change
Read Full PostAdd default content for a new post in WordPress
Most of the bloggers write the blogs in a certain format or at-least have a common signature or a punch line in every post on their blog. For example in my blog posts I always end the posts with Stay Digified!! Sachin Khosla So what if we can automate that type of text such that it shows up aut
Read Full PostRecommended Linux Partitioning Scheme
Partitioning Basics: When we need to install linux on our systems, we need to partition our hard disk as we do for windows. In the case of windows, partitions are called as c: ,d:, e:, etc. But on linux they are represented in the form of following (there are many others, but these are the most ess
Read Full PostCreating dynamic menu with re-order option in wordpress
WordPress is a powerful CMS for a website and it provides features which makes it easy to use CMS. Navigation or Menu is one of the key point of the website. People tend to change Menu names, links, reorder them ever now & then. In a normal website it is a tedious job to change menu every time y
Read Full PostWordPress wp_nav_menu separator and First Last Classes
wp_nav_menu is a wordpress built-in plugin that allows you to show navigation in the front-end. This simple function picks the menu defined in the wp-admin dashboard and displays it as the list. Just like other wordpress functions this is also powerful. It takes various parameters to customize the o
Read Full PostDisplay WordPress post content outside the WordPress
Everyone knows that WordPress is an awesome tool tool for blogging and as well as for website. It can be a powerful CMS to work with. There are times when you need to pull your WordPress content and display it some where other than the blog site. WordPress framework is very powerful and with very fe
Read Full PostUpdate your Facebook status using PHP and Graph API
In this article I am going to show you how you can update your Facebook status using simple PHP code and Facebook Graph API. This is the most naïve way to use this, you can extend this to make your own script to update your status from mobile, via cron job, via email or whatever you think makes sen
Read Full PostHow do I find a user’s UID or GID in Linux/Unix
In this post I am going to tell you, how can you find the User ID and Group ID of a user in Linux. You might require it when you scripting something on the OS level. We are going to use the id command to find the UID and GID of a user in Unix. To find a specific user's UID, goto the terminal an
Read Full PostUse Any Mobile With PC (Generic PC Suite)
Mobile Phones especially from China.. Commonly known as “China Mobile” have made HUGE inroads into the hearts & Hands of the Indian Consumer (Read Cheap, affordable & LOUD ). Now there are SO MANY Companies like: FLY, LEMON, JAIPAN, MICROMAX, that make “Branded” mobiles, which in
Read Full PostChange WordPress admin language with just one click
I got a different requirement for Wordpress blog this time. The client’s requirement was to change Wordpress admin’s language but not to change the blog’s language. The first thing that struck me was to use WPLANG function of wordpress, and use the desired language. But that way it changes t
Read Full PostDifference between InnoDB and MyISAM in MySQL
MyISAM and InnoDB are two most commonly used storage engines of MySQL database. However, MyISAM is the default storage engine chosen by MySQL database, when creating a new table. The major differences between these two storage engines are : InnoDB supports transactions which is not supported by
Read Full PostOptimize your WordPress blog for Android, iPhone and other SmartPhones
SmartPhones gave a new face to the internet. A smartphone let’s you browse the internet instantly, no matter where you are. Today, every website has its separate mobile site for better usability. But it is very difficult for someone to develop a complete different mobile site. But if you are us
Read Full PostInstalling Apache2 and PHP5 on Ubuntu
In this post we will learn how you can install Apache2 server and PHP5 on Ubuntu. Undoubtedly, Apache2 is the most famous webserver and along with PHP, these both become the best recipes to cook pretty neat websites. Oh ! Was that too much cooking, eh ? Sigh ! let’s not get more into and comin
Read Full PostGetting started with PHP framework codeigniter
I have always worked with core PHP and was always reluctant to use any CMS (Joomla, Drupal etc). Coincidentally I never got a chance to work on any of the frameworks in PHP. But in the current project at work, we have decided to use CodeIgniter. CodeIgniter is a light weight open source web applic
Read Full Post