Seite 1 von 1

Im Profil: Messenger von MSN ...

Verfasst: 23.03.2005 23:05
von ~~~ADM~~~
Hallo,

hab mal eine ganz blöde Frage:

Im Profil eines Users kann man doch Messenger-Kontakte eingeben. Yahoo und ICQ funktionieren. Wenn ich aber bei MSN die Hotmail-Adresse eingebe kommt weder das Button noch der Link.

Bin ich jetzt zu dumm dazu oder gibt es dort einen Trick?

Grüße ...
Andreas

Verfasst: 23.03.2005 23:19
von Mario Siebert
Standardmässig wird im Profil nur die Hotmailadresse als Plaintext ausgegeben nicht der Verlinkte MSNM Button. Es gibt aber einen Mod der im Profil die Hotmail Adresse durch den MSNM Button ersetzt, und gleichzeitig auf klick des Buttons im Profil/Beitragsansicht den Benutzer wie bei ICQ auf die Contact List setzt:
########################################################
##
## Title: MSN Messenger Mod
## Version: 1.0.0 - final release (for now!)
## Author: Andareed (and_a_reed@hotmail.com)
## Description:
## Changes the action when clicking on the msn messenger icon. When you click on it, you
## will be asked if you want to add the person to your contact list, and then it will ask
## if you want to send them an instant message. If messenger is not installed, an error
## message box is displayed. Currently, you must be signed in to messenger for this mod to
## work. This may be changed in a future release of this mod!
##
## Installation Level: Easy
## Installation Time: 2-5 Minutes
## Files To Edit: 4
## - privmsg.php
## - viewtopic.php
## - includes\usercp_viewprofile.php
## - templates\subSilver\overall_header.tpl
##
## Included Files: none
##
########################################################
##
## Version History:
##
## 1.0.0.0 Final.. No History unless someone finds a bug!
##
## (the phpBB Group Reserves The Right To Remove/Edit Author Notes, Should It Be Warranted)
##
#########################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#########################################################

#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$msn_img = ( $privmsg['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = ( $privmsg['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';
#
#-----[ REPLACE WITH ]------------------------------
#
$msn_img = ( $privmsg['user_msnm'] ) ? '<a href=\'javascript:DoInstantMessage("'.$privmsg['user_msnm'].'","'.$privmsg['username_1'].'");\'><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = $msn_img;
#
#-----[ SAVE CLOSE UPLOAD ]---------------------------
#
privmsg.php
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$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>' : '';
#
#-----[ REPLACE WITH ]-----------------------------
#
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href=\'javascript:DoInstantMessage("'.$postrow[$i]['user_msnm'].'","'.$postrow[$i]['username'].'");\'><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = $msn_img;
#
#-----[ SAVE CLOSE UPLOAD ]--------------------------
#
viewtopic.php
#
#-----[ OPEN ]------------------------------------------
#
includes\usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : '&nbsp;';
$msn = $msn_img;
#
#-----[ REPLACE WITH ]-----------------------------
#
$msn_img = ( $profiledata['user_msnm'] ) ? '<a href=javascript:DoInstantMessage("'.$profiledata['user_msnm'].'","'.$profiledata['username'].'")><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSN'] . '" title="' . $lang['MSN'] . '" border="0" /></a>': '&nbsp;';
$msn = $msn_img;
#
#-----[ SAVE CLOSE UPLOAD ]--------------------------
#
includes\usercp_viewprofile.php
#
#-----[ OPEN ]------------------------------------------
#
templates\subSilver\overall_header.tpl
#
#-----[ ADD AT TOP ]------------------------------------------
#
<OBJECT classid='clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28' codeType='application/x-oleobject' height='1' id='MsgrObj' width='1'></OBJECT>
<script>
function DoInstantMessage(person,screen)
{
try
{
if(confirm("Add "+screen+" to your contact list?")==true)MsgrObj.AddContact(0,person);
if(confirm("Send "+screen+" an instant message?")==true)MsgrObj.InstantMessage(person);
}
catch(e)
{
alert("An error occured while attempting to launch Messenger!\nPlease verify you have Messenger installed and that you are logged onto the service.\n\nError Code: "+e.number);
}

}
</script>
#
#-----[ SAVE CLOSE UPLOAD ]--------------------------
#
templates\subSilver\overall_header.tpl
#
#-----[ EOM ]--------------------------------------------

Grüße Mario

Verfasst: 23.03.2005 23:28
von ~~~ADM~~~
Genial!

Wollte zwar schlafen gehen - aber das hau ich noch schnell rein.

Danke Dir!
Andreas

EDIT: Hat nicht gefunzt - Klick & nix passiert! Habe kein subSilver ... egal - muss morgen wieder früh raus ;-)

Verfasst: 24.03.2005 02:19
von Nachtfalke-01
Habe es auch gerade eingebaut funktioniert eigendlich ganz gut jedenfalls mit den Netscape und Mozilla Browser, aber bei dem IE-Browser öffnet sich bei jedem klick im Forum mein Messenger, sollte glaube ich nicht so sein :-?

Weiß jemand woran das liegt?

Der fehler müsste glaube ich in diesem Code :

Code: Alles auswählen

#-----[ OPEN ]------------------------------------------
#
templates\subSilver\overall_header.tpl
#
#-----[ ADD AT TOP ]------------------------------------------
#
<OBJECT classid='clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28' codeType='application/x-oleobject' height='1' id='MsgrObj' width='1'></OBJECT>
<script>
function DoInstantMessage(person,screen)
{
try
{
if(confirm("Add "+screen+" to your contact list?")==true)MsgrObj.AddContact(0,person);
if(confirm("Send "+screen+" an instant message?")==true)MsgrObj.InstantMessage(person);
}
catch(e)
{
alert("An error occured while attempting to launch Messenger!\nPlease verify you have Messenger installed and that you are logged onto the service.\n\nError Code: "+e.number);
}

}
</script> 
sein, den ich jetz vorerst entfernt habe.

Zur info ich benutzte das c3s-Style.

MfG

Verfasst: 02.08.2005 17:11
von Scotty
Geht das hier auch einfacher, so das man nur auf die MSN Profil Seite weitergeleitet wird?

Für MSN wäre dass dann: "http://members.msn.com/?mem=" hier müsste dann nur noch der Screenname rangehängt werden.

Verfasst: 01.11.2005 19:09
von Medics
Nachtfalke-01 hat geschrieben:Habe es auch gerade eingebaut funktioniert eigendlich ganz gut jedenfalls mit den Netscape und Mozilla Browser, aber bei dem IE-Browser öffnet sich bei jedem klick im Forum mein Messenger, sollte glaube ich nicht so sein :-?

Weiß jemand woran das liegt?
Original Mod-Description hat geschrieben:## Changes the action when clicking on the msn messenger icon. When you click on it, you
## will be asked if you want to add the person to your contact list, and then it will ask
## if you want to send them an instant message. If messenger is not installed, an error
## message box is displayed.
Ich könnte mir also vorstellen, dass es so ist, weil es so beabsichtigt war... :wink:

Verfasst: 17.02.2006 20:43
von nagus
Ich habe das gerade eingebaut. Mit dem Iexplore funktioniert das. Nur mit Firefox bekomme ich die im Code angegebene Fehlermeldung.

Kann man das auch für den Firefox einstellen?