PHP Code:
<if condition="$bbuserinfo[field15] == '1'">
<if condition="THIS_SCRIPT != 'chat'">
<if condition="is_member_of($vbulletin->userinfo, 5, 7, 6, 16, 12, 11, 17, 10, 13, 9)">
<!-- CometChat Footer Code Start -->
<link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php" charset="utf-8" />
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- CometChat Footer Code End -->
</if></if></if>
Also make sure that the cometchat is actually defined as 'chat' otherwise you have to change that to what ever it is defined as.
If you get rid of that line then it will be on all pages
EDIT:
Or use his it is cleaner