That would go into the template. Except, you aren't using a template are you. Ugh. OK, then back to php.... you will have to put a condition around all the html in your page that you don't want users to see and then another condition around the html in your page that you do want the users to see - like this:
PHP Code:
<?php
if (is_member_of($vbulletin->userinfo, 6, 7))
{
?>
a bunch of html to only show to users in group 6 or 7
<?php
}
?>
And then, when you have html that you only want to show to the non mods/admins:
PHP Code:
<?php
if (!is_member_of($vbulletin->userinfo, 6, 7))
{
?>
a bunch of html to only show to users NOT in group 6 or 7
<?php
}
?>