PHP: Time difference Facebook Twitter style
If you ever wanted to display the time elapsed in Facebook or Twitter style (recall the format: 20 minutes ago, 100 days ago?). Here is a handy little snippet in PHP, that will let you do exactly the same.
If you ever wanted to display the time elapsed in Facebook or Twitter style (recall the format: 20 minutes ago, 100 days ago?). Here is a handy little snippet in PHP, that will let you do exactly the same.
Have ever ever thought of display custom information to the user or making changes in the browser depending upon whether the user is using iPhone, iPod or iPad? Here is a snippet in Javascript: Detect iPhone, iPod, iPad using this handy snippet!
Did you ever want to add date, months or years to current date in PHP but never figured out how to? Well, this little snippet can come in handy.
If you want to validate Twitter username using PHP i.e check whether its available for registration or not, this can be easily achieved using CURL. The following function will check whether twitter username exists for registration or if it is already registered.
If you ever wanted to make WordPress change logo on Login page or customize it, this snippet can help you.
If you have noticed, by default the links/logo point to wordpress site in Register/Login pages or in some of the default WordPress themes. Did you ever wonder how can remove WordPress.org link? If yes, then the following snippet of code can help you.
Did you ever want to make WordPress display Blogroll without default heading but could not find a way to do this? Here’s a little snippet that you can copy and paste in your theme to instantly generate a Blogroll without the default heading.
While working with WordPress post editor in Admin Panel, you may have noticed that even after you have selected an image and clicked on “Align Center” button, the image does not appear centered when the post is viewed i.e. the WordPress Center Images function does not worry correctly on front end. The image shows up […]
While working with WordPress in Admin Panel, you may have noticed that when you Update/Save the post once you are done entering the Post, WordPress automatically strips out extra line break / paragraph break otherwise commonly known as “WordPress line break problem“.