Wednesday, 20 May 2015

Using Widgets In WordPress

Introduction To Widgets


The Graphical User Interface (GUI) used to display the information about the user actions.The simple and easy way of giving design and structure control of WordPress.Widgets doesn't needs any expertise to be built,by default the WordPress provides the widgets Administration Panel.Widgets can be easily added,removed and rearranged all you need to Login to your WordPress Admin Panel and move to Appearance > Widgets

Installation


WordPress provides a variety of widgets by default and if these are not enough you can add your own you just need to use your theme functions.php file and also you can use some of the provided plugins by the WordPress.

Widgets Area


Widgets are made to be used mostly for the sidebar area's just to display the data information.Meanwhile widgets can be used anywhere in the website where a user want it to use provided some of the Programmatic background.

Display Of Widgets


First of all you have to check the theme you are using have the widget support or not.After approving the widget support all you need is to go to the appearance panel move to the widgets.




You can view all the widgets which are present on you widgets panel,simply drag and drop the widgets where you want them to display e-g Right Sidebar, Footer etc.


You can also add remove and rearrange the widgets from this panel,just drag the widget and save it,widget can also be removed on clicking the remove button.

Advantages Of Using Widgets


  • Widgets add the appealing look to the functionality of website.
  • Widgets can be customized by the desire of the user.
  • Widgets can be styled according to the theme functionality.
  • Installation of widgets is as easy as you don't have to write a single line of code for installation.
  • Text widgets also provides the user to write their own text which they want to display.
There are lot more benefits of using the WordPress Widgets.

How To Create A Widget 


The feature which is used to achieve the custom functionality  is mostly used by the developers to give a proper look and feel to the website.The best way of creating your own custom widget is described by none other than WordPress
By following these simple steps you can create your own customized widget area register it and add it into your admin panel.

Tuesday, 19 May 2015

WordPress-The Giant in CMS and Blogging

WordPress.ORG



WordPress started in 2003 with a small bit of code and limited functionality has now become the largest Self-Hosted blogging tool in the world.WordPress is being used by millions of users on daily basis.

WordPress.com



Created in 2005 WordPress.com is emerged to be the most popular online open source publishing platform is currently capturing more than 20 % of the web.The reason of the popularity is that you can make or publish the website or blog within seconds.

What Can You Use WordPress.ORG for ?

WordPress has now become the most popular Content Management System (CMS).You can download WordPress for free for website building and other platforms,all you need is to have a Web Host.WordPress includes thousands of Themes,Widgets and Plugins with multiple functionality.

What Can You Use WordPress.com for ?

With the help of this open software you can build your site or can create a blog for free and without any technical knowledge.WordPress welcomes millions of user which is around  409 million to view almost of the 15.5 billion of pages each month.The users on WordPress.com have published 41.7 million new posts with 60.7 million comments on them each month. (Source : WordPress.com).

Get Connected With The Community Using WordPress.ORG

The great way to get involved with the public using WordPress.ORG is through the "Forums" and "Mailing Lists" which are for free and users found them very useful to extract relevant information.
The events like WordCamp also helps the users to get connected with the community.

Get Connected With The Community Using WordPress.com

Almost everything on WordPress.com is for free and will remain free for the rest of the life.Day by day updates and improvements are helping as well as connecting more and more users and making their own community.People can give their precious and helpful feedback to the WordPress team and they makes the user's life very easy.

Reasons To Use WordPress




WordPress facilitate the user's in so many ways and there are so many reasons to use WordPress few of them are listed below.


  • Thousands of beautiful themes available for making your own custom design.
  • Thousands of helpful Plugins are available for the users to extend site's functionality.
  • WordPress makes social media integration very easy.
  • Support Forum assistance is available every time.
  • Sharing stats making comments and discussions.
  • Anti-spam software (Akismet) and vip hosting partnerships are available.
There are lot more reasons which attracts the user to use WordPress.whether you’re a blogger or a website owner, we know you have many places where you can pitch your online tent.If you’re looking to build your online presence and haven’t decided where to drop anchor,give WordPress a try and you will find it a better choice.

Thursday, 14 May 2015

Web Server and its Types

In this tutorial, you will learn about web servers and what are its types.The most important thing to know is how one can define a web server.Every Web Site which sits on a computer known as a Web Server.Web server is always connected to Internet.

Whenever a person registers a domain name e-g "developmentdemos.com" HE/SHE have to specify the IP address of the Web server that will host a site.Web server which is connected to the internet has given a unique address made up of a series of four numbers between 0 and 255 separated by periods.

The main leading Web servers are as follows :

Apache HTTP Server


Apache Software Foundation has developed the most popular Web Server in the world known as Apache HTTP Server.

Following are the Operating Systems on which Apache HTTP Server can be installed :

  1. Linux
  2. Unix
  3. Windows
  4. FreeBSD
  5. Mac OS X
Almost 60 percent of the Web Server machines run the Apache Web Server.

Internet Information Services



