<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0" xml:base="http://www.botskool.com/home">
  <channel>
    <title>bOtskOOl</title>
    <link>http://www.botskool.com/home</link>
    <description />
    <language>en</language>
          <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/bOtskOOl" /><feedburner:info uri="botskool" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license><feedburner:emailServiceId>bOtskOOl</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
    <title>How to create ToolTip for a Windows Form Control using Visual C# (in .NET Framework)</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/Op7Lfx53z_0/how-create-tooltip-windows-form-control-using-visual-c-net-framework</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;Sometimes, we may want to display important help text to the user when he or she hovers over a control. For example, you may have a label in your application and you want that the user should know upon hovering what the label text signifies. This is when ToolTip comes into picture. &lt;strong&gt;Tooltip is basically a small &amp;ldquo;hover box&amp;rdquo; in which the information about the item being hovered upon is displayed&lt;/strong&gt;. Here, we will learn &lt;strong&gt;how to add ToolTip to a windows form control (consisting of labels and textboxes) using C# (in .NET framework)&lt;/strong&gt;. Suppose we have a label as &lt;em&gt;Salary&lt;/em&gt; and corresponding to it two textboxes in which some random figures are getting displayed, as shown below:&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p class="rtecenter"&gt;&lt;img alt="Windows form control" width="545" height="309" src="http://www.botskool.com/sites/default/files/how-create-tooltip-windows-form-control-using-visual-c-1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Now, we want that whenever a user hovers on the label and textboxes then some help text should get displayed. For example, here we are displaying salary figure of an employee. The first textbox displays salary in $ and second textbox in Rs. To create tooltip for these three controls, open the code of the form and paste the following code in it:&lt;/p&gt;
&lt;pre title="code" class="brush: vb;"&gt;
private void myToolTip()
        {
            ToolTip myToolTip = new ToolTip();
            myToolTip.SetToolTip(textBox1, &amp;quot;in $&amp;quot;);
            myToolTip.SetToolTip(textBox2, &amp;quot; in Rs&amp;quot;);
            myToolTip.SetToolTip(label1, &amp;quot;Per Month&amp;quot;);
        }
&lt;/pre&gt;&lt;p&gt;&lt;em&gt;Note: Make sure you have the &lt;span style="color: rgb(0, 0, 255); "&gt;System.Windows.Forms&lt;/span&gt; namespace added at the beginning of the code.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Now, in order to setup the tooltip for all these three controls we just need to call this function when this form loads. Lets add this immediately after initialization of the form components. See the complete code below:&lt;/p&gt;
&lt;pre title="code" class="brush: vb;"&gt;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MyToolTip
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            textBox1.Text = &amp;quot;50&amp;quot;;
            textBox2.Text = &amp;quot;250&amp;quot;;
            myToolTip();

        }
        private void myToolTip()
        {
            ToolTip myToolTip = new ToolTip();
            myToolTip.SetToolTip(textBox1, &amp;quot;in $&amp;quot;);
            myToolTip.SetToolTip(textBox2, &amp;quot; in Rs&amp;quot;);
            myToolTip.SetToolTip(label1, &amp;quot;Per Month&amp;quot;);
        }
    }
}
&lt;/pre&gt;&lt;p&gt;Save the code and run it. Now, move your cursor over the label and textboxes. You will see the tooltip is displayed, as shown below:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Window form tooltip for label" width="546" height="309" src="http://www.botskool.com/sites/default/files/image/how-create-tooltip-windows-form-control-using-visual-c-2.png" /&gt;&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Visula Studion C# .NET Windows Form displaying tool tip " width="545" height="308" src="http://www.botskool.com/sites/default/files/image/how-create-tooltip-windows-form-control-using-visual-c-3.png" /&gt;&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Visual Studio C# .NET displaying textbox tooltip in windows form" width="545" height="309" src="http://www.botskool.com/sites/default/files/image/how-create-tooltip-windows-form-control-using-visual-c-4.png" /&gt;&lt;/p&gt;
&lt;p class="rteleft"&gt;&lt;u&gt;&lt;strong&gt;Explanation of the code:&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p class="rteleft"&gt;Here, we have used the &lt;span style="color: rgb(0, 0, 255); "&gt;ToolTip&lt;/span&gt;&amp;nbsp;class of the  &lt;span style="color: rgb(0, 0, 255); "&gt;System.Windows.Forms&lt;/span&gt; namespace. This class represents a small rectangular pop-up window which is used to specifically display a control&amp;rsquo;s purpose when user hovers over it. Here, first we make an object of the &lt;span style="color: rgb(0, 0, 255); "&gt;ToolTip&lt;/span&gt; class and then using the &lt;span style="color: rgb(0, 0, 255); "&gt;SetToolTip&lt;/span&gt; function we set the information to be displayed over the control. The &lt;span style="color: rgb(0, 0, 255); "&gt;SetToolTip&lt;/span&gt; function takes in two arguments, the first is the control name and the second is the caption to be displayed.&lt;/p&gt;
&lt;pre title="code" class="brush: vb;"&gt;
ToolTip myToolTip = new ToolTip();
myToolTip.SetToolTip(textBox1, &amp;quot;in $&amp;quot;);
&lt;/pre&gt;&lt;p class="rteleft"&gt;Using the above code, we have passed the control name (for example &lt;span style="color: rgb(0, 0, 255); "&gt;textBox1&lt;/span&gt;), and the text to be displayed upon hovering (for example &lt;span style="color: rgb(0, 0, 255); "&gt;&amp;ldquo;in $&amp;rdquo;&lt;/span&gt;) as arguments in the &lt;span style="color: rgb(0, 0, 255); "&gt;SetToolTip&lt;/span&gt; function. Upon running the code it renders the tooltip text upon hovering.&lt;/p&gt;
&lt;p class="rteleft"&gt;In a similar fashion, you may add ToolTips to other windows form controls of your choice.&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-create-tooltip-windows-form-control-using-visual-c-net-framework';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/Op7Lfx53z_0" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-create-tooltip-windows-form-control-using-visual-c-net-framework#comments</comments>
 <category domain="http://www.botskool.com/category/tags/net">.NET</category>
 <category domain="http://www.botskool.com/category/tags/c">C#</category>
 
 <pubDate>Fri, 02 Mar 2012 11:53:29 +0000</pubDate>
 <dc:creator>apeksha</dc:creator>
 <guid isPermaLink="false">1074 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-create-tooltip-windows-form-control-using-visual-c-net-framework</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/4p2NWpP7cOQ/preview" length="16740" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1075/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to create and render dialog in a web page using jQuery Mobile </title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/4R_y1hZfQ00/how-create-and-render-dialog-web-page-using-jquery-mobile</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;In jQuery Mobile, dialogs are very similar to the pages except that they are themed differently to look like a modal dialog. They are generally used to notify user or verify some action the user is about to take. With the help of jQuery Mobile it is very easy to create and display dialog in your mobile web applications.&lt;/p&gt;
