Add google maps in wordpress post

You can add the google maps in wordpress post or pages very easily. You need to just use following code in your functions.php file. Open your functions.php file from your wordpress theme folder and copy paste the following code in that file.

Add google maps in wordpress post

You can Add google maps in wordpress post or pages very easily. Open your functions.php file from your wordpress theme folder and copy our code in file. If you don’t have functions.php file in your wordpress theme folder then create functions.php file and put following code in that file.


//Google Maps adding through Shortcode
function add_googlemap_in_wordpresss_in_wordpress($atts, $content = null) {
 extract(shortcode_atts(array(
 "width" => '620',
 "height" => '430',
 "src" => ''
 ), $atts));
 return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'&output=embed" >';
}
add_shortcode("googlemap_in_wordpress", "add_googlemap_in_wordpresss_in_wordpress");

How to use google maps in your wordpress posts and pages.

use the following code in your posts or pages.

[googlemap_in_wordpress width="280" height="280" src="[you_url]"]
Add google maps in wordpress post
Add google maps in wordpress post

You can change the height and width as per your requirement and for url you need to use following url
http://maps.google.com/
go to above url and choose your location and right side top you will find the link option. click on that link url and you will get the link of your location. Just copy paste that url. example as follows

[googlemap_in_wordpress width="280" height="280" src="[http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=New+York,+NY,+United+States&sll=37.0625,-95.677068&sspn=47.215051,79.013672&ie=UTF8&hq=&hnear=New+York&ll=40.555548,-73.730621&spn=0.356317,0.617294&z=11&iwloc=A]"]

Above code put in your post or page. you can see the google maps in your page.

Here is list of some wordpress plugins which will help you to integrate the google map in wordpress.

how to display or embed the google map in wordpress

Twitter follower count using PHP in WordPress

you can easily show twitter follower count in your wordpress site. In this tutorial we used twitter xml api for fetching Twitter follower count using PHP. You can place the twitter count in header section or footer section or sidebar section of wordpress.

Twitter follower count using PHP in WordPress

 

Twitter follower count using PHP in WordPress
Twitter follower count using PHP in WordPress

Using following code you can print the twitter followers count.


<!--?<span class="hiddenSpellError" pre="" data-mce-bogus="1"-->php
$twitter_api = file_get_contents('http://twitter.com/users/show/USERNAME.xml');
$text_output = '<followers_count>'; $end = '</followers_count>';
$page = $twitter_api;
$explode_content = explode($text_output,$page);
$page = $explode_content[1];
$explode_content = explode($end,$page);
$twitter_followers = $explode_content[0];
if($twitter_followers == '') { $twitter_followers = '0'; }
echo '<div><strong>'.$twitter_followers.' </strong> Followers</div>';

?>

You just need to replace the your name instead of USERNAME.

Tweet Button is launched by Twitter

Twitter launched the new share button.  We always used the tweetmeme button for our wordpress blogs and sites.

Tweet Button is launched by Twitter

Tweet Button is launched by Twitter
Tweet Button is launched by Twitter

Button Twitter launched very nice twitter button which has very nice cool look and feel.

If you want to use the new twitter button in your wordpress site than use following code:

<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script></pre>
<div>php the_title(); ?>&via=YOUR_NAME">Tweet</div>
<pre></pre>
<pre>

you will see the button as like this.

If you want to add the big button as follows than use following code:

<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script></pre>
<div>php the_permalink() ?>" data-via="YOUR-NAME" data-text="<!--?php the_title(); ?-->" data-related="<!--?php the_tags( '', ', ', ''); ?-->" data-count="vertical">Tweet</div>
<pre></pre>
<pre>

What Twitter is saying about this button.

The Tweet Button is a small widget which allows users to easily share your website with their followers. This page is for developers and users who wish to build their own Tweet Buttons. If you are looking for a quick way to build a Tweet Button for your website you can visit our Tweet Button Goodies Page.

