Hmm, might be that I'm wrong, but to do it totally correct, you will need to add it to the search.php and the lightbox.php files too.
I'm at work at the moment and so I cannot give you the location where to post it in the files, but maybe V@no knows.
Cheers,
Vraxor