Topic: how to display in some forums only?

What is the if conditional to do this?

i want to display a text/ads in forum id 1, 2, and 3 only

Re: how to display in some forums only?

in file viewforum.php add

if (in_array($id, array(1,2,3,5,12,37)) )
{
    echo 'I am AdSense';
}