2014 – Most Googled Games in Indian States

games-ideas.jpg

The folks from coupon sharing website CouponDaddy.in have created an interesting infographic featuring the list of games that were Googled most in different states of the country. The image below is the result of their statistical analysis of Google Search by Indian users for gaming specific keywords. It enlists 33 games from 33 Indian states & union territories.

Read more

#ThankYou2014

thank you 2014 image

thank you 20142014 was an amazing year for me. Things didn’t went that wrong, like they did in 2013 and year before that. Both my online and offline lives went smooth. This post is a summary of things I did/learned in 2014. It has primarily a personal approach and doesn’t intend to force any show-off to readers.

2013 : Learning with troubles

2013 had ended up with a disturbing half when my INSPIRE scholarship was discontinued, due to some unknown reasons. God knows why are there corrupt and careless people in the center of Indian Government. Nevertheless, all was for good. I found a more convenient & easier way of earning money. I started selling backlinks. And to do so, I needed to move off WordPress.com free hosting due to their strict linking rules. In September 2013I switched to GoDaddy Unlimited from WordPress.com to enjoy freedom. Self Hosted WordPress wasn’t a new tool for me as I (as a team) had already been operating Symbian-Developers.net for years on WordPress.org software. But then came the real trouble from the other end. GoDaddy was very slow & my sites went offline often with HTTP errors. I tried to ask for a refund and they made it for faster & more resourceful for one month or so. After two months of hosting purchase, I again started getting trouble with site load time and unexpected HTTP errors. On support desk, GoDaddy.com people told me to use better caching & cloudflare optimization network. December was the month of goodness— I switched to cloudflare, sold couple of backlinks and found new sponsored articles. My site had almost 0% downtimes, and I was feeling a lot better  & more focused.

Read more

Solving Integral Equations (4) : Integral Equations into Differential Equations

Introduction

In earlier parts we discussed about the basics of integral equations and how they can be derived from ordinary differential equations. In second part, we also solved a linear integral equation using trial method. Now we are in a situation from where main job of solving Integral Equations can be started. But before we go ahead to that mission, it will be better to learn how can integral equations be converted into differential equations.

Read more

Four Essential Tests you should apply on your Newly created Websites

gauravtiwari.org on ipad-mini

If there was only one single piece of advice we could give you for building and launching your new website, it would be this:

 

Take nothing for granted.

 

Just because something should look, or function, a certain way, that doesn’t mean it’s always going to. Just because my site looks a million dollars when viewed on Mozilla Firefox and Google Chrome, that doesn’t mean Internet Explorer is going to load it the same way. Nor we should assume that just because we find it easy to log on to my site and use all its features, doesn’t mean my customers are going to enjoy the same way. Perhaps they naturally navigate the site in a way we hadn’t thought of, or come up stuck at a point we assumed would be pretty straight forward.

Read more

Save more on Online Shopping with Zoutons.com coupons

home zoutons

The year 2014 was a big turn-around in e-commerce as it declared the fate of online shopping in India. Events, like aggressive TV/Media advertisements by Snapdealhuge funding plus creative marketing campaigns by Flipkart and the ultimate introduction of shopping giant Amazon to India, have boosted Indian e-commerce like never seen before.

Read more

Newbie’s Guide : Creating Custom WordPress Widgets

creating custom wp widgets

For those who run WordPress powered websites understand the importance of adding widgets on their site. Widgets are a great way to add content and additional features on your website. They make it extremely easy for you to simply drag and drop several elements such as sidebar, header, footer, of your website and thus making the most out of its functionality.
By utilizing widgets correctly,  you can make your website useful for your visitors. And the best thing about them is, you can use them anywhere you want, thus helping users to find more content on your website.
wordpress plugin guide creating widget

Many of the WordPress users always search for the perfect WordPress widget that will help them do exactly what they want, but with a little technical knowledge and coding skills, you may find it easier for you to create your own WordPress custom widget.

In this tutorial, I am going to show you the ways through which you can create your custom widget. For a better understanding, I’ll be covering some extra points that you need to understand before you actually start creating the widget itself.

 

Where You Can Place a Widget

