if ($this->is_wysiwyg()) $this->unparsed_tags[] = 'user';if (!function_exists('nex_fetch_musername')){ function nex_fetch_musername(&$parser, $userid, $title='') { global $vbulletin, $db; # check if we have a username or userid $wesearch = is_numeric($userid) ? 'userid' : 'username'; if($user = $db->query_first_slave(" SELECT * FROM " . TABLE_PREFIX . "user WHERE " . $wesearch . " = '" . $userid . "' ")) { $musername = fetch_musername($user); return '<a href="' . $vbulletin->options['bburl'] . '/member.php?u=' . $user['userid'] . '">' . $musername . '</a>'; } return $userid; } function nex_fetch_musername_option(&$parser, $title='', $userid) { global $vbulletin, $db; # check if we have a username or userid $wesearch = is_numeric($userid) ? 'userid' : 'username'; if($user = $db->query_first_slave(" SELECT * FROM " . TABLE_PREFIX . "user WHERE " . $wesearch . " = '" . $userid . "' ")) { if($title != '') $user['username'] = $title; $musername = fetch_musername($user); return '<a href="' . $vbulletin->options['bburl'] . '/member.php?u=' . $user['userid'] . '">' . $musername . '</a>'; } return $userid; }}// [USER]$this->tag_list['no_option']['user'] = array( 'callback' => 'handle_external', 'strip_empty' => true, 'stop_parse' => false, 'disable_smilies' => false, 'disable_wordwrap' => true, 'strip_space_after' => 0, 'external_callback' => 'nex_fetch_musername');// [USER=XXX]$this->tag_list['option']['user'] = array( 'callback' => 'handle_external', 'strip_empty' => true, 'stop_parse' => false, 'disable_smilies' => false, 'disable_wordwrap' => true, 'strip_space_after' => 0, 'external_callback' => 'nex_fetch_musername_option');