&lt;p&gt;Here for demonstration purpose we will take up a scenario where user clicks on an external link. Before redirecting the user to the external link we will verify whether he/she really wants to go to the external site by displaying a dialog box. If the user confirms then we redirect the user to the external website otherwise we redirect him/her to the original page.&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p&gt;We will create a multipage template which will contain both our page and dialog i.e. all the code will be present inside a single HTML file only.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Create a new HTML file and add the following code to it:&lt;/p&gt;
&lt;pre title="code" class="brush: xml;"&gt;
&amp;lt;!DOCTYPE html&amp;gt; 
&amp;lt;html&amp;gt; 
	&amp;lt;head&amp;gt; 
	&amp;lt;title&amp;gt;My Page&amp;lt;/title&amp;gt; 
	
	&amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, initial-scale=1&amp;quot;&amp;gt; 

	&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css&amp;quot; /&amp;gt;
	&amp;lt;script src=&amp;quot;http://code.jquery.com/jquery-1.7.1.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
	&amp;lt;script src=&amp;quot;http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt; 
&amp;lt;body&amp;gt; 
&amp;lt;!-- First Page --&amp;gt;
&amp;lt;div data-role=&amp;quot;page&amp;quot;&amp;gt;
  &amp;lt;div data-role=&amp;quot;header&amp;quot;&amp;gt;
    &amp;lt;h1&amp;gt;First Page&amp;lt;/h1&amp;gt;
  &amp;lt;/div&amp;gt;&amp;lt;!-- /header --&amp;gt;
  
  &amp;lt;div data-role=&amp;quot;content&amp;quot;&amp;gt;
    &amp;lt;p&amp;gt;Sample page content. 
	  Click on the link below to open dialog.
	&amp;lt;/p&amp;gt;
	&amp;lt;p&amp;gt;
	  &amp;lt;!-- Open the second sub page as a dialog --&amp;gt;
	  &amp;lt;a href=&amp;quot;#confirm&amp;quot; 
	     data-rel=&amp;quot;dialog&amp;quot; 
		 data-transition=&amp;quot;slidedown&amp;quot;&amp;gt;
		 Go to external link
	  &amp;lt;/a&amp;gt;
	&amp;lt;/p&amp;gt;
  &amp;lt;/div&amp;gt;&amp;lt;!-- /content --&amp;gt;
  &amp;lt;div data-role=&amp;quot;footer&amp;quot;&amp;gt;
    &amp;lt;h4&amp;gt;Page Footer&amp;lt;/h4&amp;gt;
  &amp;lt;/div&amp;gt;&amp;lt;!-- /footer --&amp;gt;
&amp;lt;/div&amp;gt;&amp;lt;!-- /page --&amp;gt;

&amp;lt;!-- Dialog page --&amp;gt;  
&amp;lt;div data-role=&amp;quot;page&amp;quot; id=&amp;quot;confirm&amp;quot;&amp;gt;
  &amp;lt;div data-role=&amp;quot;header&amp;quot;&amp;gt;
    &amp;lt;h1&amp;gt;Confirm&amp;lt;/h1&amp;gt;
  &amp;lt;/div&amp;gt;&amp;lt;!-- /header --&amp;gt;
  
  &amp;lt;div data-role=&amp;quot;content&amp;quot;&amp;gt;
    Do you want to go to this external link?
	&amp;lt;a href=&amp;quot;http://www.botskool.com&amp;quot; 
	   data-role=&amp;quot;button&amp;quot; 
	   data-inline=&amp;quot;true&amp;quot;&amp;gt;
	     Yes
	&amp;lt;/a&amp;gt; 
	&amp;lt;a href=&amp;quot;#&amp;quot; 
	   data-role=&amp;quot;button&amp;quot; 
	   data-inline=&amp;quot;true&amp;quot; 
	   data-rel=&amp;quot;back&amp;quot; 
	   data-theme=&amp;quot;a&amp;quot;&amp;gt;
	     No
	&amp;lt;/a&amp;gt;
  &amp;lt;/div&amp;gt;&amp;lt;!-- /content --&amp;gt;
&amp;lt;/div&amp;gt;&amp;lt;!-- /page --&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;p&gt;Now, open the above HTML file on your mobile device. The main page will look like this as shown below:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="jQuery Mobile Main Page" width="445" height="723" src="http://www.botskool.com/sites/default/files/image/how-create-and-render-dialog-web-page-using-jquery-mobile-1.jpg" /&gt;&lt;/p&gt;
&lt;p class="rteleft"&gt;If you click on the hyperlink titled &lt;em&gt;Go to external link&lt;/em&gt;, then the following dialog box appears:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="jQuery Mobile confirmation dialog" width="439" height="727" src="http://www.botskool.com/sites/default/files/image/how-create-and-render-dialog-web-page-using-jquery-mobile-2.jpg" /&gt;&lt;/p&gt;
&lt;p class="rteleft"&gt;If we click on &lt;strong&gt;Yes,&amp;nbsp;&lt;/strong&gt;then we are taken to the external website (in this case &lt;a href="http://www.botskool.com" title="www.botskool.com"&gt;www.botskool.com&lt;/a&gt;) otherwise we are taken back to the main page, as shown below:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="jQuery Mobile dialog interaction" width="438" height="727" src="http://www.botskool.com/sites/default/files/image/how-create-and-render-dialog-web-page-using-jquery-mobile-3.jpg" /&gt;&lt;/p&gt;
&lt;p class="rteleft"&gt;The complete layout of the dialog has been wrapped inside the div &lt;span style="color: rgb(0, 0, 255); "&gt;confirm&lt;/span&gt;. If you observe closely you will notice that the content of this div is exactly similar to that of a page! It contains &lt;span style="color: rgb(0, 0, 255); "&gt;header&lt;/span&gt; and &lt;span style="color: rgb(0, 0, 255); "&gt;content&lt;/span&gt; sections. Then how does jQuery Mobile determine that this page has to be rendered as a dialog? The trick is to add an additional attribute &lt;span style="color: rgb(0, 0, 255); "&gt;data-rel&lt;/span&gt; to the hyperlink which points to this page/dialog as shown below:&lt;/p&gt;
&lt;pre title="code" class="brush: xml;"&gt;
&amp;lt;!-- Open the second sub page as a dialog --&amp;gt;
	  &amp;lt;a href=&amp;quot;#confirm&amp;quot; 
	     data-rel=&amp;quot;dialog&amp;quot; 
		 data-transition=&amp;quot;slidedown&amp;quot;&amp;gt;
		 Go to external link
	  &amp;lt;/a&amp;gt;&lt;/pre&gt;&lt;p class="rteleft"&gt;Here, the value of the &lt;span style="color: rgb(0, 0, 255); "&gt;data-rel&lt;/span&gt; attribute is &lt;span style="color: rgb(0, 0, 255); "&gt;dialog&lt;/span&gt; which tells the jQuery Mobile to render this link as a dialog. Also, this hyperlink contains another attribute&lt;span style="color: rgb(0, 0, 255); "&gt; data-transition&lt;/span&gt; which determines the type of slide animation played when the dialog is rendered. It can have the following values:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;pop&lt;/li&gt;
