![]() |
Instant Messaging Status Icon
Hi,
i'm an Italian boy and this is my first hack on vBulletin Forum. What this does: It's a little mod to add in User Description Bar the real status of IM. How: 1) Go in your "Admin Control Panel" -> Styles & Templates -> Style Manager -> Edit Template 2) Now search "Instant Messaging Template" and expand it. We should modify: im_aim, im_icq, im_msn, im_yahoo Go in im_aim: Replace all text with: Code:
<a href="#" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/aim/$userinfo[aim]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_aim_to_x]</phrase>" border="0" /></a> Replace all text with: Code:
<a href="#" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;"><img src="http://www.the-server.net:8001/icq/$userinfo[icq]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_icq_to_x]</phrase>" border="0" /></a> Replace all text with: Code:
<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/msn/$userinfo[msn]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" border="0" /></a> Replace all text with: Code:
<a href="#" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/yahoo/$userinfo[yahoo]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_yahoo_to_x]</phrase>" border="0" /></a> |
Doesn't work.
A bunch of members who ARE on-line show up as not. |
This all relies on some external server (the-server.net), yes? What happens when that server is unresponsive, down or whatever?
|
this is a port, why dont u say? I helped with the original 3.0
|
Just for comparison's sake, how is this different from this hack:
https://vborg.vbsupport.ru/showthread.php?t=101437 |
Quote:
Original Code: Code:
<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;"><img src="$stylevar[imgdir_misc]/im_msn.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" border="0" /></a> Code:
<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;"><img src="http://www.the-server.net:8001/msn/$userinfo[msn]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" border="0" /></a> Original: Code:
<img src="$stylevar[imgdir_misc]/im_msn.gif" ... Code:
<img src="http://www.the-server.net:8001/msn/$userinfo[msn]" ... |
Thanks man it seems to work fine now.
|
I've changed some code, with this new code you use the appropiate status indication (icq from icq server, yahoo from yahoo server, only msn is on the-server.net):
ICQ: Code:
<a href="#" onclick="imwindow('icq', '$userinfo[userid]', 450, 420); return false;"><img src="http://web.icq.com/whitepages/online?icq=$userinfo[icq]&img=5" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_icq_to_x]</phrase>" onerror="this.onerror=null;this.src='http://www.the-server.net:8001/image/icqunknown.gif';" border="0" /></a> MSN: Code:
<a href="#" onclick="imwindow('msn', '$userinfo[userid]', 400, 205); return false;"><img src="http://www.the-server.net:8002/msn/$userinfo[msn]" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_msn_to_x]</phrase>" onerror="this.onerror=null;this.src='http://www.the-server.net:8002/image/msnunknown.gif';" border="0" /></a> YAHOO: Code:
<a href="#" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 150); return false;"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]%40yahoo.it&m=g&t=1" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_yahoo_to_x]</phrase>" border="0" /></a> |
This is just a reposted hack.
|
yeah im getting a question mark for msn and im online
|
All times are GMT. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|