Usernames appear incorrectly in Who’s Online list

Find out vBulletin charset/encoding by logging into the vBulletin Admin Control Panel.

Open integration.php in a text editor.

Scroll down to line 117 and find the following piece of code:

function processName($name) {
// For vBulletin users ONLY 
// Uncomment the next two lines and change only ISO-8859-9 to your site encoding type 
// $name = iconv("UTF-8", "ISO-8859-1", $name); 
// $name = iconv("ISO-8859-9", "UTF-8", $name); 
return $name;
}

Uncomment the two lines and then change only ISO-8859-9 to your site encoding.

e.g. if your encoding is Windows-1256, replace the above lines with:

function processName($name) {
// For vBulletin users ONLY
// Uncomment the next two lines and change only ISO-8859-9 to your site encoding type
$name = iconv("UTF-8", "ISO-8859-1", $name);
$name = iconv("Windows-1256", "UTF-8", $name);
return $name;
}

Not finding what you need?

The CometChat team is here to help!