.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe
  • Home
  • About Me
  • Advertising
  • Click Here to Ask a question
    • Privacy Policy
  • Site Map

DotNetKicks with WordPress

December 20, 2007 By: Dave

You’ll probably notice I’ve added the DotNetKicks “Kick it” icon to the bottom of each post.  For those of you who aren’t aware, DotNetKicks is a relatively new social linking site, like Digg, but specific to .NET programming.  Cool!  This blog is about 80% about .NET programming too.   What a great match!

They have a script that you can use to insert the icon into each post.  But, I’m relatively lazy.  I want to just insert something into WordPress and have it “just work.”  So, I went looking for a plug-in or something.

What I found was a guy who’d figured a way to get the code snippet into live writer.  But, you still have to insert the tag.  However, he did have a plug-in that gave me most of what I needed.

By looking at the source for the plug-in, I was able to figure out that all I really needed to do to get the kickit icon to display is to go insert a small chunk of code in one of my theme files.

If I were a better PHP programmer, I’d turn this into a plug-in too.  But, I’m not, so here’s the code you need to insert if you are a blogger writing about .NET stuff and want the Kick it icon too:

<a href=”http://www.dotnetkicks.com/kick/?url=<?php echo get_permalink() ?>”><img src=”http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=<?php echo get_permalink() ?>” border=”0″ alt=”kick it on DotNetKicks.com” /></a>

Obviously, if you like something here, go ahead and kick it up.

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Related Post

  • CMS vs Code It Yourself
  • WordPress w/ Forms Authentication on IIS6
  • Top 5 Plug-ins for WordPress
Bookmark to:

Add to Del.icio.us Add to digg Add to DotNetKicks Add to DZone Add to Facebook Add to Slashdot Add to Stumble Upon Add to Technorati
Hide Sites
Tags: dotnet, kickit, WordPress

6 Responses to “ DotNetKicks with WordPress ”

  1. # 1 DevTopics Says:
    December 28th, 2007 at 9:56 am

    Terrific job, thank you for figuring this out!

    Note that if you copy your sample above and paste it directly into WordPress, it will not work, because the double quotes appear as forward/back quotes in your blog. If you manually change them back to double quotes in the WordPress theme editor, your sample works great.

    Note this issue will affect any source code that appears in your blog. Fortunately, there is a WordPress “Untexturize” plug-in that will prevent WordPress from making these unwanted quote character substitutions. For more information:

    http://www.devtopics.com/blogging-tips-for-developers/

  2. # 2 Rob Conery Says:
    December 28th, 2007 at 12:02 pm

    Jon Galloway wrote a neat article about this using Javascript alone:

    http://weblogs.asp.net/jgalloway/archive/2007/03/08/adding-a-dotnetkicks-image-via-javascript.aspx

    This is a nice way to do it and you can just edit your Post page. The code is also completely transferable since it’s javascript :) .

  3. # 3 Aaron Lerch Says:
    December 28th, 2007 at 3:01 pm

    @Rob – wouldn’t Jon’s technique only work if you were viewing the actual post itself, and not via feed readers, aggregated views, or category views? (To name a few)
    Still a great solution if you aren’t allowed to edit the theme. :)

  4. # 4 Jon von Gillern Says:
    December 28th, 2007 at 4:32 pm

    You can do the same thing in DasBlog very easily:

    http://www.vonsharp.net/HowToEasilyAddADotNetKicksButtonToDasBlog.aspx

  5. # 5 Joel Cochran Says:
    June 12th, 2008 at 2:10 pm

    Also, if you want a custom colorization, you do not have to modify your CSS. Instead, go to the Dot Net Kicks site and use the tool there to generate the button the way you want it. Then, you can simply copy the stylings from the IMG tag and append them in the above code immediately following the call to get_permalink().

    Thanks!

  6. # 6 Jack Says:
    March 30th, 2009 at 4:24 am

    oh, useful plugin, thanks for sharing!

← Extension Methods in VB.NET
Samba/Microsoft documentation deal →
  • Search

  • Subscribe

    U COMMENT
    I FOLLOW

    Subscribe in a reader

    OR

    Subscribe via e-mail

    Enter your email address: 

    Delivered by FeedBurner

     

  • Follow Me

    • Twitter
    • FaceBook
    • Digg
    • StumbleUpon
    • Propeller
    • Delicious
    • Plaxo

     

  • Recent Posts

    • ASUS Eee PC 1005HA-PU1X-BK Black Netbook
    • jQuery – Date Picker
    • Using VB.NET From CSharp
    • iTextSharp – Adding Images
    • Hungarian Notation – Use What Works, Spit Out The Bones
    • Pre Order Windows 7
    • jQuery Dialog – With Validation Controls
    • iTextSharp – The easy way
    • Structure of my ASP.NET Web Applications
    • 35% Off Accronis True Image 2009 Home
    • VB.NET Hide Module Name
    • ASP.NET/VB.NET – Video Training
    • Does jQuery Make Us Lazy?
    • PDFs Using iTextSharp
    • Programming SEO – Ping



  • Advertise on this site through Lake Quincy Media
  • DotNetNuke Sponsor

     

    Most Valuable Blogger
  • Sponsor

  • Categories

    • Advanced CSharp
    • Advanced VB.NET
    • ASP.NET MVC
    • Did you know
    • DotNetNuke – Module Development
    • DotNetNuke – Skinning
    • internationalization
    • iTextSharp
    • jQuery
    • none
    • Seach Engine Optimization
    • Silverlight
    • SQL For Programmers
    • Twitter
    • winforms
  • Cloud

    .net ajax architecture asp.net book books containers csharp css dal dataset datasets dotnetnuke events gridview images internationalization internet explorer javascript jQuery json linq listview modules ms-sql MVC objectdatasource programming reflection seo Silverlight skinning sql testing tsql tutorial Twitter twitterizer vb.net video view Vista visual studio webservice WordPress
  • Archives

    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    • Privacy Policy
  • Calendar

    December 2007
    S M T W T F S
    « Nov   Jan »
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    3031  
  • Blogroll

    • Alvin Ashcraft’s Morning Dew
    • ASP.NET Consulting
    • Life Hacker
    • Remember Anything
    • The Price of Their Toys
    • Uncategorized Thought


.NET Answers © 2007 - 2008 All Rights Reserved.
Entries and Comments.