&lt;li&gt;slidedown&lt;/li&gt;
&lt;li&gt;flip&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When the user clicks on this link the div &lt;span style="color: rgb(0, 0, 255); "&gt;confirm&lt;/span&gt; is rendered as a dialog, as shown below:&lt;/p&gt;
&lt;pre title="code" class="brush: xml;"&gt;
&amp;lt;!-- Dialog page --&amp;gt;  
&amp;lt;div data-role=&amp;quot;page&amp;quot; id=&amp;quot;confirm&amp;quot;&amp;gt;
  &amp;lt;div data-role=&amp;quot;header&amp;quot;&amp;gt;
    &amp;lt;h1&amp;gt;Confirm&amp;lt;/h1&amp;gt;
  &amp;lt;/div&amp;gt;&amp;lt;!-- /header --&amp;gt;
  
  &amp;lt;div data-role=&amp;quot;content&amp;quot;&amp;gt;
    Do you want to go to this external link?
	&amp;lt;a href=&amp;quot;http://www.botskool.com&amp;quot; 
	   data-role=&amp;quot;button&amp;quot; 
	   data-inline=&amp;quot;true&amp;quot;&amp;gt;
	     Yes
	&amp;lt;/a&amp;gt; 
	&amp;lt;a href=&amp;quot;#&amp;quot; 
	   data-role=&amp;quot;button&amp;quot; 
	   data-inline=&amp;quot;true&amp;quot; 
	   data-rel=&amp;quot;back&amp;quot; 
	   data-theme=&amp;quot;a&amp;quot;&amp;gt;
	     No
	&amp;lt;/a&amp;gt;
  &amp;lt;/div&amp;gt;&amp;lt;!-- /content --&amp;gt;
&amp;lt;/div&amp;gt;&amp;lt;!-- /page --&amp;gt;&lt;/pre&gt;&lt;p&gt;Here, in the content section we have added two buttons - &lt;strong&gt;Yes&lt;/strong&gt; and &lt;strong&gt;No&lt;/strong&gt;. A hyperlink is rendered as a button if it contains an attribute&lt;span style="color: rgb(0, 0, 255); "&gt; data-role&lt;/span&gt; with value &lt;span style="color: rgb(0, 0, 255); "&gt;button&lt;/span&gt;. The &lt;strong&gt;No&lt;/strong&gt;&amp;nbsp;button contains another attribute named &lt;span style="color: rgb(0, 0, 255); "&gt;data-rel&lt;/span&gt; with value &lt;span style="color: rgb(0, 0, 255); "&gt;back&lt;/span&gt;. This tells the jQuery Mobile to take the user to the previous page when this button is clicked. And, finally if we click on &lt;strong&gt;Yes&lt;/strong&gt; button we are taken to the external website as already discussed above. &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-create-and-render-dialog-web-page-using-jquery-mobile';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/4R_y1hZfQ00" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-create-and-render-dialog-web-page-using-jquery-mobile#comments</comments>
 <category domain="http://www.botskool.com/category/tags/jquery-mobile">jQuery Mobile</category>
 
 <pubDate>Sat, 25 Feb 2012 09:29:39 +0000</pubDate>
 <dc:creator>shashwat</dc:creator>
 <guid isPermaLink="false">1069 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-create-and-render-dialog-web-page-using-jquery-mobile</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/wsnqtwvo2S4/preview" length="33313" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1070/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to create random alphanumeric password in PHP</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/5XeZn5dh_fQ/how-create-random-alphanumeric-password-php</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;At times, you may need to generate and provide your website user with a new or default password. For example, if a user has forgotten his/her password then you may need to generate a new password for him/her.&lt;/p&gt;
&lt;p&gt;Or you may want to provide default password to newly registered users after they have verified their e-mail address. It is obvious that password generated in these circumstances should be random in nature.&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p&gt;Here, I will show you an easy way to generate random alphanumeric password in PHP.&lt;/p&gt;
&lt;p&gt;We will create a function named &lt;span style="color: rgb(0, 0, 255); "&gt;generate_random_password()&lt;/span&gt; for generating password. It will take an optional parameter, &lt;span style="color: rgb(0, 0, 255); "&gt;$length&lt;/span&gt;, which will define the length of the password. Create a new PHP file and add the following code to it:&lt;/p&gt;
&lt;pre title="code" class="brush: php;"&gt;
&amp;lt;?php
  function generate_random_password($length = 10) {
    $alphabets = range('A','Z');
	$numbers = range('0','9');
	$additional_characters = array('_','.');
	$final_array = array_merge($alphabets,$numbers,$additional_characters);
		
	$password = '';
 
	while($length--) {
	  $key = array_rand($final_array);
	  $password .= $final_array[$key];
	}
 
	return $password;
  }
  echo 'Random password generated is &amp;quot;&amp;lt;b&amp;gt;' . generate_random_password(15) . '&amp;lt;/b&amp;gt;&amp;quot;.';
