Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Friday, September 27, 2013

How to Add Pinterest button to Blogger Dynamic Views Posts

I probably just became the first man on earth to get the Pinterest's "Pin It" button on every post in the Blogger's Dynamic Views. You guys can check it out in action on my photoblog: Visioplanet Photography. Please do note that this is for Pinning individual posts and not just the blog. A similar tutorial was posted by Yoga on Southern Speakers, which was about how add Pin It button to Pin the entire blog (if you're interested).

This will be a short and concise tutorial on how I did it, and more importantly, about how you can do it. Do make a note that this tutorial is specifically for Blogger's Dynamic Views. For regular templates, there's a plethora of articles online elucidating the same.

How This works:

1. This method will look for an image on your post that is at least 400 pixels wide or high. As in the picture you're gonna pin your post with has a width or height of at least 400 pixels.

2. I can make modifications to this size thing and give one the ability to decide on a photograph chosen by the post author (lemme know in the comments if that's what you want).

Addition info about this:

Before we begin, what my "work around" (if you will) does, is that it shows the "Pin It" button beside the Google's +1 button at the top of every post. Do note, that the +1 button at the top of every post isn't shown in the "Classic", "Mosaic" and "Sidebar" views. But if you guys ask for it in the comments below, I can write a tutorial on how to get the Pin It button beside the facebook like button at the bottom of each post.

This is now available in two formats:
1. Like the +1 butto - both the top bar as well as the share section at the bottom of the post.
2. Just at the bottom of the post (like the facebook button).



The Procedure:

In the previous version of this, there were three steps. Now, only one step is required, which was earlier the Step 3.

Step 1:

In every post that you want to have the Pin It button on it, add the following line at the beginning in the HTML box of Edit Post.

<script src="https://raw.github.com/sudiptosarkar/PinterestForBloggerDynamicViews/master/VisioplanetPinItByImgSize.js"></script>

This will add the button both at the top bar (applicable only for certain dynamic templates) as well as at the bottom of the post.

EDIT: If you want the button only at the bottom of the post, beside the facebook share button, add this line at the beginning in the HTML box of Edit Post instead of the above:

<script src="https://raw.github.com/sudiptosarkar/PinterestForBloggerDynamicViews/master/VisioplanetPinItByImgSizeInShareSection.js"></script>


EDIT: As of 13th October 2013, this also shows the pin count beside the button.

I have no idea how to do this from the Templates -> Edit HTML (that will only need to be done once and not on a per post basis). If you know, lemme know in the comments below.

Wednesday, March 4, 2009

Download YouTube and other streaming videos in Linux without any program

Linux is a great Operating System, as I've always been seeing. This post is going to describe a technique that I've been using for quite some time now. Experienced users may be familiar to this. But this post is targeted towards that are unaware.

There have been times when most of us have wanted to download a particular YouTube or other streaming video. In Linux, this is possible without the use of any external program.

In Linux, the streaming video is stored in /tmp directory. So, all one needs to do is go to the /tmp directory. If thumbnails are shown, it is easy to spot the video. If not, then looking for files starting with Flash will do the job. These are the files that are being streamed. But only the amount that has been streamed is stored in this file. One can simply copy this to the Desktop and view it with any media player.

If it is not Linux that one is using, then AFAIK, options are limited. There is a website, that helps people to download YouTube and Google Videos. But it is only limited to these two. It is called videodl.org.

If you find this post useful, do leave a comment down there and encourage me to write more useful tricks and techniques like this.