The user interaction flow for the Tweet Button was designed to be as streamlined as possible and easy to use for both developers, website owners and users.

The steps a user goes through when using the Tweet Button are:

  1. The user clicks the Tweet Button
  2. The user is asked to login to Twitter if they aren’t already. If the user is new to Twitter they can also create an account.
  3. The Share Box appears already completed with the information provided in the properties of the Tweet Button. The user can change the content if they wish.
  4. Posting of the Tweet is confirmed and the user is suggested a maximum of two accounts they may wish to follow as provided in the properties of the Tweet Button.
  5. The Share Box remains open until the user presses close.

You can get the Twitter button from following site

http://twitter.com/goodies/tweetbutton

wordpress plugin create table on activation

WordPress plugin tutorial, wordpress plugin create table on activation, If you are making plugin and in plugin many times we need to create new tables. In this article I will show you how easily we can create the wordpress plugin.

wordpress plugin create table on activation

wordpress plugin create table on activation
wordpress plugin create table on activation

Using following code you can create the table in wordpress database.

global $jal_db_version;
$jal_db_version = "1.0";

function jal_install () {
   global $wpdb;
   global $jal_db_version;

   $table_name = $wpdb->prefix . "liveshoutbox";
   if($wpdb->get_var("show tables like '$table_name'") != $table_name) {

      $sql = "CREATE TABLE " . $table_name . " (
	  id mediumint(9) NOT NULL AUTO_INCREMENT,
	  time bigint(11) DEFAULT '0' NOT NULL,
	  name tinytext NOT NULL,
	  text text NOT NULL,
	  url VARCHAR(55) NOT NULL,
	  UNIQUE KEY id (id)
	);";

      require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
      dbDelta($sql);

      $rows_affected = $wpdb->insert( $table_name, array( 'time' => current_time('mysql'), 'name' => $welcome_name, 'text' => $welcome_text ) );

      add_option("jal_db_version", $jal_db_version);

   }
}

Now that we have the initialization function defined, we want to make sure that WordPress calls this function when the plugin is activated by a WordPress administrator. To do that, we will use the activate_ action hook. If your plugin file is wp-content/plugins/plugindir/pluginfile.php, you’ll add the following line to the main body of your plugin:

register_activation_hook(__FILE__,'jal_install');

how to modify autosave Interval in wordpress

When you start writing post in wordpress panel. WordPress has facility to autosave the post with in every one minute. modify autosave Interval in wordpress.

how to modify autosave Interval in wordpress

how to modify autosave Interval in wordpress
how to modify autosave Interval in wordpress

When editing a post, WordPress uses Ajax to auto-save revisions to the post as you edit. You may want to increase this setting for longer delays in between auto-saves, or decrease the setting to make sure you never lose changes. The default is 60 seconds.

This really good feature of wordpress but sometimes this became very painful to blogger because of revision posts and size to database. Due to post revision wordpress post table size increases and Due to that database became slower.

So I recommend to change the auto save time of your wordpress.You can change the ‘auto-save’ time of wordpress blogs by your own time limit. This task invloves changin the configuration of AUTOSAVE_INTERVAL constant and replacing the given time interval by your time.

Just follow my steps very carefully. Open the wp-config.php file which you can find in your wordpress root folder.

and find the following sentence.

define('AUTOSAVE_INTERVAL', 60 ); // seconds

and change that to following


define('AUTOSAVE_INTERVAL', 180 ); // seconds

After doing this change upload wp-config.php file to server again. After this change Auto save will start after 3 min instead of 1 minute.

How to use the_excerpt in WordPress

We all know what is excerpt. In wordpress using excerpt is good idea. WordPress provides the inbuild function called the_excerpt. Many people want to to show first few words on the theme front page. For that this function is very useful.

How to use the_excerpt in WordPress

How to use the_excerpt in WordPress
How to use the_excerpt in WordPress

If you do not provide an explicit excerpt to a post (in the post editor’s optional excerpt field), it will display an automatic excerpt which refers to the first 55 words of the post’s content. Also in the latter case, HTML tags and graphics are stripped from the excerpt’s content.

Important Note: the_excerpt function must be written in The Loop.
For using the excerpt tag you need to put following code in the loop.

<!--?<span class="hiddenSpellError" pre="" data-mce-bogus="1">php</span> the_excerpt(); ?-->

Some times you need to put excerpt tag conditionally. In archive or category and home page you want to show only the excerpt of post then you can use following code:

<!--?<span class="hiddenSpellError" pre="" data-mce-bogus="1">php</span> if ( is_category() || is_archive() || is_home() ) {-->
	the_excerpt();
} else {
	the_content();
} ?-->

If you want to Control Excerpt Length using Filters use following code. To change excerpt length using excerpt_length filter, add the following code to functions.php file in your theme:

function new_excerpt_length($length) {
return 20;
}
add_filter('excerpt_length', 'new_excerpt_length');

use the_excerpt in WordPress

Tip: You can Remove […] string using Filters.By default, excerpt more string at the end is set to ‘[…]’. To change excerpt more string using excerpt_more filter, add the following code to functions.php file in your theme:

function new_excerpt_more($more) {
	return '[.....]';
}
add_filter('excerpt_more', 'new_excerpt_more');

If you want to make read more link after excerpt then use following code:

function new_excerpt_more($more) {
       global $post;
	return '<a href="'. get_permalink($post->ID) . '">' . 'Read the Rest...' . '</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');

Best firefox addons for increase developers productivity

Firefox is mostly used by programmers and developers and designers as well. Here we have Best firefox addons for increase developers productivity. Now these days Firefox become so popular and so many common people are also started using the firefox for daily basis.

Best firefox addons for increase developers productivity

Firefox provides the very useful plugins or you can call as addon. Here are the list of some very popular and useful firefox addon list for increase your productivity.

CookieSafe and Remove Cookies for Site

Best firefox addons for increase developers productivity
Best firefox addons for increase developers productivity

CookieSafe is a useful extension that allows you to block cookies quickly for any given site. You can also control cookie permissions on a global level.

Remove Cookies for Site on the other hand allows you to quickly delete cookies for any site from the context menu. We can’t live without this one, since it definitely saves a whole load of time.

FastDial

FastDial is a extension that brings a new feature to Firefox, which is available in Opera by default. FastDial replaces your home page
and allows you add and quickly access your favorite websites by displaying small thumbnails, clicking on which will take you to the website.

Though there may be several ways in which you can access your favorite websites, we prefer FastDial since it allows us to quickly access all our favorite sites when we open up a new tab.

Undo Closed Tabs Button

There are several times when we have closed a tab by mistake, it was quite a pain to go back to the history and find out which tab we had closed. Undo Closed Tabs Button is a real life saver since it allows you to open the last closed tab with just the click of a button.

ReminderFox

Since we spend a lot of time using Firefox, we prefer to use ReminderFox for several reasons. It definitely saved us a lot of time remembering birthdays, anniversaries, paying of cable and Internet bills and more without having to maintain another application
just for reminding us about important dates and events.

Download Statusbar


The default Firefox downloads window is pesky and keeps cropping up on us when a file starts to download and finishes downloading, we prefer to silence it once and for all using Download Statusbar a handy extension that will create a tiny little icon for downloads and put it in your statusbar.

Shareaholic


Shareaholic is a great add-on for clubbing in several social networking tools into one, you can easily digg a page, stumble it, add it to facebook, reddit it, tumble it, save it to del.icio.us and more.

Following Firefox Addons are useful for programmers,

FireBug


FireBug is a must have add-on for every web developer. Firebug allows you to easily edit, debug and monitor CSS, HTML and JavaScript for any web page.

Web Developer

Web Developer is a powerful extension for developers. It definitely makes developing web pages quite easy. You can modify CSS on the fly, see which layers are using which styles, modify cookies, play around with images and practically do anything you would want to do as a developer.

User Agent Switcher


