Also, I would recommend using iswm instead of isin with sockets. It's much more likely to give you what you're looking for rather than multiple matches. isin will work, but iswm tends to be easier in the long run.

if (<p><b>Popular Titles</b>* iswm %temptext) { }

It's really up to you which way works best. Sometimes, isin is plenty for a site and other times, iswm saves you a lot of trouble. That's why I suggest using iswm all the time rather than having your scripts set up differently.