Code: Select all
network.protocol-handler.app.msnim
Code: Select all
C:\Program Files\MSN Messenger\msnmsgr.exe
By doing this the application will start when clicking on the links, but the individual will still not be added to the contact list automatically. I am afraid I can find no solution to this problem.
To get around this issue I have coded the following into page_header to pull the users browser info and ignored trying to get firefox (or anyother non IE browser) from opening msnim
Code: Select all
//
// check for browser version being used
//
$curos=strtolower($_SERVER['HTTP_USER_AGENT']);
if (strstr($curos,"safari")!== false) {
$browser=4;
} else if (strstr($curos,"firefox")!== false) {
$browser=2;
} else if (strstr($curos,"konqueror")!== false) {
$browser=6;
} else if (strstr($curos,"opera")!== false) {
$browser=3;
} else if (strstr($curos,"msie")!== false) {
$browser=1;
} else if (strstr($curos,"mozilla")!== false) {
$browser=7;
} else if (strstr($curos,"netscape")!== false) {
$browser=8;
} else { $browser=0;
}
//---check for browsers that hide idenity
if (strstr($curos, "msie") !== false && strstr($curos, "Opera") !== false ) {
$browser = 3;
} else if (strstr($curos, "msie") !== false && strstr($curos, "avant browser") !== false ) {
$browser = 5;
}
Code: Select all
if ($browser = 1)
{
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="msnim:add?contact=' . $postrow[$i]['user_msnm'] . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="msnim:add?contact=' . $postrow[$i]['user_msnm'] . '">' . $lang['MSNM'] . '</a>' : '';
}
else
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';
}
Hope it helps...guess this is one of those times when it behooves someone to use IE as their browser.