User Agent Switcher quickly allows the user to change the user agent of the browser to see the behavior of web pages under different browsers.

Delicious Bookmarks

Delicious Bookmarks is the official Firefox add-on for Delicious, the world’s leading social bookmarking service (formerly del.icio.us). It integrates your bookmarks and tags with Firefox and keeps them in sync for easy, convenient access.

Screengrab

It will capture what you can see in the window, the entire page, just a selection, a particular frame… basically it saves webpages as images – either to a file, or to the clipboard. It captures Flash too!

ColorZilla

With ColorZilla you can get a color reading from any point in your browser, quickly adjust this color and paste it into another program. You can Zoom the page you are viewing and measure distances between any two points on the page. The built-in palette browser allows choosing colors from pre-defined color sets and saving the most used colors in custom palettes. DOM spying features allow getting various information about DOM elements quickly and easily. And there’s more…

If you think there are more good firefox plugin than please suggest me.

Do access the Linux Drives from Windows

Many times we have dual-boot os in computer. Data like file and videos or songs and important docs are spread under windows or linux.

Do access the Linux Drives from Windows

From linux accessing the windows drive there is no issue but from windows we did not easily access the linux drives.

Ext2 Installable File System for Windows

A bit better than the above tool, this utility can give you both read and write access to Ext2 and Ext3 Filesystems from Windows. Plus, once you have this installed, Windows can use it your Linux partition as a paging file as well.

rfsd: ReiserDriver

ReiserDriver allows access to ReiserFS partitions from Windows. The partitions appear like other filesystems, and can be accessed by any windows application. This is yet in kinda like pre-release stage, and installation should prove tedious for newbies.

DiskInternals Linux Reader

DiskInternals Linux Reader has a Windows Explorer like interface, and can provide access to Ext2 and Ext3 Linux partitions from Windows. You can extract files easily from those linux partitions to your Windows partitions.

increase memory allocation for wordpress

Many people faced memory issue wordpress and WordPress itself uses the so much memory. By default wordpress uses the 32mb memory. shown you to increase memory allocation for wordpress using config file.

increase memory allocation for wordpress

First you need to know what is the use of increasing the memory limit for wordpress. If I increase the WP_MEMORY_LIMIT from 32M to 64 or 96M will it make my website load fast.

We can adjust the amount of memory using the wp-config.php file.

define('WP_MEMORY_LIMIT', '96M');

Many shared hosting provides the default memory for php. What I see most commonly shared hosting set the memory limit to 8mb or 16mb. They does not allow you to increase the php memory limit and in that case if you changed the wp-config file then also there is no use of that change.

increase memory allocation for wordpress
increase memory allocation for wordpress

What that setting do?
This setting increases PHP Memory only for WordPress, not other applications. 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.

Most famous wordpress themes

In this article I will tell most famous and downloaded wordpress themes. Some of worpdress themes are so much popular and highly used by the blogger and Some wordpress themes are downloaded record time.

Most famous wordpress themes

In article we will tell Most famous wordpress themes and downloaded wordpress themes. Some of worpdress themes are so much popular and highly used by users

Here are some very famous wordpress themes among wordpress users and following wordpress themes are downloaded mostly and all the time.

TwentyTen

Most famous wordpress themes
Most famous wordpress themes

Demo | Download

Mystique

Most famous wordpress themes
Most famous wordpress themes

Demo | Download

Atahualpa

Demo | Download

Suffusion

Demo | Download

Pixel

Demo | Download

LightWord

Demo | Download

Motion

Demo | Download

Thematic

Demo | Download

Arjuna X

Demo | Download

Piano Black

Demo | Download

Arras Theme

Demo | Download

ChocoTheme

Demo | Download

The Erudite

Demo | Download

Facelook

Demo | Download

Magazine Basic

Demo | Download

Hybrid

Demo | Download

Constructor

Demo | Download

Graphene

Demo | Download

simpleX

Demo | Download

Calotropis

Demo | Download