?&amp;gt;&lt;/pre&gt;&lt;p&gt;In the above code we have used the &lt;span style="color: rgb(0, 0, 255); "&gt;range()&lt;/span&gt; function to automatically generate sequence of alphabets and numbers which are stored in variables &lt;span style="color: rgb(0, 0, 255); "&gt;$alphabets&lt;/span&gt; and &lt;span style="color: rgb(0, 0, 255); "&gt;$numbers&lt;/span&gt; respectively. We have also defined an additional array named &lt;span style="color: rgb(0, 0, 255); "&gt;$additional_characters&lt;/span&gt; which contains any additional character that we may want to use in our password.&lt;/p&gt;
&lt;p&gt;After this we merge all the three arrays together with the help of &lt;span style="color: rgb(0, 0, 255); "&gt;array_merge()&lt;/span&gt; function and store the result in the resultant array &lt;span style="color: rgb(0, 0, 255); "&gt;$final_array&lt;/span&gt;. Also, we have declared &lt;span style="color: rgb(0, 0, 255); "&gt;$password&lt;/span&gt; variable which will contain our final generated password.&lt;/p&gt;
&lt;p&gt;Next, we use &lt;span style="color: rgb(0, 0, 255); "&gt;array_rand()&lt;/span&gt; function to pick a random key from the resultant array. We append the character corresponding to this random selected key from the resultant array to &lt;span style="color: rgb(0, 0, 255); "&gt;$password&lt;/span&gt; variable. We keep doing this in a while loop until we have created the password of desired length. Finally, we return the randomly generated password. The output is shown below:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Randomly generated alphanumeric password in PHP" width="386" height="46" src="http://www.botskool.com/sites/default/files/image/create-random-alphanumeric-password-php.PNG" /&gt;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-create-random-alphanumeric-password-php';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/5XeZn5dh_fQ" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-create-random-alphanumeric-password-php#comments</comments>
 <category domain="http://www.botskool.com/category/tags/php">PHP</category>
 
 <pubDate>Fri, 24 Feb 2012 17:38:14 +0000</pubDate>
 <dc:creator>apeksha</dc:creator>
 <guid isPermaLink="false">1067 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-create-random-alphanumeric-password-php</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/yNZQ58HbikI/preview" length="21286" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1068/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to display a retweet button in your posts in WordPress</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/h54OG60GoRg/how-display-retweet-button-your-posts-wordpress</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;Social networking sites such as Facebook, Twitter, etc provide a powerful medium for website administrators to promote their content and in turn increase traffic flow to their website. Retweeting button is a powerful tool to publicise your content on Twitter. Retweet button in your post provides the user with an option to share your content on Twitter, if they find it interesting. When a user clicks on retweet button, a tweet corresponding to your post is automatically posted to the Twitter which helps in bringing targeted visitors to your website.&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p&gt;In WordPress we can use &lt;strong&gt;Topsy ReTweet Button&lt;/strong&gt; plugin to add this feature to our blog. Follow the steps listed below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Log in to &lt;strong&gt;WordPress Dashboard&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;From the left sidebar, go to &lt;strong&gt;Plugin -&amp;gt; Add New&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress dashboard login" width="359" height="465" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-1.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Search for &lt;strong&gt;Topsy ReTweet&lt;/strong&gt; as shown below:&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress plug-in add new page" width="481" height="481" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-2.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In search results locate the plugin and click on &lt;strong&gt;Install Now&lt;/strong&gt; link.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Search for Topsy ReTweet" width="550" height="287" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-3.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enter your FTP details for your web server.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress FTP connection information" width="550" height="412" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-4.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The plugin will now be downloaded to your web server. Click on &lt;strong&gt;Activate Plugin&lt;/strong&gt; link.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Click on Activate Plug-in link" width="550" height="159" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-5.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings -&amp;gt; Topsy&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Go to Topsy settings page " width="302" height="667" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-6.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Now configure the plug-in as per your requirement and click on &lt;strong&gt;Save&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Topsy Retweet Button setup" width="550" height="305" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-7.jpg" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;That's it! We are done. The retweet button in your post will look like this:&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Retweet button in your post" width="550" height="345" src="http://www.botskool.com/sites/default/files/image/how-display-retweet-button-your-posts-wordpress-8.jpg" /&gt;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-display-retweet-button-your-posts-wordpress';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/h54OG60GoRg" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-display-retweet-button-your-posts-wordpress#comments</comments>
 <category domain="http://www.botskool.com/category/tags/wordpress">WordPress</category>
 
 <pubDate>Fri, 24 Feb 2012 01:40:58 +0000</pubDate>
 <dc:creator>shashwat</dc:creator>
 <guid isPermaLink="false">1065 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-display-retweet-button-your-posts-wordpress</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/e34gyZDnBC4/preview" length="7907" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1066/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to make website mobile friendly in WordPress</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/cEFs99Tip2g/how-make-website-mobile-friendly-wordpress</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;Nowadays, it&amp;rsquo;s must to have mobile support for your website. With the upsurge of smartphones and tablets in the market, website administrator can no longer ignore traffic coming from mobile devices. As by design the screen of mobile devices is very small compared to that of computers, it is a better idea to have altogether a different theme for mobile devices. For this we need to detect if a user is using a mobile and then accordingly display a different theme to him/her. Fortunately, there are many plugins available to do this task.&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p&gt;We can use WPTouch WordPress to support mobile devices for our blog. Follow the steps given below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Log in to WordPress Dashboard.&lt;/li&gt;
&lt;li&gt;Then from the left sidebar, go to &lt;strong&gt;Plugins -&amp;gt; Add New&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Go to WordPress Plugin Add New Page" width="411" height="591" src="http://www.botskool.com/sites/default/files/how-make-website-mobile-friendly-wordpress-1.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Search for &lt;strong&gt;WPTouch&lt;/strong&gt; as shown below:&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Search for WPTouch" width="547" height="474" src="http://www.botskool.com/sites/default/files/image/how-make-website-mobile-friendly-wordpress-2.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the search results, locate &lt;em&gt;WPTouch&lt;/em&gt; row and click on &lt;strong&gt;Install Now&lt;/strong&gt; link.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Install WPTouch" width="550" height="255" src="http://www.botskool.com/sites/default/files/image/how-make-website-mobile-friendly-wordpress-3.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enter your FTP login details for your web server.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress FTP login details" width="550" height="448" src="http://www.botskool.com/sites/default/files/image/how-make-website-mobile-friendly-wordpress-4.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The plugin will be downloaded to your web server. Click on &lt;strong&gt;Activate Plugin&lt;/strong&gt; link.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Activate WordPress WPTouch Plugin" width="550" height="159" src="http://www.botskool.com/sites/default/files/image/how-make-website-mobile-friendly-wordpress-5.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;After this you will see the following message upon activation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Plugin activated message" width="367" height="125" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-6_0.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings -&amp;gt; WPTouch&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Go to WPTouch settings" width="362" height="631" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-7_0.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change the &lt;strong&gt;WPTouch&lt;/strong&gt; settings. Here, I have changed the site title.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WPTouch settings" width="550" height="306" src="http://www.botskool.com/sites/default/files/image/how-make-website-mobile-friendly-wordpress-8.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Save the settings. That's it! On mobile device your blog will look like this:&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WPTouch on mobile" width="550" height="410" src="http://www.botskool.com/sites/default/files/image/how-make-website-mobile-friendly-wordpress-9.PNG" /&gt;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-make-website-mobile-friendly-wordpress';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/cEFs99Tip2g" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-make-website-mobile-friendly-wordpress#comments</comments>
 <category domain="http://www.botskool.com/category/tags/wordpress">WordPress</category>
 
 <pubDate>Wed, 22 Feb 2012 14:19:54 +0000</pubDate>
 <dc:creator>shashwat</dc:creator>
 <guid isPermaLink="false">1062 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-make-website-mobile-friendly-wordpress</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/q5WqvxiQsXM/preview" length="24982" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1063/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to change author attribution on all posts at once in WordPress</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/jRYTOZO38n4/how-change-author-attribution-all-posts-once-wordpress</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;Want to transfer post from one author to another? Perhaps you initially created all your posts with the administrative user as author and now you want delegate them to another user. Transferring posts is very easy in WordPress and can be done on post management page. Say initially all your posts were authored by default admin user.&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p class="rtecenter"&gt;&lt;img alt="WordPress post by admin" width="550" height="359" src="http://www.botskool.com/sites/default/files/image/how-change-author-attribution-all-posts-once-wordpress-1.jpg" /&gt;&lt;/p&gt;
