PDA

View Full Version : Instant Messaging Status Icon


LeaderGL
03-20-2006, 10:00 PM
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:

<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>


Go in im_icq:
Replace all text with:

<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>


Go in im_msn:
Replace all text with:

<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>


Go in im_yahoo:
Replace all text with:

<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>

Dougie Nunny
03-20-2006, 11:23 PM
Doesn't work.

A bunch of members who ARE on-line show up as not.

Tralala
03-20-2006, 11:29 PM
This all relies on some external server (the-server.net), yes? What happens when that server is unresponsive, down or whatever?

COBRAws
03-21-2006, 12:22 AM
this is a port, why dont u say? I helped with the original 3.0

Tralala
03-21-2006, 05:24 AM
Just for comparison's sake, how is this different from this hack:
https://vborg.vbsupport.ru/showthread.php?t=101437

LeaderGL
03-21-2006, 09:57 AM
Just for comparison's sake, how is this different from this hack:
https://vborg.vbsupport.ru/showthread.php?t=101437

Sorry, i know this site: http://www.the-server.net:8001/ and from this i get the code to show right image and then i've changed the original vBulletin code in this way:

Original 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>


With new 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>


The only difference is in the "IMG SRC" code that now load right status icon from the site...:

Original:
<img src="$stylevar[imgdir_misc]/im_msn.gif" ...

New:
<img src="http://www.the-server.net:8001/msn/$userinfo[msn]" ...

This https://vborg.vbsupport.ru/showthread.php?t=101437 is a PlugIn so more invasive....my hack is equal to original expect for the Image Source...i've only MSN Messenger Account and i tested it and work....

Snake
03-21-2006, 10:23 AM
Thanks man it seems to work fine now.

LeaderGL
03-21-2006, 11:21 AM
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:

<a href="#" onclick="imwindow('icq', '$userinfo[userid]', 450, 420); return false;"><img src="http://web.icq.com/whitepages/online?icq=$userinfo[icq]&amp;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:

<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:

<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>

Trana
03-21-2006, 05:34 PM
This is just a reposted hack.

gunitman247
04-11-2006, 10:08 PM
yeah im getting a question mark for msn and im online

tei727
04-12-2006, 12:36 AM
Thanks for the hack!

bashy
04-16-2006, 10:04 AM
As heads up peeps

http://www.the-server.net:8001 has been hacked and therefore the IM servers
are at present offline!!!!

R.Solutions
06-21-2006, 10:33 PM
Any updates on this?