A better check to do instead of comparing $pagetitle from the other answer, is to compare to the $this->template property. The page title is more dynamic so comparing that is more brittle (e.g. if you use a different language). $this->template will be 'questions' or 'hot' or 'unanswered' in your 3 situations specified UPSers.
Edit History
A better check to do instead of comparing $pagetitle from the other answer, is to compare to the $this->template property. The page title is more dynamic so comparing that is more brittle (e.g. if you use a different language). $this->template will be 'questions' or 'hot' or 'unanswered' in your 3 situations specified.