how to add linkedin button in wordpress same like twitter sharebar_button wordpress, facebook sharebar_button wordpress and Google Plus sharebar_button wordpress

how to add linkedin button in wordpress?

WordPress provide many good plugins through which we can make our work easy, recently i am working on one project and in that we need sharebar button for social media. i get one plugin which is good an using that i get almost all well known social media but did not get linkedin share bar.
You can use the below code to get the twitter, facebook and google plus sharebar.

 
<?php sharebar_button('twitter','big'); ?>
<?php sharebar_button('facebook','big'); ?>
<?php sharebar_button('Google Plus','big'); ?>

There is not option like <?php sharebar_button(‘Linkedin’,’big’); ?> in the wordpress and because of that you can not add it via plugin, if you need to insert linkedin sharebar button then you need to insert it using the javascript code and its really very easy, just place below code next to all other social media code.

 
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/Share" data-counter="top"></script>

register and comment in wordpress not comment without register wordpress

Recently, i am working with the wordpress and i want to allowed user to comments on the post or article if he/she is register. it means if user is not register then he/she can not comment on any article or any post in the wordpress. its wordpress inbuilt option but we are not aware of it, you can easily do this using the wordpress setting.

Go to Settings and then click on the Discussion which will open page of Discussion Settings in wordpress admin panel, now here there is option like ‘Users must be registered and logged in to comment’ with checkbox option. if you want user must register and then leave comments then you need to enable this by tick on the check box and save settings.

show user image in comments at wordpress post

how to show user image when user comment on the post in wordpress?

Today, i am working with the wordpress and i comment for one article but its not display the image with my comment, some time client need to display images with the comment and by default wordpress do not provide this facility. after some research i get the solution and its really very very easy. what you need to do is just install one plugin in your wordpress blog. plugin name is User Photo and link is http://wordpress.org/extend/plugins/user-photo/

One you install plugin then you need to go in settings then user photos where you get option for ‘Override Avatar with User Photo:’ you need to check the check box and save it. then enjoy it.

how to generate google map api key for website

Google map is one of the best option to indicate the places on the map, now a days people show the marker of their address on their web-site using google map. if you want to add a google map in your webpage then you need to generate google maps API key for your site, you need to get this key from google and you have to mention your domain name, which allows you to display google map in your webpage. please keep in mind that google API key is unique for each domain, it means you can not use same API key for sub domain as well.

If you have google account then you get this API kay, because google API key attach with your account. if you have account then login to your google account then you get google API key from below url

https://code.google.com/apis/console/

Google provide this service absolutely free, there is no limitation on map load(map previews). if you are working with the sub domains and you need google map on every sub domain then you need to create the Client ID for all your sub domain web applications.

how to call two javascript function onload event

When you working with the php and javascript then you get below question in mind when you stuck.

How to call two function onload event?
how to call more then one function when page load?
how to call two javascript function when page load?

Some time we need to call more then one javascript function when the page load, most of programmer make mistake and they call one function using onload body tag and another one using window.load = function name. when you do like this then its call only one function and another one will not call.

to get proper result we need to use any one method from below three methods.

 
1) &lt;body onload="phpfreelancer();hirephpprogrammer();phpfreelancerindia();"&gt;

Here, you can call all function using the onload event of body tag.

 
2) function loadonstart()
{
phpfreelancer();
hirephpprogrammer();
phpfreelancerindia();
}
 
window.onload = loadonstart();

Here, you call one function on window load event and in that function you can call other function.

 
3)   window.onload = phpfreelancer();
window.onload = hirephpprogrammer();
window.onload = phpfreelancerindia();

Here, you call all three function using separate code.

I Hope this will resolve you problem if not then you can contact me any time.

 

access all social networking account at one place

Now a day there are many social networking site and we have account in almost all networking site but in the fast life we have no time to open all social networking site and login, all networking site have login and then we can check the updates and messages. now its really good news and its reduce you work as well.

Google is the king of internet and its prove in this because google provide facility to access all your social networking account in gmail account and its really easy to configure. you just need to go in gmail settings, then select gadget tab and follow instruction. please keep in mind that if gadget tool is not enabled in you gmail account then first enable the gadget tools.

Now you can update the facebook status and wall, you can read the latest tweet and post tweet through one place, i hope this will connected you with people.

google consider site load time in the site ranking and search ranking criteria

Hello Guys, as you know that i am QA and we consider the site speed as well in site testing, last time when i am working on the manual website testing then site speed is very slow and i get idea that is it reflect on the google. so i search on the google and knew that google consider site load time in the site ranking and search ranking criteria, so if you site loading speed is low then improve site speed, which increase the site performance and as faster your site load its get good ranking in google. i also read that google mention that they consider the site speed and they provide special tools in webmaster tools and using that you can check the speed and performance of your website.

internet security using bullGuard internet security software

internet security using bullGuard internet security software.

When we are working with the internet and website then its required security of our personal computer, i know that this will not so important as it was in my life. i was not care on the security of the pc and because of that virus attach on my pc and i have to format my pc because its not start. virus, malware and spyware are most important to damage you pc. if you see any attach via virus, malware and spyware then do not take it easy, it will more harmful and you have no idea when its crash your computer.

Now, I use BullGuard Internet Security Software which is really easy to install and use. its keep my computer virus free, malware free and spyware free. i am using this software since 2 years and its really reduce your stress regarding the security issue. i recommend to this software because i use it and its light weight and not take more space on computer.

site compatible with iphone, ipad, Blackberry phone, iPodTouch, Android phone

website compatibility with iphone, ipad, Blackberry phone, iPodTouch, Android phone

When you are working with the custom php code than you can set the compatibility with iphone, ipad, blackberry phone, android phone and ipodtouch. but when you are working with the wordpress then its really difficult to set the compatibility for all phones browser, we have two option for this either we make two different blog for website and phone application. but now no need to make two different blog, there is one plugin which is manage it and if its open in the phone then make the site compatible to the phone application.

WPTouch plugin is the best wordpress plugin which is identify that website open in the computer browser or in the phone browser, also able to find the phone device and apply the theme which is compatible to that device. i waste one day behind this and then i get this plugin which is really excellent plugin and display all content in well format in phone device.

how to remove images from content of post in wordpress

WordPress is the best open source and very easy to install and set up on the site, when we working with the wordpress then its provide post content and page content and we can insert the images in the content using the editor. today i am working on project of my client and its in wordpress, if you aware of wordpress then you know that on the home page its show some post with the post title and post content. now issue is if there is a image in starting of post content then it will also show the image on the home page and because of that its looks messy page. now my client want to remove the images from the post content and display on the home page but in the single post page he need image as well. so i work on this and i get solution as well, below is the simple code which you can use to hide the images on the home page and you can use it to hide the inner page images as well if you want.

 
<?php
 
$original_content = get_the_content();
$new_content = preg_replace('/<img[^>]+./','', $original_content);
echo $new_content;
 
?>

Hope, it will be useful to you guys as well.