Lightbox vs. prettyPhoto

I am using a Wordpress theme and changing the pretty photo to lightbox for my gallery, not sure what am I doing wrong. I changed the rel=prettyPhoto to class=lightbox. Thought maybe someone would know what I am missing. I am so close, or I think I am at least ha.

Orginal Code using prettyPhoto

//output div and image in it echo '<div class="pictures_entry">'; echo '<a href="'.$attachments[$i]["location"].'" title="'.$attachments[$i]["title"].'" rel="prettyPhoto[gallery]"><img src="'.$attachments[$i]["location"].'" width="200" height="120" alt="'.get_the_title().'" />'; echo '</div>';

New Code using lightbox

//output div and image in it echo '<div class="pictures_entry">'; echo '<a href="'.$attachments[$i]["location"].'" title="'.$attachments[$i]["title"].'" class="lightbox"[gallery link="location"]><img src="'.get_bloginfo('template_directory').'/includes/timthumb.php?src='.$attachments[$i]["location"].'" width="200" height="120" alt="'.get_the_title().'" />'; echo '</div>';

Out of interest you joined this forum specificaly to post this question - why did you not join a wordpress forum?

Searching google comes up with some instructions including this one: http://wordpress.org/extend/plugins/lightbox-2/installation/

Thanks for the info Rubble. I just saw good reviews for this forum so I joined, but I will check out a WP one now to see what help I can find. As for the link to the prettyPhoto documentation, I am still confused what I am missing, but will keep reading. Thanks !