microformats

Events happening in the community are now at Drupal community events on www.drupal.org.
tanepiper'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.

Read more
tanepiper'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

Read more
Subscribe with RSS Syndicate content

Microformats in Drupal

Group organizers

Group categories

Microformats

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: