fcOnTheWeb Logo Web technologies, made easy.

fcOnTheWeb Red DotGet Social Networking icons/buttons/badges on your site!

In this article we are going to look at how to get those Social Networking badges on your site or blog. The little icons that submit your content to a certain service, such as Facebook, Digg, Reddit, etc.

We have chosen five sites, communities or networks to concentrate on today:

The great thing about these five sites that we have chosen, is that the code needed is provided by the site! We do not need to figure out how to code anything up ourselves, we just need to place the code onto our web pages.

Digg

Digg is a social news site where users submit material they think is valuable, by "digging" it. "Dug" content appears on the Digg site, and other users click through to the original site to read the material. The more people that "dig" the content, the higher up the list the content reaches. Digg is perhaps the most powerful article submission site on The Internet today, and making the front page of Digg will have a large amount of traffic coming to your site.

Digg give us several pieces of code we can use to put the badge on our site: http://digg.com/tools/integrate. The piece of code we have chosen to look at is the first and perhaps most basic one, a simple JavaScript file to include:

<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

Simply by including this JavaScript file we get the following button, all ready to submit our content to Digg.

Facebook

Facebook is a popular social networking site, perhaps the most popular social networking site, on The Internet.

We can share our content on Facebook by using the code they provide us with. Their code is available at http://www.facebook.com/share_partners.php. Like Digg, Facebook give us some options to choose from - we have chosen to go with the second option: an icon and a link.

Facebook gives us some JavaScript and HTML to include into our page, and we will need to alter a parameter too. The code looks like this:

<script>

function fbs_click() {

u=location.href;

t=document.title;

window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),

'sharer', 'toolbar=0,status=0,width=626,height=436');

return false;

}

</script>

<style>

html .fb_share_link {

padding:2px 0 0 20px;

height:16px;

background:url(http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?2:26981) no-repeat top

left;

}

</style>

<a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank"

class="fb_share_link">Share on Facebook</a>

This code sets up the JavaScript function we will call on click of the link, sets up the styles for the link itself, and then puts the link on the page. We need to change only one part: the <url> in the link href. We replace this with the link to the content we want to submit to Facebook.

So that line could look something like this:

<a href="http://www.facebook.com/share.php?u=http://fcOnTheWeb.com" onclick="return fbs_click()"

target="_blank" class="fb_share_link">Share on Facebook</a>

With this code, we get the following link on our site:

Share on Facebook

Reddit

Reddit is a social news site similar to Digg.

Reddit provides us with a host of options to choose from when it comes to selecting a button from their page: http://www.reddit.com/buttons/.

You simply choose the button you want, then click "view code" to get the code you need.

This is an example of the code that Reddit gives us:

<a href="http://www.reddit.com/submit" onclick="window.location = 'http://www.reddit.com/submit?url=' +

encodeURIComponent(window.location); return false">

<img src="http://www.reddit.com/static/spreddit1.gif" alt="submit to reddit" border="0" /> </a>

And our button on the page looks like this:

submit to reddit

Delicious

Delicious is a combination between a social bookmarking service as well as a social news service. You can save links to your own account, as well as see what is popular with other Delicious users.

Delicious's code is available on this page: http://delicious.com/help/savebuttons

Delicious provides three code options for badges: a standard one for a general purpose and two for blog templates. So, we will go with the standard one:

<img src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious" />

<a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?

v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;">Bookmark this on Delicious</a>

And it gives us a link that looks like this:

Delicious Bookmark this on Delicious

Slashdot

Slashdot is another social news site where news items submitted by users are shown to other interested viewers.

On Slashdot's badge page, http://slashdot.org/faq/badges.shtml, they give us a few options as well as some instructions on how to use the code.

We have chosen the horizontal badge and will use the following code:

<script type="text/javascript">

slashdot_title="Your Title Here";

slashdot_url="http://example.com/my-story.html";

</script>

<script src="http://slashdot.org/slashdot-it.js" type="text/javascript"></script>

We have to change the slashdot_title and slashdot_url variables with our own content, so they would look something like this:

slashdot_title="Get Social Networking icons/buttons/badges on your site!";

slashdot_url="http://fcOnTheWeb.com/articles/social_networking_badges";

Which gives us a badge that looks like this:

As you can see, the Slashdot badge is best suited to a white background.

Slashdot talk a bit about the badge on their page, and interesting have this to say:

"If your page hasn't yet been submitted, a badge allows your readers to easily do so. Once it has been submitted, the color accent reflects its popularity and the toggle lets them vote on it in our system. The badge itself links to your submitted story and its discussion on Slashdot."

So there we have it - five examples of how to get the little content submission badges onto your pages. Generally if you go to the site itself there will be a link available for you to get code to add their badge to your site. There are a large number of these social, Web 2.0 type of sites around these days and it would be easy to overload a page with icons for all the submission services available.

Try adding one or some of these to you pages to see how it goes. And if you want a write-up on another provider that we haven't covered here, let us know through our Request Page and we will endeavour to help you out.

ferrari_chris