The Internet Information Server (IIS) is a high performance Web Server from Microsoft. This web server runs on Windows NT/2000 and 2003 platforms ( and may be on upcoming new Windows version also). IIS comes bundled with Windows NT/2000 and 2003; Because IIS is tightly integrated with the operating system so it is relatively easy to administer it.

Lighttpd 



The lighttpd, pronounced lighty is also a free web server that is distributed with the FreeBSD operating system. This open source web server is fast, secure and consumes much less CPU power. Lighttpd can also run on Windows, Mac OS X, Linux and Solaris operating systems.

Sun Java System Web Server



This web server from Sun Microsystems is suited for medium and large web sites. Though the server is free it is not open source. It however, runs on Windows, Linux and Unix platforms. The Sun Java System web server supports various languages, scripts and technologies required for Web 2.0 such as JSP, Java Servlets, PHP, Perl, Python, Ruby on Rails, ASP  etc.


Monday, 11 May 2015

Forgot password php script step by step

What we will learn :

In this tutorial, you will learn how you can make your own forgot password script for your website in few easy steps. Overall, how this forgot password script going to work is by sending a verification link to user's email id with a confirmation code in it. Once user click on that link, he will be redirected to another page on website where he can set up new password after few checks. Well, let go into details of it.

step 1 : Create table code below. Copy it and execute it under SQL section of PhpMyAdmin. 
CREATE TABLE `my_users` (
  `id` bigint(20) NOT NULL auto_increment,
  `md5_id` varchar(200) collate latin1_general_ci NOT NULL default '',
  `full_name` tinytext collate latin1_general_ci NOT NULL,
  `user_name` varchar(200) collate latin1_general_ci NOT NULL default '',
  `user_email` varchar(220) collate latin1_general_ci NOT NULL default '',
  `pwd` varchar(220) collate latin1_general_ci NOT NULL default '',
  `activation_code` int(10) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `user_email` (`user_email`),
  FULLTEXT KEY `idx_search` (`full_name`,`user_email`,`user_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=55 ;

step 2 :  create a file name forgot.php and write the following code in it
<form action="forgot.php" method="post">
Enter you email ID: <input type="text" name="email">
<input type="submit" name="submit" value="Send">
</form>

step 3 : It's time to make this submit button and text box work. For this, we first need to make sure that e-mail entered in the text box does exist in database. If it does not, then script must raise an error. Below is the code (Make sure that you have set correct parameters for connection)
----------------------------------------
<?php 
error_reporting(0);
$email=$_POST['email'];
if($_POST['submit']=='Send')
{
mysql_connect('localhost','root','') or die(mysql_error);
mysql_select_db('test');
$query="select * from my_users where user_email='$email'";
$result=mysql_query($query) or die(error);
if(mysql_num_rows($result))
{
echo "User exist";
}
else
{
echo "No user exist with this email id";
}
}
?>
<form action="forgot.php" method="post">
Enter you email ID: <input type="text" name="email">
<input type="submit" name="submit" value="Send">
</form>
Explanation :
Function "mysql_connect()" will connect to the database. Here we have passed default parameters for 'Host', 'User' and 'Password'.
Function "mysql_select_db()" select the database name from the PhpMyAdmin. Here we have chosen database name "test". If it could not select the database due to some errors, it will raise an error and print the content written in die(), ('Error' in our case).
Finally, $query is a variable which stores the query string, $result variable will capture the outcomes when query is executed using inbuilt function mysql_query().
After all, we have to put a simple check for email existence confirmation. Normally, we have to check whether there is any row exist in database which the provided email or not. So, here is another cool PHP function to test that, called "mysql_num_rows()". You can check the code above integrated with if...end if statement.

step 4 : Our next step would be to add code to send an confirmation email when email entered in text box, does exist in database. For that, we will be making use of another simple mail function.
Its syntax is like this:
----------------------------------------
mail(to,subject,message,headers,parameters)
----------------------------------------
So, we will send an email to the provided email using mail function. Below is code which is needed when email exist.
---------------------------------------- 
if(mysql_num_rows($result))
{
$code=rand(100,999);
$message="You activation link is: http://yourwebsitename.com/forgot.php?email=$email&code=$code
mail($email, "Subject Goes Here", $message);
echo "Email sent";
}
else
{
echo "No user exist with this email id";
}
Explanation :
Above code is modification to existing code with new mail function in it. Replace "yourwebsitename" with the address to your "forgot.php" page to get the script working. Moreover, also update the activation code in the database filed "activation_code", it's necessary. 

step 5Run the script, you should get an rest password mail. Click on the link in email which will redirect you back to forgot.php on your website with URL parameters as email and code filled. So, you have to fetch these two values once again and compare the code with the one present in database with that particular email. If it exist, continue.

step 6Now, we will have a field for new password and a submit button. Because everything is verified, we can set up an update command to the password field after user enter a new password and hit enter. 

It is similar to the above process of making email form with little variations and I believe that now it would be easy to achieve it to for you. Please do work and let me know in case you are facing any bug.