&lt;p class="rteleft"&gt;In this article we will change the author attribution from &lt;em&gt;admin&lt;/em&gt; to some other author, say &lt;em&gt;shashwat&lt;/em&gt;. To do so, follow the steps given below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Log in to WordPress Dashboard.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Posts -&amp;gt; All Posts&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress Post Management page" width="550" height="351" src="http://www.botskool.com/sites/default/files/image/how-change-author-attribution-all-posts-once-wordpress-2.PNG" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;As you can see all the posts are currently by admin, as shown in the above screenshot. Select all your posts by clicking on checkbox adjacent to &lt;em&gt;Title&lt;/em&gt; column.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress select all posts by admin" width="550" height="361" src="http://www.botskool.com/sites/default/files/image/how-change-author-attribution-all-posts-once-wordpress-3.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Next, click on &lt;strong&gt;Bulk Actions&lt;/strong&gt; dropdown and choose &lt;strong&gt;Edit&lt;/strong&gt; option as shown below. And, click on &lt;strong&gt;Apply&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress Bulk Action" width="550" height="365" src="http://www.botskool.com/sites/default/files/image/how-change-author-attribution-all-posts-once-wordpress-4.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change your author in the &lt;em&gt;Bulk Edit&lt;/em&gt; window as highlighted below. Click on &lt;strong&gt;Update&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress change author" width="550" height="234" src="http://www.botskool.com/sites/default/files/image/how-change-author-attribution-all-posts-once-wordpress-5.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;That's it! Now all the selected posts will have the new author.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress posts author changed" width="550" height="343" src="http://www.botskool.com/sites/default/files/image/how-change-author-attribution-all-posts-once-wordpress-6.PNG" /&gt;&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress post author changed to new one" width="550" height="367" src="http://www.botskool.com/sites/default/files/image/how-change-author-attribution-all-posts-once-wordpress-7.jpg" /&gt;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-change-author-attribution-all-posts-once-wordpress';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/jRYTOZO38n4" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-change-author-attribution-all-posts-once-wordpress#comments</comments>
 <category domain="http://www.botskool.com/category/tags/wordpress">WordPress</category>
 
 <pubDate>Fri, 17 Feb 2012 09:19:25 +0000</pubDate>
 <dc:creator>shashwat</dc:creator>
 <guid isPermaLink="false">1058 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-change-author-attribution-all-posts-once-wordpress</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/H8nCqiWo-mw/preview" length="42142" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1059/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to display a login form in the sidebar in WordPress</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/tzjnXjjy0es/how-display-login-form-sidebar-wordpress</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;If you have a login form on the sidebar of your WordPress blog, then it becomes easy for visitors to be able to log on to your blog and this in turn increases the visitor interactions with your site. By default, WordPress doesn't provide login form on the blog but we can use Sidebar Login plugin to add this useful feature to our blog. Upon logging on to your blog via this plugin, it takes you to the post you were reading earlier instead of backend. Also, it provides password reminder and new registration links.&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p&gt;To display login form in the sidebar follow the steps listed below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Log in to your WordPress Dashboard.&lt;/li&gt;
&lt;li&gt;Then from the left sidebar, go to &lt;strong&gt;Plugins -&amp;gt; Add New&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress left sidebar" width="352" height="447" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-1.PNG" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Search for Sidebar Login as shown below:&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress Install Plugin" width="484" height="476" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-2.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;In the search results, locate &lt;em&gt;Sidebar Login&lt;/em&gt; row and click on &lt;strong&gt;Install Now&lt;/strong&gt; link.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Click on Install Now link for Sidebar Login plugin" width="484" height="470" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-3.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enter your FTP login details for your web server.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Enter FTP details for your Wordpress blog" width="550" height="400" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-4.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The plugin will be downloaded to your web server. Click on &lt;strong&gt;Activate Plugin&lt;/strong&gt; link.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Activate Sidebar Login plugin" width="551" height="155" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-5.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;After this you will see the following message upon activation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Plugin activated message" width="367" height="125" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-6.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings -&amp;gt; Sidebar Login&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Open Sidebar Login settings" width="362" height="631" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-7.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change the &lt;strong&gt;Sidebar Login&lt;/strong&gt; settings. Here, I have changed the form heading.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Sidebar Login plugin settings" width="550" height="629" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-8.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Save the settings.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img width="444" height="123" alt="" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-9.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;strong&gt;Appearance -&amp;gt; Widgets&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Go to Widget section" width="309" height="388" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-10.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Drag the &lt;strong&gt;Sidebar Login&lt;/strong&gt; widget to the Main Sidebar area.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress Widget section" width="550" height="239" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-11.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;That's it! The Login form will appear like this in the sidebar for anonymous users:&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Sidebar Login for anonymous user" width="550" height="319" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-12.jpg" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For logged in users it will look like this:&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Sidebar Login for logged-in user" width="550" height="386" src="http://www.botskool.com/sites/default/files/image/how-display-login-form-sidebar-wordpress-13.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-display-login-form-sidebar-wordpress';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/tzjnXjjy0es" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-display-login-form-sidebar-wordpress#comments</comments>
 <category domain="http://www.botskool.com/category/tags/wordpress">WordPress</category>
 
 <pubDate>Thu, 16 Feb 2012 17:14:49 +0000</pubDate>
 <dc:creator>shashwat</dc:creator>
 <guid isPermaLink="false">1056 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-display-login-form-sidebar-wordpress</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/7ogGGUJ-Rs4/preview" length="3897" type="image/jpeg" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1057/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to create SEO friendly URLs by changing permalink settings in Wordpress 3.3</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/usZ2D3FpEgQ/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;While doing search engine optimization for your website, it is important to ensure that the title and URL of webpages contain relevant important keywords which have been used in content. If your article has clean and user friendly URL, then it increases the chance of your webpage to appear at top in search results. By default, the URLs generated by WordPress are not SEO friendly and appear like this:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress default generated URL" width="441" height="63" src="http://www.botskool.com/sites/default/files/image/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33-1.PNG" /&gt;&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p class="rteleft"&gt;Here, I will show you how to change this permalink setting and automatically create SEO friendly URLs by configuring WordPress. Follow the steps listed below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Log in to your WordPress Dashboard.&lt;/li&gt;
