<if condition="$GLOBALS['forumid'] == X"> Warning. You are entering a Mature Audience forum. etc...etc.... </if>