Blogmarks.net Blog

Skip to content Skip to menu Skip to search

BlogmarksEnable your site !

Just a little howto for those of you who would like to add a nice Add to blogmarks.net link to the articles published on their blog (or anything else).

The URL for the service is : http://blogmarks.net/my/new.php

Just throw a GET request to this URL, with the following parameters :

  • title : Title of the mark
  • url : URL of the ressource
  • summary : Description of the ressource
  • via : Referer
  • tags : a list of tags, separated by spaces

title and summary are mandatory.

title, summary and tags needs to be utf8 encoded, then urlencoded :

<?php $var = urlencode( utf8_encode($raw_var) ); ?>

BONUS :

Here is a javascript snippet to capture text highlited by user (we use it to fill in the summary in the bookmarklet) :

   var q='';
   if (window.getSelection) { q=window.getSelection(); } 
   else if (document.getSelection) { q=document.getSelection(); } 
   else if (document.selection) { q=document.selection.createRange().text; }

Easy ! What are you waiting for ??!

Blogmarks URIs

Blogmarks.net exposes marks with a consistent uri scheme. Here is how it works :

  • http://blogmarks.net/<PERIMETER>/<RESTRICTION>

where <PERIMETER> can be :

  • user/<login> -- Marks from user <login>'s marks
  • my -- Your marks

and where <RESTRICTION> can be :

  • tag/<tag1> -- Marks tagged with <tag1>
  • tag/<tag1>+<tag2> -- Marks tagged with <tag1> and <tag2> (you can add more tags this way)
  • search/<string> -- Marks returned by a full-text search on <string>

some examples :

Useful by itself, best served with Firefox Quick Searches.

Bloglines integration

This has been quickly ripped from http://www.persistent.info/archives/2005/02/13/bloglines-del.icio.us

For you bloglines users : this tool will change the boring Clip / Blog this link relative to every feed item, and replace it with a more useful Post to blogmarks.net . See by yourself :

Blogmarks & Bloglines

How does this work ?

  1. Install the Greasemonkey Firefox extension
  2. Open up this script in the browser
  3. Select Tools > Install User Script...
  4. Say OK to the prompt
  5. You are done :)

Firefox only.

French instructions following

Read next