Showing posts with label Blogger Widgets and plugins. Show all posts
Showing posts with label Blogger Widgets and plugins. Show all posts

Sunday, 6 May 2012

Add Blogger to Pinterest Pin It Counter Button


pinterest pin it button for bloggerAs I got busy with studies, a new social networking niche boosted in numbers and strength so dramatically that it has now become the social media network of 2012 with over 10.4 Million registered users and 50 million blog posts featuring Pinterest including MBT. Daily Pinterest users have increased by more than 145 percent since the beginning of 2012. More than one-fifth of Facebook users are on Pinterest every singly day (which equals more than 2,000,000 FB users). It shows how crazily this new social media platform is emerging amongst the already existing giants like Facebook, twitter, Google Plus and LinkedIn.

It therefore becomes the next important referral traffic source for bloggers to increase traffic to their blogs through Pinterest follow buttons and Pin it count buttons. For me honestly debugging the Pinterest code was the most difficult task. Pinterest Goodies Page provides a simple HTML code with a JavaScript link and it contains no dynamic variables/parameters that may work in blogger or wordpress based blogs. They don't have a developers page from where one could fetch relevant information. Thus we had to rely on forums and Wordpress plugins to rip out a code for BlogSpot blogs. This code is so sensitive that if you try to make the slightest change to it, it would not work.
You can see the demo live on our blog just below post titles. We have added a horizontal count button that increments whenever a post is pinned. You don't need to worry about the correct featured thumbnail selection because we are using a custom JavaScript code that will offer your visitors with a wide variety of images to choose from to bookmark/pin your blog post.
Don't forget to read these delicious tips and tutorials!
pinterest counters and buttons

Adding the "Pin it" button

Please don't edit the code below and neither add it inside Tables or div sections because the JavaScript is not well scripted and is sensitive to slightest of change in styling. Use it as given. I will publish fresh posts on how to add it to sharing widget below post titles and to the floating share widget.
  1. Go To Blogger > Template
  2. Backup/restore your template
  3. Click the Edit HTML button
  4. Click Proceed
  5. Click the box "Expand Widget Templates"
  6. Search for this code:
<data:post.body/>
   Now if you wish to add the count button below post titles then you will have to paste the coming codes just above the code in step#6 otherwise if you wish to display the button at the bottom of posts then add the coming codes just below step#6 code.
      7.  Paste the following code below or above (depending on your choice of location) the code in step#6

For horizontal count Use this code:
horizontal pin it