&lt;li&gt;Then from the left sidebar, go to &lt;strong&gt;Settings -&amp;gt; Permalinks&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress - Go to Permalink Settings Page" width="361" height="556" src="http://www.botskool.com/sites/default/files/image/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33-2.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Next, you will be taken to &lt;strong&gt;Permalink Settings&lt;/strong&gt; page.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="WordPress Permalink Settings Page" width="550" height="469" src="http://www.botskool.com/sites/default/files/image/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33-3.PNG" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;As you can see in the above screenshot, WordPress provides us with some pre-defined permalink structures. We can either use one of them or define a custom permalink structure. Here, we will define a permalink structure. In order to define custom structure we can make use of the following structure tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;table width="100%" border="0" cellpadding="1" cellspacing="1"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th scope="col"&gt;Structure Tag Name&lt;/th&gt;
&lt;th scope="col"&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;%author%&lt;/td&gt;
&lt;td&gt;The author of the post&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%category%&lt;/td&gt;
&lt;td&gt;The category of the post&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%day%&lt;/td&gt;
&lt;td&gt;The day the post was published, for example 15 for the fifteenth day of the month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%hour%&lt;/td&gt;
&lt;td&gt;The hour the post was published&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%minute%&lt;/td&gt;
&lt;td&gt;The minute the post was published&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%monthnum%&lt;/td&gt;
&lt;td&gt;The month the post was published, for example 02 for February&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%post_id%&lt;/td&gt;
&lt;td&gt;The post ID, for example, 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%postname%&lt;/td&gt;
&lt;td&gt;The name of the post&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%second%&lt;/td&gt;
&lt;td&gt;The second the post was published&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%tag%&lt;/td&gt;
&lt;td&gt;The tag field&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%year%&lt;/td&gt;
&lt;td&gt;The year the post was published, for example, 2012&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;As an example, let us define our custom structure as &lt;span style="color: rgb(0, 0, 255); "&gt;/%author%/%postname%/,&amp;nbsp;&lt;/span&gt;as shown below: &amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Define a custom permalink structure in Wordpress" width="550" height="499" src="http://www.botskool.com/sites/default/files/image/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33-4.png" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click on &lt;strong&gt;Save Changes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;That's it! Now, if you go and check URL of any post it will be displayed based on new permalink structure. A sample is shown below:&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="rtecenter"&gt;&lt;img width="447" height="643" alt="" src="http://www.botskool.com/sites/default/files/image/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33-5.PNG" /&gt;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/usZ2D3FpEgQ" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33#comments</comments>
 <category domain="http://www.botskool.com/category/tags/wordpress">WordPress</category>
 
 <pubDate>Wed, 15 Feb 2012 09:47:51 +0000</pubDate>
 <dc:creator>shashwat</dc:creator>
 <guid isPermaLink="false">1052 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-create-seo-friendly-urls-changing-permalink-settings-wordpress-33</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/TW48WkYEof0/preview" length="36255" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1054/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>Facebook Application Development with Graph API Cookbook</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/ahIId1fKtkY/facebook-application-development-graph-api-cookbook</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;With Facebook transforming into the alter ego of every tech-savvy on this planet&amp;hellip;the staggering 1 billion user figure and a collage entailing integration of 7 million websites bears ample testimony to the colossal popularity of this avant-garde, courtesy Mark Zuckerberg. It won&amp;rsquo;t be a hyperbole to state that Facebook is the numero-uno among a myriad nunmber of social networking websites. While every developer wants to jump on this bandwagon to create applications and games, there are a legion of tutorial websites sharing the tips and tricks on Facebook evolving API. For the assistance in Facebook application development, it is feasible alright to use snippets from online websites but if you are developing a complex application or game, stand alone snippets won&amp;rsquo;t take you far. On top of that, you have an ever evolving Facebook API which makes development more cumbersome.&lt;/p&gt;
