List Info

Thread: multiple hCards on a user's profile page - how can I mark one as the actual user?




multiple hCards on a user's profile page - how can I mark one as the actual user?
country flaguser name
United States
2008-04-14 09:04:11
I'm adding hCard and XFN to my tabletop RPG site,
http://www.obsidianport
al.com

Every user has a profile page and a list of friends. 
Following some of
the guides I've seen, I've added hCard information for the
user's
profile, plus hCard+XFN for the friends list.  Since it was
so easy, I
went hog-wild and started adding hCards everywhere a user's
avatar was
displayed.  So, every comment, every recent-update,
you-name-it.

(Note: It's not there as of 2008-04-18 because I haven't
deployed the
code to the live server yet.  Still some bugs...)

Now the problem I'm dealing with is that I have possibly
dozens of
hCards on the profile page (user + friends + recent updates
+ comments).
 If a spider finds the page and looks for hCards, there is
no (easy) way
to tell that the profile belongs to user A and not A's
friends.  To
combat that, I've added a self-referential link with a
rel="me" on it.
It looks like this:

<a href="htt
p://www.obsidianportal.com/profile/micah"
class="url uid"
rel="me"><span
class="fn">Micah</span></a>

(Note: view e-mail source if the previous text doesn't
display an entire
a-tag.)

Still, this uses XFN which is outside the realm of hCard and
that seems
a little iffy to me.

Am I missing something?  Has anyone else dealt with this
problem?  I
noticed that LiveJournal only has an hCard for the actual
user on their
profile page, and uses XFN without hCard for the friends. 
Is this a
better idea?

Thanks!
Micah
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: multiple hCards on a user's profile page - how can I mark one as the actual user?
user name
2008-04-14 09:34:11
2008/4/14 Micah Wedemeyer <micahaisleten.com>:
>  Now the problem I'm dealing with is that I have
possibly dozens of
>  hCards on the profile page (user + friends + recent
updates + comments).
>   If a spider finds the page and looks for hCards,
there is no (easy) way
>  to tell that the profile belongs to user A and not A's
friends.

--- there is a wiki page somewhere (which i can't find at
the moment),
but there are a few options. HTML has the <address>
element to
describe the contact info of the page owner. There are
issues with
<address> due to it being an inline element, and not
accepting
block-level inside it.

Also, the hResume microformat makes use of
class="contact"  to help
describe which hcard to use. I would recommend using one of
those
options and seeing if that works in your markup.

If i or someone finds that wiki page, please add your
thoughts and
experiences to it as well.

Thanks,
-brian

-- 
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: multiple hCards on a user's profile page - how can I mark one as the actual user?
user name
2008-04-14 13:18:02
On Mon, Apr 14, 2008 at 3:04 PM, Micah Wedemeyer
<micahaisleten.com> wrote:
>  Am I missing something?  Has anyone else dealt with
this problem?  I
>  noticed that LiveJournal only has an hCard for the
actual user on their
>  profile page, and uses XFN without hCard for the
friends.  Is this a
>  better idea?
>

See htt
p://microformats.org/wiki/representative-hcard

-- 
Tom Morris
http://tommorris.org/
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )