Page 5 of 6

Re: MSN Messenger

Posted: Wed May 02, 2007 3:48 pm
by RMcGirr83
Concerning the firefox browser issue. The problem is that firefox doesn't know what program to use for the msnim url protocol. To fix this open firefox and type about:config into the address bar. When brought up right click and select new->string...it will ask for you to input a preference name which should be this

Code: Select all

network.protocol-handler.app.msnim
then it will ask for a string value which is

Code: Select all

C:\Program Files\MSN Messenger\msnmsgr.exe
unless you have changed the default location of the msnmsgr.exe file. You can also do a registry hack, but that stuff scares me. :)

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;
                }
then this in viewtopic.php

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>' : '';
        }
so the user if using IE will have the opportunity to directly add the user and if using any other browser will just be redirected to the users profile as normal phpbb.

Hope it helps...guess this is one of those times when it behooves someone to use IE as their browser.

Re: MSN Messenger

Posted: Mon Jun 25, 2007 5:54 am
by gibsongk55
Hi,

I just tried installing the MSN mod. After all the file editing i ran the db_update.php file in the browser. How does it know if i am logged in? Anyway i didn't notice anything work. But it did showed "delete install and contrib folders" and would not let me access forum until i did.

If i go into a profile the online indicator for msn does not appear only shows X where image goes. I don't think the database was updated but not sure how to check. Any ideas?

Thanks,

Gib

Re: MSN Messenger

Posted: Mon Jun 25, 2007 8:47 am
by kkroo
Try executing the query manually. It is located in the install file.

Re: MSN Messenger

Posted: Tue Jun 26, 2007 1:59 am
by gibsongk55
Hi kkoo,

Thanks for the response. But i have no clue what you mean. Are you referring to the db_update.php file?

I don't think it updated the database. Only said to delete the install folder. Sorry but i need more exact instructions. I am not that good with php.

Thanks,

Gib

Re: MSN Messenger

Posted: Tue Jun 26, 2007 3:58 am
by kkroo
Did you run the db_update.php file from the browser wen you copied it? If it didn't work run this query manually via phpmyadmin

Code: Select all

INSERT INTO `phpbb_config` ( `config_name` , `config_value` )
VALUES (
'msn_server', 'http://www.funnyweb.dk:8080/msn/'
);

Re: MSN Messenger

Posted: Wed Jun 27, 2007 2:00 am
by gibsongk55
Hi,

I ran the query and this is the result:

Inserted rows: 1 (Query took 0.0003 sec)
SQL-query:
INSERT INTO `phpbb_config` ( `config_name` , `config_value` )
VALUES (
'msn_server', 'http://www.funnyweb.dk:8080/msn/'
)


I just looked at a profile that has an msn account. I noticed in the bottom of the browser it was looking up funnyweb.dk (loading very slow) and still no image for the msn button. Only shows an X where the image should be. But the add buddy icon to the right appears as it did before. Still something wrong i guess.

Gibs

Re: MSN Messenger

Posted: Wed Jun 27, 2007 6:31 am
by kkroo
Select another online status server from the MSN Messenger page in the admin panel

Re: MSN Messenger

Posted: Thu Jun 28, 2007 2:42 am
by gibsongk55
It works now. Thank you. One other question. Is there anyway to set this so if a user is not logged in they cannot access the msn link. In other words if someone is not a logged in and activated user, I do not want them to be able to get someone's msn id.

Thanks,

Gib

Re: MSN Messenger

Posted: Thu Jun 28, 2007 10:19 am
by kkroo
Thats great :D About you feature it cannot currently be done. It would be something great for future versions though.


Thanks

Re: MSN Messenger

Posted: Tue Jul 03, 2007 1:45 pm
by talkoman
Hi, I am a problem with this MOD. When I see a profile of an user, I do not see the status of msn with an image but I see a writer...look: http://forum.nuotosicilia.it/profile.ph ... rofile&u=2
How can I resolve this problem?
Thanks

Re: MSN Messenger

Posted: Tue Jul 03, 2007 5:49 pm
by kkroo
It appears that you didn't select a online status server or you didn't execute the SQL queries.

Re: MSN Messenger

Posted: Tue Jul 03, 2007 10:46 pm
by talkoman
can you help me? what I have to do?
Thanks

Re: MSN Messenger

Posted: Sat Jul 21, 2007 4:40 pm
by wolflet
hi there. first i'd like to thank you for this incredible mod.

1 problem i face with this mod is, even after i sign out from msn. the icon that appears under my name will still be the blue msnm icon which is supposed to be for online status? is it some problem with my settings?

p.s.: is there any way for this mod to work with FF?

Re: MSN Messenger

Posted: Sat Jul 21, 2007 4:49 pm
by kkroo
I dont understand what you mean in your first question, could you try rewording it?

About it working in firefox, it currently doesn't work, but it may work in future versions of MSN messenger or firefox.

Re: MSN Messenger

Posted: Sat Jul 21, 2007 4:52 pm
by wolflet
kkroo wrote:I dont understand what you mean in your first question, could you try rewording it?

About it working in firefox, it currently doesn't work, but it may work in future versions of MSN messenger or firefox.
theres supposed to be a icon for online and an icon for offline right? since i see 4 icons under the images folder.

but despite i being offline, the icon displayed is still the online icon