WordPress usually provides two options for placing a widget- either in a plugin or inside a theme. If you decide to place it inside the theme, the widget will get activated as soon as the theme is available for the activation. Although, it will get disappear as soon as the theme has been changed by the user. On the contrary, if you decide on placing it inside the plugin, it will be available till the plugin is activated. Although, it’s entirely up to the user where they want to place a widget. But as widget is something that is related with the looks of a website, webmasters mostly prefer to place them inside the theme. Web owners must try to analyze whether they want a widget that is dependent on the theme or not. If they want a widget regardless of the theme, then it’s better to go ahead with the plugin.

In this article, we are going to discuss about the ways through which one can create a custom WordPress widget by using both plugin and theme way.

 

Creating WordPress Widget in Plugin

 

  • To create a widget in plugin, first you need to go to your WordPress installation directory and then navigate to /wp-content → plugins.
  •  After this, start creating a new .php file for your plugin. Give it a name anything you like but make sure it should be in-tune with the standards laid down by WordPress.
  • Once you create the file, take out any of your text editing tool and start editing the file.
  • Now, paste the below mentioned code on the top of the file.

 

<php
/*
Plugin Name: Name Of The Plugin
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: Give a brief description of the Plugin.
Version: 1.0 <-- The Plugin's Version Number
Author URI: http://URI_Of_The_Plugin_Author
License: A "Slug" license name e.g. GPL2  */

 

The details can be edited and updated as per your choice.

  • After updating the information, save all the changes.
  • In the next step, sign in to your WordPress dashboard and navigate to the
    Plugins → Installed plugins.

 

Now, congratulate yourself for creating your first-ever widget inside the plugin. Activate it and see what it can do.

 

Creating Widget Inside the Theme

 

For creating widget inside the theme, first of all we have to extend the default
WP_widgetclass. The process is pretty simple, all you need to do is create a new class, which will automatically take over all the features and properties of WP_widgetclass.

In the next step, we will proceed toward creating a custom functionality to bring an added edge to your widget. Just write the below mentioned code before the closing php tag of your theme’s function.php file.

 

Important Note

Leaving any space between the code could generate errors in your theme, so make sure not to leave any blank space while writing.

<?php
class My_Widget extends WP_Widget {
public function widget( $args, $instance ) {
echo 'My New WordPress Widget !!';
} }

 

Up to this you’ve successfully created a widget, but it’s not functional yet. We have to make it work by following some steps.

 

Adding Widget to WordPress

 

We have strategically utilized WP_Widget Class for creating a widget, but we haven’t still informed WordPress about this newly created widget. To do this, we have to add the following code to ‘hook’ widget:

 

add action( 'widgets_init', 'my_widget');
function my_widget() {
register_widget( 'My_Widget' );
}

 

This is a method of informing WordPress that you’ve created your widget and it’s ready for being processed.

 

Exploring Your Newly Created Widget

 

If you’ve followed this tutorial closely, then it’s time to congratulate yourself as you’ve successfully created your first widget. But creating a widget isn’t enough unless until you don’t add description or any label on what it actually does. To do this, we recommend you to add a constructor on your widget. This will help you add an information about your widget. Simply paste the following code after the widget() function.

 

function __construct() {
parent::__construct( 'my_widget', // Base ID of your widget
__('My New Widget', 'text-domain'), // name of the widget
array( 'description' => __( 'This is the my newly created widget', 'text-domain' ),) // Widget description
);
}

 

The process looks quite daunting to beginners, although it’s quite easy. Let me give you a straightforward description for this:

There are some pre-defined set of rules and standards which you have to follow while working with construct method. They are:

 

  • The first parameter should be the ID of your custom widget
  • Second, names that are going to be displayed on the widget list
  • Third is the array, which normally contains a brief description about a widget.

Now, refresh your website and you’ll observe the widget functioning on your website.

See, it isn’t that difficult to create  a custom widget to do exactly what you want. Just follow the steps and you are ready to go.

This post was written by Sarah Parker

sarahBeing a well-known blogger from Designs2HTML Ltd., Sarah Parker gives valuable and best tips on context of converting PSD to WordPress theme and design technique. Also, she is enthusiast of sharing his innovative ideas related to web design technologies.