<a class='pin-it-button' count-layout='horizontal' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url'>Pin It Now!</a>
<a href='javascript:void(run_pinmarklet())' style='margin-left:-93px; width:43px; height:20px; display:inline-block;'/>
<script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'/>
<script type='text/javascript'>
function run_pinmarklet() {
var e=document.createElement(&#39;script&#39;); e.setAttribute(&#39;type&#39;,&#39;text/javascript&#39;);
e.setAttribute(&#39;charset&#39;,&#39;UTF-8&#39;);
e.setAttribute(&#39;src&#39;,&#39;http://assets.pinterest.com/js/pinmarklet.js?r=&#39; + Math.random()*99999999);
document.body.appendChild(e);
}
</script>

For Vertical count Use this code:
<a class='pin-it-button' count-layout='vertical' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url'>Pin It now!</a>
<a href='javascript:void(run_pinmarklet())' style='margin-left:-46px; width:43px; height:20px; display:inline-block;'/>
<script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'/>
<script type='text/javascript'>
function run_pinmarklet() {
var e=document.createElement(&#39;script&#39;); e.setAttribute(&#39;type&#39;,&#39;text/javascript&#39;);
e.setAttribute(&#39;charset&#39;,&#39;UTF-8&#39;);
e.setAttribute(&#39;src&#39;,&#39;http://assets.pinterest.com/js/pinmarklet.js?r=&#39; + Math.random()*99999999);
document.body.appendChild(e);
}
</script>
      8.   Save your template and you are all done!


How it works?

Upon clicking the pin it now button, a window will open that contains important thumbnail images on that specific blog post. The visitor will pin just one image and then he will be asked to add it to his Pin boards and share it on his Pinterest account. If suppose the visitor does not want to pin any image then he can simply click the Cancel Pin button to go back to the blog post.
cancel pin

Need help?

Follow this easy tutorial and let me know if you needed any further assistance. We have tried to add all necessary codes to make things work. the variable data:post.url is only included and we did not included one for thumbnails because it is more wise to let the visitor choose a thumbnail of his choice rather forcing him to select one that you automatically provide.  Have fun exploring this new social media bird and we will make sure to educate you with its proper use. Do not forget to Pin this post! :) Peace and blessings pals. 

How to join Pinterest? Get Free Details


how to join pinterestWe have shared with you what is pinterest and a few guidelines about setting up a page for promoting your blog through it. But, we have been informed that many of our readers are finding it difficult to create an account and customize this new born network so we have composed this guide for you all, to simplify your problem. Follow up and you will enjoy pinterest the way it deserves.

Create a Pinterest Account:

If you do not have any friends on pinterest, you can directly go to their official website and request for an invitation. You will be informed through an email that you are added in their waiting list .You will soon receive a notification email, welcoming you to pinterest. They will give you an invitation link; click on it. You will be brought to a new window and are then required to login with your Facebook account. Facebook timeline account works with pinterest, so if you have not updated your profile yet; you are required to do it now. A registration form is displayed asking your details. Fill it and your pinterest account is created.get pinterest invite

Adding and editing pins:

Pinterest is all about ‘Pinning’, so let’s have a look how can we add a pin? Click on Add->Add a Pin. It will ask for web address. Enter url and the following window is displayed: adding and editing pins
Select the category of your pin and add a brief keyword rich description for it. Select a proper display image according to your pin theme. You are supposed to enter the web address and it automatically finds images at that page. One thing is problematic here; it does not capture all the images but is selective. You can edit your pins by clicking on edit option. You can re-pin, like or comment at the pins.

Creating boards:

You will now wish to create boards, after all it is the online pin-board, remember? A board is simply a collection of pins belonging to same category.
To create a board, you need to follow the subsequent steps. Click on Add ->Create Board. It will display a dialogue box which will ask for Board Name. It will then ask to select the category. This category will display your content to others sharing the same category. Try to find the possible closest category.
You can then authorize who can pin at your boards. If you are promoting any community, you may prefer “Me + Contributors” but for a blog owner “Only Me” is a better choice to assure that you are displaying the right content.

Invite and find friends:

You have created your account…decorated it with alluring pins and pin boards; don’t you want to share them with your friends now? Of course, you want to do so…you want to socialize. What are you waiting then? Click on your name displayed at the top and select “Invite Friends”. You can enter email addresses of your contacts or can easily invite all of your Facebook and Google friends. Don’t know how? Click on “Find Friends” just below invite friends and your friend list is displayed. Send them an invitation and enjoy sharing!

Profile Settings:

You may need to change your profile settings. These profile settings will help you edit the following:
  • General Information:
        This includes the basic information like your first name, last name, user name, gender, location, email address, uploading image etc.
  • Hide:
    This allows you to hide or unhide your profiles from search engines. Turn it on for your blog profiles or if you want to show it public.
  • Unlink accounts:
        You can now unlink your accounts, if you wish to do so. Click on ‘ON’ or ‘OFF’ tabs to turn it off or on accordingly. Keeping all your accounts intact and linked will be a better choice.
link pinterest to facebook twitter
  • Notification Settings:
        We would recommend checking these notification settings. It is a really nice option which gives freedom to change the way you are notified through email. You are notified when someone adds a pin, re-pin your content, likes your pin, comments on your pin or boards and follows you. But, the feature we like most is the frequency of these notifications. You can either get immediate updates or received it once daily. If you are not running a public blog you may prefer to have a weekly activity report. This report will help you analyze your progress with pinterest.
Save the settings.

What’s next?

We have tried to communicate things in the simplest way. If you still find anything confusing, feel free to ask your queries and we will respond. We will be sharing further tips and tricks soon. If you are finding any problem in adding and editing pins or creating boards, we strongly recommend you to read our post: Pinterest Basics
Did you added Pinterest Buttons to your blog yet? ?If not then grab a pinterest count button now!