&lt;!--break--&gt;&lt;!--break--&gt;&lt;p&gt;Also in complex Facebook applications which are akin to a baffling labyrinth, if you don&amp;rsquo;t adopt a consistent approach from scratch, you might land yourself in bigger problems. For consistent approach, one way is to follow some Book where all most commonly used features and scenarios are explained with examples and code.&lt;/p&gt;
&lt;p&gt;Facebook launched Graph API last year but they have made several updates since then and now require all legacy apps to migrate to Graph API. For Facebook Open Graph Beta, you can get some really handy tips with some intuitive ready-to-use applications from&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt; Facebook Application Development with Graph API Cookbook&lt;/a&gt;.&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;&lt;img alt="Facebook Application Development with Graph API Cookbook" width="348" height="430" src="http://www.botskool.com/sites/default/files/image/graph-api-cookbook.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;Overview of Facebook Application Development with Graph API Cookbook&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Dive headfirst into Facebook application development with the all new Facebook Graph API.&lt;/li&gt;
&lt;li&gt;Packed with many demonstrations on how to use Facebook PHP and JS SDKs.&lt;/li&gt;
&lt;li&gt;Step by step examples demonstrating common scenarios and problems encountered during Facebook Application Development.&lt;/li&gt;
&lt;li&gt;Houses an exquisite collection of ready to use Facebook applications.&lt;/li&gt;
&lt;li&gt;Learn how to leverage Facebook Query Language in order to obtain complex Facebook user data.&lt;/li&gt;
&lt;li&gt;Power your websites with Facebook Social Plugins.&lt;/li&gt;
&lt;li&gt;See how to incorporate Facebook Dialogs to make attractive applications.&lt;/li&gt;
&lt;li&gt;Use the newly launched Facebook virtual currency to sell premium items to users.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;&lt;strong&gt;Where to get it&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;&lt;strong&gt;Click here to buy this book from PACKT [recommended].&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.amazon.com/dp/1849690928/?tag=packtpubli-20"&gt;Click here to order this book from Amazon.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.amazon.com/Facebook-Application-Development-Cookbook-ebook/dp/B0068K66W2"&gt;Click here to purchase the Kindle edition of this book from Amazon.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.flipkart.com/books/1849690928"&gt;Click here to order this book from Flipkart.com&lt;/a&gt;.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Like and share this book!&lt;br /&gt;
&lt;iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.packtpub.com%2Ffacebook-application-development-with-graph-api-cookbook%2Fbook&amp;amp;send=false&amp;amp;layout=standard&amp;amp;width=270&amp;amp;show_faces=true&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=80&amp;amp;appId=187147567179" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowtransparency="true"&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;With a user base of nearly 800 million people, Facebook is the number one social networking platform. Applications can be created to interact with this huge user base in various ways both inside and outside Facebook. These applications, if developed effectively and efficiently, offer a free medium for promotion and publicity of a product or an organization.&lt;/p&gt;
&lt;p&gt;Facebook Application Development with Graph API Cookbook covers both the concepts and implementations necessary to develop Facebook applications and provides ready to use code for common scenarios faced by a developer while creating these applications. It incorporates the newly launched Facebook Graph API and also presents the reader with some intuitive ready to use applications.&lt;/p&gt;
&lt;p&gt;This book guides the reader step by step, from start to finish, through various stages of Facebook application development. It begins by exploring the Facebook application registration and discussing the verification and authentication technique. It then takes you through the various ways in which you can use Facebook Graph API for interacting with users such as posting on a user&amp;rsquo;s wall, tagging a user in a picture, etc. Accessing complex Facebook user data by formulating a series of queries, doing client side scripting and incorporating Facebook Dialog interface are some other features that have been incorporated in this book. Integration of various Facebook Social Plugins such as the like box in your web page has also been discussed. Further you will get to know the concept of virtual currency and how to programmatically derive Facebook analytics data. As the book progresses, you will learn to use and integrate many more advanced features in Facebook application development. The book contains ready to use code that can be deployed instantly. Towards the end, the book houses a variety of ready to use Facebook applications so as to help readers derive their own applications from them.&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;What you will learn from this book :&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install Facebook PHP SDK and register your Facebook application&lt;/li&gt;
&lt;li&gt;Obtain access token and perform session validation for current Facebook user&lt;/li&gt;
&lt;li&gt;Work with the newly launched Facebook Graph API&lt;/li&gt;
&lt;li&gt;Get an insight into the core of Facebook application development such as creating a post on wall, publishing pictures, tagging users, etc&lt;/li&gt;
&lt;li&gt;Connect to Facebook Social Graph by using Facebook PHP and JavaScript SDKs&lt;/li&gt;
&lt;li&gt;Leverage Facebook Query Language in order to obtain complex Facebook user data&lt;/li&gt;
&lt;li&gt;Use Facebook Dialogs to enhance user experience&lt;/li&gt;
&lt;li&gt;Power your websites with Facebook Social Plugins&lt;/li&gt;
&lt;li&gt;Define your website content to Facebook Graph using Facebook Open Graph Protocol&lt;/li&gt;
&lt;li&gt;Handle transactions through Facebook Credits&lt;/li&gt;
&lt;li&gt;Use XFBML tags to enrich your application&lt;/li&gt;
&lt;li&gt;Extract Facebook application analytics data&lt;/li&gt;
&lt;li&gt;Create your own applications, from tip to toe, with ready to use code&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;b&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;Approach&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Written in a cookbook style, this book offers solutions using a recipe-based approach. Each recipe contains step-by-step instructions followed by an analysis of what was done in each task and other useful information. The cookbook approach means you can dive into whatever recipes you want in no particular order. The book provides tips and tricks to the most common problems and scenarios faced in Facebook Application Development.&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;Who this book is written for&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;This book is written for Facebook developers ranging from novice to expert. It uses PHP, HTML and jQuery, the most commonly used platforms, to build applications in Facebook.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;&lt;strong&gt;Where to get it&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.packtpub.com/facebook-application-development-with-graph-api-cookbook/book"&gt;&lt;strong&gt;Click here to buy this book from PACKT [recommended].&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.amazon.com/dp/1849690928/?tag=packtpubli-20"&gt;Click here to order this book from Amazon.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.amazon.com/Facebook-Application-Development-Cookbook-ebook/dp/B0068K66W2"&gt;Click here to purchase the Kindle edition of this book from Amazon.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.flipkart.com/books/1849690928"&gt;Click here to order this book from Flipkart.com&lt;/a&gt;.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Like and share this book!&lt;br /&gt;
&lt;iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.packtpub.com%2Ffacebook-application-development-with-graph-api-cookbook%2Fbook&amp;amp;send=false&amp;amp;layout=standard&amp;amp;width=270&amp;amp;show_faces=true&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=80&amp;amp;appId=187147567179" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowtransparency="true"&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/facebook-application-development-graph-api-cookbook';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/ahIId1fKtkY" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/facebook-application-development-graph-api-cookbook#comments</comments>
 <category domain="http://www.botskool.com/category/tags/facebook">Facebook</category>
 
 <pubDate>Mon, 28 Nov 2011 15:26:53 +0000</pubDate>
 <dc:creator>apeksha</dc:creator>
 <guid isPermaLink="false">1049 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/facebook-application-development-graph-api-cookbook</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/fiRhL-JUd4o/preview" length="27571" type="image/png" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1050/preview</feedburner:origEnclosureLink></item>
  <item>
    <title>How to listen for Phone Events in Android</title>
    <link>http://feedproxy.google.com/~r/bOtskOOl/~3/CpJYoW8-GIg/how-listen-phone-events-android</link>
    <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;If we want our application to deal with telephony services on the device then we can do so with the help &lt;span style="color: rgb(0, 0, 255); "&gt;android.telephony&lt;/span&gt; package. In this article, I will show you &lt;strong&gt;how to listen for different phone events and take action based upon them&lt;/strong&gt;. In other words we can make our application react to any phone event such as when the phone rings, signal strength changes, etc. Also, the access to this telephony information of device is permission protected and our application should have appropriate permissions in order to receive device call change updates. So, let's get started!&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;In order to demonstrate how to listen to phone events, we will add a textview to our application. Whenever we receive any update related to device call state we will add the information to this textview and display it to the user. Create a new Android project in Eclipse with the following properties:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Project Name &amp;ndash; &lt;strong&gt;Phone Events&lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;Name of the Application &amp;ndash; &lt;strong&gt;Phone Events&lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;Package name &amp;ndash; &lt;strong&gt;com.botskool.PhoneEvents&lt;/strong&gt;&lt;/li&gt;
    &lt;li&gt;Activity Name &amp;ndash; &lt;strong&gt;PhoneEventsActivity&lt;/strong&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Open the file named &lt;strong&gt;AndroidManifest.xml&lt;/strong&gt;&amp;nbsp;and add the following tag, as a child node of &lt;span style="color: rgb(0, 0, 255); "&gt;mainfest&lt;/span&gt; tag:&lt;/p&gt;
&lt;pre title="code" class="brush: xml;"&gt;
&amp;lt;uses-permission android:name=&amp;quot;android.permission.READ_PHONE_STATE&amp;quot; /&amp;gt;&lt;/pre&gt;
&lt;p&gt;This tag specifies that our application needs permission to read phone state. This permission is requested from user during installation of the application. So the complete code of &lt;span style="color: rgb(0, 0, 255); "&gt;AndroidManifest.xml&lt;/span&gt; file will be:&lt;/p&gt;
&lt;pre title="code" class="brush: xml;"&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&amp;lt;manifest xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;
      package=&amp;quot;com.botskool.PhoneEvents&amp;quot;
      android:versionCode=&amp;quot;1&amp;quot;
      android:versionName=&amp;quot;1.0&amp;quot;&amp;gt;
    &amp;lt;uses-sdk android:minSdkVersion=&amp;quot;10&amp;quot; /&amp;gt;
	&amp;lt;uses-permission android:name=&amp;quot;android.permission.READ_PHONE_STATE&amp;quot; /&amp;gt;
    &amp;lt;application android:icon=&amp;quot;@drawable/icon&amp;quot; android:label=&amp;quot;@string/app_name&amp;quot;&amp;gt;
        &amp;lt;activity android:name=&amp;quot;.PhoneEventsActivity&amp;quot;
                  android:label=&amp;quot;@string/app_name&amp;quot;&amp;gt;
            &amp;lt;intent-filter&amp;gt;
                &amp;lt;action android:name=&amp;quot;android.intent.action.MAIN&amp;quot; /&amp;gt;
                &amp;lt;category android:name=&amp;quot;android.intent.category.LAUNCHER&amp;quot; /&amp;gt;
            &amp;lt;/intent-filter&amp;gt;
        &amp;lt;/activity&amp;gt;

    &amp;lt;/application&amp;gt;
&amp;lt;/manifest&amp;gt;&lt;/pre&gt;
&lt;p&gt;Next, open the file named &lt;strong&gt;res/layout/main.xml&lt;/strong&gt;&amp;nbsp;and add the following code to it:&lt;/p&gt;
&lt;pre title="code" class="brush: xml;"&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&amp;lt;LinearLayout xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;
    android:orientation=&amp;quot;vertical&amp;quot;
    android:layout_width=&amp;quot;fill_parent&amp;quot;
    android:layout_height=&amp;quot;fill_parent&amp;quot;
    &amp;gt;
&amp;lt;TextView  
    android:layout_width=&amp;quot;fill_parent&amp;quot; 
    android:layout_height=&amp;quot;wrap_content&amp;quot; 
    android:id=&amp;quot;@+id/call_state_view&amp;quot;
    /&amp;gt;
&amp;lt;/LinearLayout&amp;gt;
&lt;/pre&gt;
&lt;p&gt;We are using linear layout for our application and we have defined a textview inside it. We will display phone state information inside this textview.&lt;/p&gt;
&lt;p&gt;Now, add the following code to &lt;strong&gt;PhoneEventsActivity.java&lt;/strong&gt;:&lt;/p&gt;
&lt;pre title="code" class="brush: java;"&gt;
package com.botskool.PhoneEvents;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
import android.widget.TextView;

public class PhoneEventsActivity extends Activity {
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        final TextView textView = (TextView) findViewById(R.id.call_state_view);
        final TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
        PhoneStateListener phoneStateListener = new PhoneStateListener() {
        	@Override
        	public void onCallStateChanged(int state, String number) {
        		String currentPhoneState = null;
        		switch (state) {
        			case TelephonyManager.CALL_STATE_RINGING:
        				currentPhoneState = &amp;quot;Device is ringing. Call from &amp;quot; + number + &amp;quot;.\n\n&amp;quot;;
        				break;
        			case TelephonyManager.CALL_STATE_OFFHOOK:
        				currentPhoneState = &amp;quot;Device call state is currently Off Hook.\n\n&amp;quot;;
        				break;
        			case TelephonyManager.CALL_STATE_IDLE:
        				currentPhoneState = &amp;quot;Device call state is currently Idle.\n\n&amp;quot;;
        				break;
        		}
        		textView.append(currentPhoneState);
        	}
        };
        telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
    }
}&lt;/pre&gt;
&lt;p&gt;Finally, compile the program and launch the Android application. Initially, you will see the device call state as idle as shown below:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Initial Phone State" width="495" height="352" src="http://www.botskool.com/sites/default/files/image/how-listen-phone-events-android-1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Now, lets try calling the emaluator by going to Emaluator Control tab in DDMS perspective of the Eclipse and see how our Android application behaves:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Making a phone call to emaluator" width="437" height="569" src="http://www.botskool.com/sites/default/files/image/how-listen-phone-events-android-2.png" /&gt;&lt;/p&gt;
&lt;p&gt;As soon as you will call you will see the ringing screen on the emaluator as shown below:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Incoming call to the emaluator" width="496" height="818" src="http://www.botskool.com/sites/default/files/image/how-listen-phone-events-android-3.png" /&gt;&lt;/p&gt;
&lt;p&gt;After you hangup, the Android application will show the information pertaining to all device call state changes. A sample screenshot is show below:&lt;/p&gt;
&lt;p class="rtecenter"&gt;&lt;img alt="Phone Events list after call" width="497" height="815" src="http://www.botskool.com/sites/default/files/image/how-listen-phone-events-android-4.png" /&gt;&lt;/p&gt;
&lt;p&gt;You can extend this idea further and take more definitive actions based upon state change. Here, we have used&amp;nbsp;&lt;span style="color: rgb(0, 0, 255); "&gt;TelephonyManager&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style="color: rgb(0, 0, 255); "&gt;PhoneStateListener&lt;/span&gt;&amp;nbsp;classes.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span style="color: rgb(0, 0, 255); "&gt;getSystemService()&lt;/span&gt;&amp;nbsp;method returns a reference to the telephony service which is a system level service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Next, we instantiate an object of the&amp;nbsp;&lt;span style="color: rgb(0, 0, 255); "&gt;PhoneStateListener&lt;/span&gt;&amp;nbsp;class. Here, we define our actions corresponding to various phone events in the&amp;nbsp;&lt;span style="color: rgb(0, 0, 255); "&gt;onCallStateChanged()&lt;/span&gt;&amp;nbsp;method.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span style="color: rgb(0, 0, 255); "&gt;telephonyManager.listen()&lt;/span&gt;&amp;nbsp;method has been used to register the phone listener with the system. We pass the device we want to listen to as the parameter of this method.&amp;nbsp;&amp;nbsp;The device has been specified in the form of PhoneStateListener constant &lt;span style="color: rgb(0, 0, 255); "&gt;LISTEN_CALL_STATE&lt;/span&gt;. Whenever there is any change in the phone call state the &lt;span style="color: rgb(0, 0, 255); "&gt;onCallStateChange()&lt;/span&gt; method gets fired and a corresponding message is appended to the textview as a result.&lt;/p&gt;&lt;!-- google_ad_section_end --&gt;&lt;div class="outbrain_rating"&gt;&lt;SCRIPT LANGUAGE='JavaScript'&gt;
var OutbrainPermaLink	=	'http://www.botskool.com/geeks/how-listen-phone-events-android';
var OB_raterMode      = 'none';
var OB_recMode        = 'strip';
var OBITm			        =	'1316679798';
var OB_langJS			=	'http://widgets.outbrain.com/lang_en.js'; 
var OB_showRec = false; 
if ( typeof(OB_Script)!='undefined' )
OutbrainStart();
else 
{
var OB_Script = true; 
var str = "&lt;script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'&gt;&lt;/"+"script&gt;"; 
document.write(str);
} 
&lt;/SCRIPT&gt; 
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bOtskOOl/~4/CpJYoW8-GIg" height="1" width="1"/&gt;</description>
     <comments>http://www.botskool.com/geeks/how-listen-phone-events-android#comments</comments>
 <category domain="http://www.botskool.com/category/tags/android">Android</category>
 <category domain="http://www.botskool.com/category/geeks/google">Google</category>
 <category domain="http://www.botskool.com/category/tags/tutorials">Tutorials</category>
 
 <pubDate>Fri, 07 Oct 2011 19:35:14 +0000</pubDate>
 <dc:creator>shashwat</dc:creator>
 <guid isPermaLink="false">1047 at http://www.botskool.com</guid>
  <feedburner:origLink>http://www.botskool.com/geeks/how-listen-phone-events-android</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/bOtskOOl/~5/GS6Rw06bDdY/preview" length="3285" type="image/jpeg" /><feedburner:origEnclosureLink>http://www.botskool.com/image/view/1048/preview</feedburner:origEnclosureLink></item>
  </channel>
</rss>
