“Tweet This” for Blogger Blogs

I had migrated out of blogger in 2007. Reasons for which i’m not quite sure of. One thing that attracted me in WordPress is the availablity of plugins and the ease with which i was able to work with the php code. So when i had to do a ‘tweet this’ link for each post on my blog all i had to do was write this at the right place -

    <a href="http://twitter.com/home?status=Now reading <?php the_permalink(); ?>" target="_blank">
        <img src="http://jerrymannel.com/blog/wp-content/themes/SIM4.0/images/s-to-twit.jpg"
        style="border:none;">
    </a>

So yesterday, i was lazing around in the evening after a visit to the local library, one of my friends called. She was a smart-enough-techie for a business student. The only chick i knew who owned a Mac (i was so ready to dump all my girl-friends for her, coz she had a Mac. But her boy-friend owns an Audi so she ruled me out. 150cc Pulsar DTSi doest really stand a chance against an Audi). She had she blog up on blogger. Her problem how to get a ‘Tweet This’ link for each and every post on her blog.

I just dropped everything i was doing (nothing much infact) and got down to crack the problem. And this is how its done.

First get the full code for the .blogspot.com site that you have by navigating to Layout -> Edit HTML page. Check the “Expand Widget Templates” and copy the content of text area and back it up.

Next check the code that you have in had and make sure that its not the Classic Theme code. Just scroll and see you dont come across anything like <$BlogItemXXXXXXXXX$> in it.

Just like WordPress, blogger also loops and adds the blog entry(the simplest logic). So find a tag like <b:includable id=’post’ var=’post’>. This is the start of the section that will genrate the post-title, post-content, date-of-publishing, labels, etc. and similar miscellaneous information.

Now to add a “Tweet This” link to the each post use this code -

    <a expr:href='&quot;http://twitter.com/home?status=Now Reading -&quot; +
    data:post.title + &quot; &quot; + data:post.url' target="_new">
        Tweet This
    </a>

Depending up on where you are going to add that piece of code, you might have to add the necessary tags and define the properties. For eg. if you want the “Tweet this” link to be like the way its there at – http://jerryreghunadh.blogspot.com/ – this is the code that you need to add at the footer section :

    <div class='post-footer-line post-footer-line-2'>
        <span class='post-labels'>
            <a expr:href='&quot;http://twitter.com/home?status=Now Reading -&quot; +
            data:post.title + &quot; &quot; + data:post.url' target="_new">
                Tweet This
            </a>
        </span>
    </div>

Thats it. I guess this fixes the problem for you too icon smile Tweet This for Blogger Blogs

 Tweet This for Blogger Blogs

WordPress 2.5 Image Upload Problem

Finally after more than 5 hours of trial and error i have the image uploader working fine for me. Trying this out crashed Firefox many times and i finally had to send a crash report to Mozilla.

Followed all the differsnt instruction as mentioned in this post. Changed the .htaccess file to various different formats. Nothing worked. Neither

Option -1 :

<IfModule mod_security.c>
SetEnvIfNoCase Content-Type \
“^multipart/form-data;” “MODSEC_NOPOSTBUFFERING=Do not buffer file uploads”
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>

Option – 2 :

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Option – 3 :

SetEnvIfNoCase Request_URI ^/wp-admin/async-upload.php$ MODSEC_ENABLE=Off

Option – 4 :

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>

worked. It worked for some one. But never for me.

Finally there was one post that asked to give the full path for the upload folder. That only created a this directory path in the root folder – http:/jerrymannel.com/blog/wp-content/upload/

Yes things got messier ..

Then reading down the same forum i found this link – 2.5 Image/Media Uploader problems. Now that was a saver. Went setp by step. Bang!!! Step 4 was what had to be done and BINGO!!! Everything worked…. icon smile Wordpress 2.5 Image Upload Problem

I recommend starting at this and then trying out editing the .htaccess file. Happy Blogging.

An Update … I went (In)Sane

Ya i know this look sucks.. hey but its still the classic default one. So what happened to my previous look ???

bluehost An Update ... I went (In)SaneI just simply moved out! YES, I moved out of WordPress and now its hosted at BlueHost. My own space… icon smile An Update ... I went (In)Sane . The content management is still done by WP though …

This look is going to change soon, may be in a week’s time. The fact as my friends know, i’m lazy and it takes me time to get things done..

So just simply wait for the new look coming soon … icon smile An Update ... I went (In)Sane