(Google plus one button without count) XHTML compliant

(Google plus one button without count) XHTML compliant

A. Please add this code in your <head> and </head> tags.

<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang:'en-US', parsetags:'explicit'}
</script>

B. Please add this code in your desired location like this:

<div id="plusone"></div>
<script type="text/javascript">
   gapi.plusone.render('plusone',{"size": "standard", "count": "false"});
</script>

How to find absolute path of a directory/folder in PHP?

Absolute path can be finding in the following ways:


<!--?php
$mypath = getcwd();
echo "My Absoluthe Path is: ";
echo $mypath;

Or

$dirname = dirname(__FILE__);
echo “Full path to this dirname: ” . $dirname . “”;
echo “Full path to a .htpasswd file in this dirname: ” . $dirname . “/.htpasswd” . “”;
?>

How to increase memory limit through WordPress wp-config.php file

Please find the wp-config.php in your WordPress root directory, then please add or customize the following line:

define(‘WP_MEMORY_LIMIT’, ’64M’); //change the 64M to 90M or according to your demand.

Notice: WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.

Rounded corners border-radius for IE for WordPress:

Download the PIE.htc file and Place it somewhere on your site, and then use this following CSS code:

//In header.php

# example
{
behavior: url(/PIE.htc);/* on your absolute path, where you have placed the PIE.htc file. */
}

//In your style sheet

#example
{
width:71px;
height:12px;
border-radius:15px; ; /* CSS3 */
background:#fff;
-moz-border-radius:15px; /* Firefox */
-webkit-border-radius:15px; /* Safari, Chrome */
position:relative;
zoom:1;
}

Rounded corners border-radius for IE

Download the border-radius.htc file, Place it somewhere on your site, and then use this following CSS code:

# example {
behavior: url(http://yoursite.com/border-radius.htc);
/* replace http://yoursite.com/ on your absolute path, where you have placed the border-radius.htc file. */
}

#example
{
width:71px;
height:12px;
border-radius:15px; ; /* CSS3 */
background:#fff;
-moz-border-radius:15px; /* Firefox */
-webkit-border-radius:15px; /* Safari, Chrome */
}

How to test websites for iPhone/iPod Touch without iPhone/iPod Touch

For iPhone/iPod Touch

Required:Safari

Testing procedure for iPhone/iPod Touch:

01.Open Safari

02.Go to Preferences (Edit->Preferences). Under the Advanced tab, ensure that “Show Develop menu in menu bar” is checked.

03.In the menu, click on Develop->User Agent->Safari iOS4.3.3-iPhone

04.Browse to your website and start testing!