Archive for January 13th, 2005

gravatar for b2

sorry, i removed my implemenation because it slows down my comments form loading time too much.

if you wish to implement gravatar for b2, here’s how to do it. since i no longer have a copy of b2, i looked at Lissy’s code.

open either b2comments.php or b2commentspopup.php depend on which one you are using

and find the line:

$commentdata = get_commentdata($rowc->comment_ID);

add below:

// just leave it blank if you don't want to use a default avatar image $default = "http://yourdomain/default_avatar_image.gif"; // the size of your avatar. in this case, it is 40x40. $size = 40; $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=". md5($commentdata['comment_author_email']). "&default=".urlencode($default)."&size=".$size;

add the line below whereever you want your avatar to show up in your comment:

<a href="http://gravatar.com/" title="Get your gravatar at gravatar.com"><img src="<?php echo $grav_url; ?>" alt="Get your gravatar at gravatar.com" /></a>

if you use my threaded comments hack, you need to do similar things for my dodos_thread function in b2functions.php

OMG my mom again?

After all these years of physical and verbal fighting and now my parents are both getting close to 60 and this kind of thing still happens? it’s too complicated to explain their situation. to make long story short. after i moved out four years ago, my dad has been living in the guest house (a house connected to the main house but has its separate kitchen, bathroom and bedroom). my mom still lives in the main house. she rents about 3/4 the house to strangers for money. i just called my dad and apparently my mom broke his windows last night.

they were physically fighting about paying utilities bills and at one point my mom fell on her butt so my dad went back to his place and locked his door. my mom then followed him and broke the windows of his house. she subsequently called the police but wasn’t present when the police arrived. my dad also said she cut off the heat in his room. what a crazy woman. i can not describe to you how fortunate i feel to be out of her realm. read how she treated me back then.

the police will come again to see if they can catch my mom. i hope they sent her to mental hospital. i told my dad to come to our place if he needs to. you can not sleep without heat at 20 below.

is there ever going to be an end to this? for christ sake, they’ve been like this for almost 40 years! i still remember how they fought back when i was little kid. my mom’s tooth was broken and my dad poured urine from the chamber pot all over the bed. that was my childhood.