Photobucket

Top 9 Tips and Tricks On Windows Vista Taskbar

The taskbar is the long horizontal bar at the bottom of your screen. Unlike the desktop, which can get obscured by the windows on top... 

4 Places To Read Free Scanned Manga Online

Manga are comics and print cartoons from popular episodes like – Naruto, Bleach, One Piece and more sometimes also called komikku... 

More traffics with Digg Button on your blog

by DJYaNo on April 19, 2009 | Twit this | Print this






This is a step-by-step guide to automatically place a real-time Digg count and vote button to every single blog post Digg is a social content website where your readers or you can submit content to. As a blog owner, you may want to make it easy and encourage your readers to submit and digg your articles.

WordPress Installations

Login to your WordPress Dashboard, go to Appearance -> Editor. Open index.php.

If you want your Digg button after your blog post title, search for <?php the_title(); ?>.

Copy and Paste the code below after <?php the_title(); ?>.

<script type='text/javascript'>
digg_url=&quot;<?php echo get_permalink() ?>&title=<?php the_title(); ?>&quot;;
</script><script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>

If you want your Digg button after your blog post, search for <?php the_content(__(‘Read more’));?>.

Copy and Paste the code below after <?php the_content(__(‘Read more’));?>.

<script type='text/javascript'>
digg_url=&quot;<?php echo get_permalink() ?>&title=<?php the_title(); ?>&quot;;
</script><script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>

It’s all depend on your WordPress template, play around with your template index.php and see where is the best place to add your Digg button. Go here to learn to add HTML <div> tag around your Digg code.

Blogger Installations

Your blog should be set to Enable Post Pages, login to your Blogger Dashboard. Under Settings-> Archiving, set the “Enable Post Pages?” to “Yes” and save the settings.

Next Under “Layout”, click the “Edit HTML” tab and tick Expand Widget Templates.

If you want your Digg button after your blog post title, search for <p><data:post.body/></p>.

Copy and Paste the code below after <p><data:post.body/></p>.

<script type='text/javascript'>
digg_url=&quot;<data:post.url/>&quot;;
</script><script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>

If you want your Digg button after your blog post, search for <div style=’clear: both;’/>.

Copy and Paste the code below after <div style=’clear: both;’/>.

<script type='text/javascript'>
digg_url=&quot;<data:post.url/>&quot;;
</script><script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>

It’s all depend on your Blogger template, play around with your template and see where is the best place to add your Digg button. Go here to learn to add HTML <div> tag around your Digg code.

More specific Digg button code for you

<script type="text/javascript">
digg_url = 'WEBSITE_URL';
digg_title = 'TITLE';
digg_bodytext = 'BODY';
digg_media = 'MEDIA';
digg_topic = 'TOPIC';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

Simply replace those variable contents with the appropriate text for your content.

digg_media – Your website URL

digg_title – Your blog post title

digg_bodytext – Your blog post body text

digg_bodytext – Should be one of ‘video‘, ‘image‘, or ‘news‘ (The default is ‘news’).

digg_topic – Your blog post topic

It must be one of the following topics:

    arts_culture
    autos
    baseball
    basketball
    business_finance
    celebrity
    comedy
    comics_animation
    design
    educational
    environment
    extreme_sports
    food_drink
    football
    gadgets
    gaming_news
    general_sciences
    golf
    hardware
    health
    hockey
    linux_unix
    microsoft
    mods
    motorsport
    movies
    music
    nintendo
    odd_stuff
    olympics
    other_sports
    pc_games
    people
    pets_animals
    playable_web_games
    playstation
    political_opinion
    politics
    programming
    security
    soccer
    software
    space
    tech_news
    television
    tennis
    travel_places
    world_news
    xbox

More Digg Buttons for you

Digg!

<a href="http://digg.com/">
<img src="http://digg.com/img/badges/16x16-digg-guy.gif" width="16" height="16" alt="Digg!" />
</a>

Digg!

<a href="http://digg.com/">
<img src="http://digg.com/img/badges/100x20-digg-button.gif" width="100" height="20" alt="Digg!" />
</a>

Digg!

<a href="http://digg.com/">
<img src="http://digg.com/img/badges/32x32-digg-guy.gif" width="32" height="32" alt="Digg!" />
</a>

Enjoyed your new button?, don’t forget to Subscribe to The-Online-Quest via RSS or you can receive daily updates via Email.


Comments

One Response to “More traffics with Digg Button on your blog”
  1. ppnow.com says:

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Justin..

Speak Up

Tell us what you're thinking about this post.
Get a gravatar to show your pic with your comment.



Copyright © 2008 - 2010 The-Online-Quest All Rights Reserved · Powered by WordPress | Redesigned by Mr Javo