$picturebitLink = '<a href="album.php?' . $session['sessionurl'] . 'albumid=$albuminfo[albumid]&pictureid=$picture[pictureid]">'; $hsLink = $vbulletin->templatecache['highslide_album_link']; $vbulletin->templatecache['album_picturebit'] = str_replace($picturebitLink, $hsLink, $vbulletin->templatecache['album_picturebit']);