Hmm...which hook did you use? I just realized that the hook I mentioned is for vbulletin version 4. Try using
global_setup_complete.
When I tried it, it had no effect on the admincp or modcp pages even if the field was not filled in.
Edit: But to answer your question, the admincp and modcp pages don't set THIS_SCRIPT, but if you need to you could check if VB_AREA == 'AdminCP' or 'ModCP', like:
PHP Code:
if (VB_AREA != 'AdminCP' && VB_AREA != 'ModCP' && !in_array(THIS_SCRIPT, array('usercp', 'profile', 'sendmessage')) &&
empty($vbulletin->userinfo['field1']))
BTW, if you can't get back in to the adminCP to change the plugin, you can temporarily disable all hook code by editing includes/config.php and adding this line right under <?php
PHP Code:
define('DISABLE_HOOKS', true);
Edit: Also I think you need a check in there for userid != 0 so that guests (and maybe some other requests that don't check for the user beign logged in) aren't affected, like:
PHP Code:
if ($vbulletin->userinfo['userid'] > 0 &&
!in_array(THIS_SCRIPT, array('usercp', 'profile', 'sendmessage')) &&
empty($vbulletin->userinfo['field1']))
{
I was getting pages with the format all jumbled up, and it seems to somehow be related to this mod. I'm thinking that the request for the CSS was getting denied so that maybe this will fix it.