microformats

Digital Spaghetti's picture

MicroID Module

Hey fellow Microformatters,

I've been working on a small side-element to Microformats in Drupal and it will be ready to commit to the CVS at some point tommorow.

I have created microid.module, which creates a MicroID hash in the user profile.

At the moment, it's a little hard coded. First off all, there is the function that creates the hash:

<?php
function microid_genhash($email, $url)
{
  return
sha1(sha1("mailto:" . trim($email)) . sha1(trim($url)));
}
?>

Now, what I do with this is I get $user->email to generate the email part of the hash, thats fine. But for the profile side, I have specified that there must be a field called profile_homepage. The reason for this is that the URL you want to create the hash with should be your homepage, thats how you will be identified.

3 comments · Read more
Digital Spaghetti's picture

Protecting against Microformat spam

If you look at This comment on my site, it might look like nothing - but check with Tails, and you find a hidden spam hCard.

It's very easy to produce one and embed it in to a post or comment, which will then be indexed by sites such as Technorati.

So what can we do to stop this type of spam before it starts?

Disucss.

Infact, its' been posted here too:

<

p class="vcard" style="display:none">

Test

Spam

Post

1 comment · Read more
Syndicate content