Cheap Ralph Lauren UK (http://cheapralphlaurenuk.1minutesite.co.uk/) says:

2014-01-18 03:01:15

Gucci Shoes UK, http://www.guccivshoesfactory.net/
Polo Ralph Lauren Outlet Online, http://www.rralphlaurenoutlet.com/
Ralph Lauren Outlet Online, http://www.ralphlaurenipolo.com/
Ralph Lauren UK, http://www.polo-outletstoreonline.com/
Beats by Dre, http://www.discountbeatsbydresale.com/
Sacs Longchamp Pairs, http://www.saclongchamppairs.com/
Canada Goose Outlet, http://www.thecanadagooseoutlet.com/
Hollister UK Shops, http://www.cheaphollistersale.co.uk/
Michael Kors Outlet Online, http://www.michaelkors.so/
Marc Jacobs Outlet, http://www.marcjacobsonsale.com/
Michael Kors Outlet, http://www.michaelkorsr.com/
North Jackets Clearance, http://www.north-faceoutletonlines.net/
Burberry Outlet Online, http://www.burbagssale2013.com/
North Clearance Outlet Online, http://www.north-clearance.com/
Coach Factory, http://www.coach-factories.com/
Coach Outlet Online, http://www.coach-purseonsale.com/
Cheap Ralph Lauren UK, http://cheapralphlaurenuk.1minutesite.co.uk/
http://marcjacobsoutlet-2014.tripod.com/
http://www.michaelkorsoutletr.com/
Michael Kors Outlet
Discount Michael Kors
http://www.michael-korsfactorystore.com/
Michael Kors Outlet
Michael Kors Factory Store
http://www.michaellkorsfactoryonline.com/
Michael Kors Outlet
Discount micheal kors

__________

mbt usa (http://www.mbtwalkingusa.com) says:

2014-04-16 07:01:46

MBT Shoes work with your body to help develop unused muscles. These http://www.mbtwalkingusa.com will help to relieve common joint pain, and even help you get into better shape, just by living your life.

__________

oakley sunglasses cheap (http://www.oakleysunglassescheap.us.com/) says:

2014-07-12 07:08:48

http://www.oakleysunglassescheap.us.com/ oakley sunglasses

cheap
http://www.coachoutletstoreonlineco.com/ coach factory outlet
http://www.abercrombie-andfitch.com/ abercrombie and fitch
http://www.michaelkors-outletsonline.com/ michael kors outlet
http://www.oakley-sunglassesoutlet.com/ oakley sunglasses

outlet
http://www.tory-burchoutlet.com/ tory burch outlet
http://www.abercrombieandfitchstore.com/ abercrombie & fitch
http://www.rayban--sunglasses.com/ ray ban sunglasses
http://www.fit-flops.co.uk/ fitflops
http://www.coachoutlet-factoryonline.com/ coach factory outlet
http://www.toryburch-shoes.com/ tory burch shoes
http://www.coachstoreonline.org/ coach outlet store online
http://www.coachfactory-outletinc.com/ coach factory outlet
http://www.cheapraybansunglasses.us/ cheap ray ban sunglasses
http://www.valentino.us.com/ valentino
http://www.fitfloponline.co.uk/ fitflop uk
http://www.coach-outletinc.com/ coach outlet
http://www.coachoutlet-factorystore.com/ coach outlet store

online
http://www.airjordan.us.com/ air jordan
http://www.timberlandshoesus.com/ timberland shoes
http://www.michaelkorsoutlet-online.us/ michael kors outlet
http://www.coachfactoryoutletnew.com/ coach factory outlet
http://www.coach-factoryoutletinc.com/ coach factory outlet
http://www.truereligionbrandjeans.us.com/ true religion outlet
http://www.truereligionjeans.us.com/ true religion jeans
http://www.coach--handbags.com/ coach outlet online
http://www.louisvuitton--outlet.us/ louis vuitton outlet
http://www.timberland--shoes.com/ timberland boots
http://www.isabelmarantshoes.us.com/ isabel marant shoes
http://www.coachoutletonline-factory.com/ coach outlet online
http://www.michaelkorsoutlet-online.net/ michael kors purses
http://www.louisvuitton-handbag.us/ louis vuitton handbags
http://www.coach-outletstoreonline.com/ coach outlet store

online
http://www.true-religion-jeans.com/ true religion jeans
http://www.coach-outletfactoryonline.com/ coach factory outlet

online
http://www.officialcoachfactoryoutlet.com/ coach factory outlet
http://www.louisvuitton-outlet.org/ louis vuitton outlet
http://www.coach-factoryoutlets.com/ coach factory outlet
http://www.coach-outletonline.us/ coach outlet online
http://www.michaelkorsoutletonlinestore.us/ michael kors outlet
http://www.michaelkorsoutletstoresco.com/ michael kors outlet

store
http://www.tiffanysjewelry-co.com/ tiffany and co jewelry
http://www.celineoutlet-online.com/ celine outlet
http://www.cheap-toms.net/ toms shoes
http://www.celine-handbags.com/ celine handbags
http://www.toms--shoes.us/ toms outlet
http://www.fitflopsandalssale.com/ fitflops
http://www.fitflopusaonline.com/ fitflop outlet
http://www.prada-handbag.com/ prada handbags
http://www.tiffanyandcoinc.com/ tiffany jewelry
http://www.prada-outlet.org/ prada outlet
http://www.michael-korsoutletinc.com/ michael kors
http://www.marcjacobs.us.com/ marc jacobs
http://www.supra.us.com/ supra shoes
http://www.ralphlauren.us.com/ polo ralph lauren
http://www.tiffanyjewelry.us.com/ tiffany jewelry
http://www.shoestoms.net/ toms shoes


Add your comment on this article below:

Sorry, there's an error with your form entries. We really appreciate your comment, so please try again.

Form submitting now...

Name:

Website:

Email address (not displayed):

Enter your comment below: