Quote:
Originally Posted by sectomy
hi,
thx but i cant find bbuserinfo in that php file....
could u help me in that case please..
i only want to replace a space in the vbb username to an "_"
so the user can simple go to the chat and use his normal vbb username.
thanks in advance
|
in chat_irc.php underneath the line that says:
Code:
$ctech_guest = $vbulletin->options['ctech_chat_irc_guest_prefix'] . $vbulletin->options['ctech_chat_irc_guest_text'] . rand(1000,9999);
add:
Code:
$ctech_user = str_replace(" ", "_", $vbulletin->userinfo['username']);
then underneath the line that says:
Code:
$templater->register('ctech_guest', $ctech_guest);
add:
Code:
$templater->register('ctech_user', $ctech_user);
Then find your ctech_chat_irc_index template and find {vb:var bbuserinfo.username} and replace it with {vb:var ctech_user}
This fixes the issue of usernames with spaces in them being cut off after the first word. I don't take credit or responsibility for this.