$nickName = rawurlencode($vbulletin->userinfo['username']); // rawurlencode is important $profileURL = rawurlencode($vbulletin->options['bburl'] . '/member.php?u=' . $vbulletin->userinfo['userid']); $avatarURL = rawurlencode($vbulletin->options['bburl'] . '/image.php?u=' . $vbulletin->userinfo['userid']);