Google Adsense Earning Trick With Coading Sript

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 15 May 2013

Add Pinterest "Pin It" Counter Button To Blogger

Posted on 00:57 by Ashish Chaturvedi
                              
    
                                                                    As 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 2013 with over 10.4 Million registered users and 50 million blog posts featuring Pinterest including CracksTrick. 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.

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. 

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Blogger Tips, Blogger Widgets | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Place Qadabra ads inside blogger post
    Dear bloggers I have given you many ways to insert codes and ads between blogger posts. Today I am introducing you to put the famous ad sens...
  • 7 Best Shorten URL
    7 Best Shorten URL and Earn Money Sites that Pays for Clicks Most of the internet users must be knowing about this URL shortener sites ( Sho...
  • How to add Scrollbar within the Blogger Post
                                                Sometimes your blog post contents or text gets too long and you wants to add some blog post pa...
  • How To Automatically Add Blogger Post To Facebook
    Today you know that the best way to spread your article is social media. So after posting your article many bloggers usually add the article...
  • Super Ram 6 Pro Full with Patch for Free
    SuperRam is basically an utility tool to enhance the performance of your computer.Its main features are as follows: Compatible with Microsof...
  • Create a Contact Form With File Upload Option
    The contact form that I am using on this blog is from emailmeform and it is all free but customized using CSS. I previously published a p...
  • How To Convert A Facebook Account To Page?
    Dear readers to I will tell you haw to convert your personal facebook account to a facebbok page.  Are you still using a personal Facebook p...
  • Advanced SystemCare 5 Pro With Serial Number
                                                                 Advanced System Care 5 takes a one-click approach to protect, repair, clean, a...
  • Uniblue SpeedUpMy PC 2013 Full with License Key
    I am thankful to "bhagerath " who has shared this information with us. Speed Up My PC is a well known software which used for tw...
  • How to create your own keyboard shourcut
    Are there folders or applications you need a lot or use them havily?  Do you know that you can create your own keyboard shortcut to quickly...

Categories

  • Adsense Earning (11)
  • Anti Virus (4)
  • blog (1)
  • Blogger Tips (79)
  • Blogger Widgets (37)
  • Earn money online (19)
  • Earning By File Uploading (1)
  • Games (1)
  • Hacking (3)
  • Internet (1)
  • Media Players (1)
  • Moblie Tricks (13)
  • Modem Unlocker (1)
  • Online Jobs (13)
  • PC Tricks (16)
  • Serial Keys (2)
  • Skins For Windows (1)
  • Small And Easy Jobs (8)
  • Softwares (29)
  • Speed Up PC (6)
  • Tips for High Traffic (8)
  • Tricks (38)
  • URL Shortner (2)
  • Utilities (21)
  • Web Designer Software (3)
  • Website Tricks (24)
  • Windows (10)

Blog Archive

  • ▼  2013 (183)
    • ►  July (3)
    • ►  June (25)
    • ▼  May (152)
      • Tips on Designing Effectve Navigation for Website ...
      • How to Display Post Author, Date/Time and Labels B...
      • Why you should buy custom domain for blogger Blog
      • Tips to get approved by Google AdSense
      • How to add Scrollbar within the Blogger Post
      • Optimizing Your Site for Mobile Users: Plugin Vs. ...
      • How to add stylish multicoloured popular post widget
      • Top Sites To Do Online Jobs
      • Add Multi-Tabbed widget to Blogger Sidebar
      • Add Animated Scrolling Recent Post Widget In Blogger
      • Add Recent Comments Widget with Rounded Images for...
      • Add 3 In 1 Slide Out Follower Box Widget to Blogger
      • Boost Up Blog Comments In Exchange Of Incentives F...
      • Optimizing Your Site for Mobile Users: Plugin Vs. ...
      • Don't Forget To Join Our Community Popup Widget fo...
      • Possible Reason That will Cause Your Blog to be De...
      • Widgets How to add Stylish Search box to blogger blog
      • How to Add 5 in 1 Slide Out Social Subscribing Wid...
      • How To Add Buibbles Effect In Blogger
      • Feedburner subscribe via email gadget
      • How to Create Google custom search Engine
      • Add customized three column footer in blogger blog
      • Importance Of PPC In Online Marketing
      • Stylish Design your Cloud Label and Categories Wid...
      • Submit your blogs to Search Engines
      • Make money online with traffic exchange
      • DELETING files beyond recovery
      • Make money with Aurora websites
      • Make money with completing offers
      • How To Increase The Virtual Memory Of Your PC ?
      • Chitika Adsense
      • How to trace any phone number in the World ?
      • How to fix microsoft dotnet framework 3.5 on Windo...
      • Best Shortcuts and Tricks Windows 8
      • Display post author, date, labels and comments wit...
      • Top 5 High Paying Alternatives to Google AdSense
      • Stylish Facebook Like Box POP-UP With Timer For Bl...
      • How to Add Footer Column Widget into Blogger blog
      • Best Way To Optimise Adsense Earning
      • Optimize Blog Post Titles Using H2 Tag - Increase ...
      • Publish Several Posts Per Day To Boost Traffic!
      • Requirements" To Make Money Through Blogging
      • Important things to consider Before Starting Blogg...
      • Ways To Optimize AdSense Ads To Increase Revenue
      • Best Money Back Guaranteed Earning Methord
      • How to create your own keyboard shourcut
      • How to recover your lost cell phone India
      • Tool to Measure the Speed of Your Website
      • LG secret codes
      • Secret Codes For Nokia
      • Speed up your internet connection any software
      • How to install windows quickly or save your time w...
      • How to protect gmail account from hackers
      • 8 ways to access blocked websites
      • How to create facebook Chat codes
      • How to boost internet speed by 20% without any sof...
      • Top 5 most Dengerous notepad Tricks
      • Download Connectify Hotspot Pro 4.3.3 Full Version...
      • Shortcut keys ABCs
      • HOW TO INCREASE INTERNET SPEED TO MAXIMUM AVAILABL...
      • Download Mac Blu-ray Player for Windows 2.8 Fully ...
      • How to add facebook comment box in blogger
      • How to Convert Normal Sim Card to Micro Sim
      • One Click Way to Find the Best Indian Mobile Plans...
      • Earn Money With TusFiles By Uploading And Sharing ...
      • Expandable Recent Comments Widget for Blogger/Blog...
      • Create Navigation Menu With Drop Down Submenus
      • How To Remove Blogger Attribution Gadget
      • Add a Blog To My website
      • How can I optimize my site for search engines?
      • How To SEO Optimize Your Blogger Blog Titles For H...
      • Make Money Online Via Bux Sites
      • Earn Money Via Your Facebook Profile
      • Embed IP Address Widget Of Visitor On Your Blog Or...
      • Blog Rank Checker Widget
      • Fixed Top Bar With Close Button For Blog And Website
      • How To Make Your Blog For Low Speed Connection?
      • Stylish And Awesome Search Engine Boxes For Blog &...
      • How To Make Your Own Custom Folder Locker
      • How To Make AutoRun CD And Change CD Icon?
      • How To Install Linux On Top Of Windows OS
      • Exciting Combination Of Mobile Technology And Auto...
      • How To Add/Remove Gadget/Widget To Your Mobile Blo...
      • How To Add Automatically Copyright When Copying Yo...
      • Secure/Protect Your Blog/Website From 1st Degree C...
      • Secure/Protect Your Blog/Website From Content Copier
      • Secure/Protect Your Blog/Website Images From Copier
      • Secure/Protect Your Blog/Website From 2nd Degree C...
      • How To Use Free Web-Hosting Websites As Free Domai...
      • How To Display Codes On Your Desired Page/Post In ...
      • Positive Points Of Guest Blogging To Make It Usefu...
      • Stylish "List Of Post/Article" Widget For Blogger
      • Success Secrets of Pete Cashmore who started blogg...
      • How to increase traffic of blog/website
      • Earn Money From mGinger By Reading SMS and Mails
      • Call Any One From Any Mobile Number
      • Trick to Lock Your Computer in Windows 7 , XP and ...
      • Free GPRS Trick on PC for Reliance SMART Using USB...
      • Super Ram 6 Pro Full with Patch for Free
      • Download Universal Keygen Generator for Free
    • ►  January (3)
  • ►  2012 (15)
    • ►  December (15)
Powered by Blogger.

About Me

Ashish Chaturvedi
View my complete profile