View Full Version : AIM Online Status Indicator
Bad Bunny
04-02-2004, 10:00 PM
I've downloaded quite a few hacks from these forums and thought that I should contribute one of my own :) (First hack and first post ever!)
I dislike the way that vBulletin sets up way you send AIM messages. You have to go from that pop-up window to the profile in order to IM someone by clicking on the icon. With this hack, the image will display whether or not the user is logged into AIM as well as opening the AIM IM window upon clicking the icon. To check whether the user is online, it checks with the AIM server. This only requires two file uploads (images) and a one-line file edit.
STEP ONE:
Upload the files aim_online.gif and aim_offline.gif to any directory.
STEP TWO:
Open up includes/functions_showthread.php and replace this line:
eval('$userinfo[\'aimicon\'] = "' . fetch_template('im_aim') . '";');
With this:
$userinfo['aimicon'] = "<a href='aim:goim?screenname=" . $userinfo['aim'] . "'><img src='http://big.oscar.aol.com/" . $userinfo['aim'] . "?on_url=http://yoursite.com/path/to/aim_online.gif&off_url=http://yoursite.com/path/to/aim_offline.gif' width='16' height='16' style='border: 0;' /></a>";
Make sure you change the url's in there to match the path to your images. The icons are attached.
Well, it's not much, but it is my first hack. Just a fun 'lil thing that makes your forum more convenient. I don't know if this can be done with MSNM, but if it's possible, I'll post a follow-up to this thread.
Feel free to edit the images as you like :D
Looks interesting. And simple! Thanks!
GamerJunk.net
04-03-2004, 06:24 AM
How long does it take to update your status because I am signed on AIM and it hasn't registered on my forums that I am on.
???`S?LV?R???`
04-03-2004, 04:35 PM
nice one, useful since i got plenty of AIM users.. (clicks install)
AdmiralB
04-03-2004, 11:49 PM
I've downloaded quite a few hacks from these forums and thought that I should contribute one of my own :) (First hack and first post ever!)
I dislike the way that vBulletin sets up way you send AIM messages. You have to go from that pop-up window to the profile in order to IM someone by clicking on the icon. With this hack, the image will display whether or not the user is logged into AIM as well as opening the AIM IM window upon clicking the icon. To check whether the user is online, it checks with the AIM server. This only requires two file uploads (images) and a one-line file edit.
STEP ONE:
Upload the files aim_online.gif and aim_offline.gif to any directory.
STEP TWO:
Open up includes/functions_showthread.php and replace this line:
eval('$userinfo[\'aimicon\'] = "' . fetch_template('im_aim') . '";');
With this:
$userinfo['aimicon'] = "<a href='aim:goim?screenname=" . $userinfo['aim'] . "'><img src='http://big.oscar.aol.com/" . $userinfo['aim'] . "?on_url=http://yoursite.com/path/to/aim_online.gif&off_url=http://yoursite.com/path/to/aim_offline.gif' width='16' height='16' style='border: 0;' /></a>";
Make sure you change the url's in there to match the path to your images. The icons are attached.
Well, it's not much, but it is my first hack. Just a fun 'lil thing that makes your forum more convenient. I don't know if this can be done with MSNM, but if it's possible, I'll post a follow-up to this thread.
Feel free to edit the images as you like
EDIT: Even with a fix I made, screen name with spaces just don't seem to work.
*arie
04-04-2004, 06:35 PM
^ Great!!
AN-net
04-04-2004, 08:08 PM
nice:D
mitomcua
04-05-2004, 02:02 AM
Nice, how do i make it like this for Yahoo messenger?
AdmiralB
04-05-2004, 11:51 PM
I am not sure if there is such a link for Yahoo! messenger. For AIM, it checks with big.oscar.aol.com. If there is a way to check whether someone's signed onto YIM, I'll add it to the hack.
Bad Bunny
04-06-2004, 02:30 AM
I am not sure if there is such a link for Yahoo! messenger. For AIM, it checks with big.oscar.aol.com. If there is a way to check whether someone's signed onto YIM, I'll add it to the hack.
I believe there is an ability to do this with ICQ that would be cool to integrate with vb3.
calvinnguyen
04-07-2004, 06:37 AM
Thanks for your hack, AdmiralB. And thanks for your post, Bad Bunny.
Vivi Ornitier
04-07-2004, 04:40 PM
How bout doin this for MSN as well? or is that not possible?
AdmiralB
04-08-2004, 09:34 PM
I'm going to look into checking the online status of all the messengers (Yahoo!, MSN, ans ICQ). Once I get that all together, I'll release it in a final hack. I've seen one for ICQ and a promising one for MSN, but I haven't tested it.
GamerJunk.net
04-10-2004, 06:46 PM
Sometimes this makes it take longer to load the page.
That's the only part about it I don't like.
hogarth
04-17-2004, 02:09 AM
This hack doesn't have to be a code hack, look at the Instant Messaging Templates -> im_aim template. I used the example images AdmiralB provided.<a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)"><img src="http://big.oscar.aol.com/$userinfo[aim]?on_url=http://www.yourserver.com/images/im_aim_on.gif&off_url=http://www.yourserver.com/images/im_aim_off.gif" width="16" height="16" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_aim_to_x]</phrase>" border="0" /></a>Yahoo's online indicator unfortunetly is a bit smaller than AIM's, so I won't be using it because it won't match the size of the other chat protocol indicators. But, that too is in the Instant Messaging Templates -> im_yahoo template:<a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]&m=g&t=3" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_yahoo_to_x]</phrase>" border="0" /></a>The "t" argument in the URL to Yahoo can be changed from 1 to 3 to get a different indicator.
Still looking into MSN.
Slapyo
04-21-2004, 03:14 AM
might want to check this out. might be able to some how incorporate this.
http://www.onlinestatus.org/hosting.html
Mr. HillBilly
04-21-2004, 06:17 PM
Does this slow down the loading of showthread?
momlwt
04-26-2004, 03:57 PM
This is neat, but our group primarily uses YIM (Yahoo Instant Messenger) if you could create one of those now, that would be awesome!
Host Directory
05-13-2004, 01:22 AM
This hack doesn't have to be a code hack, look at the Instant Messaging Templates -> im_aim template. I used the example images AdmiralB provided.<a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)"><img src="http://big.oscar.aol.com/$userinfo[aim]?on_url=http://www.yourserver.com/images/im_aim_on.gif&off_url=http://www.yourserver.com/images/im_aim_off.gif" width="16" height="16" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_aim_to_x]</phrase>" border="0" /></a>Yahoo's online indicator unfortunetly is a bit smaller than AIM's, so I won't be using it because it won't match the size of the other chat protocol indicators. But, that too is in the Instant Messaging Templates -> im_yahoo template:<a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]&m=g&t=3" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_yahoo_to_x]</phrase>" border="0" /></a>The "t" argument in the URL to Yahoo can be changed from 1 to 3 to get a different indicator.
Still looking into MSN.
I am trying to add a section to each page of my site with a drop down list containing info on admins and mods - www.hostcompanies.com/forums/profilepages.htm
I would like to add the online / offline status for all message icons to all these profile pages.
I did try using the code your presented for aim but i got an error message - http://www.hostcompanies.com/forums/profilespages/administrator.htm
Any help appreciated.
lifesourcerec
05-13-2004, 03:23 AM
Anyone got small images for Yahoo messenger?
Host Directory
05-13-2004, 10:43 AM
You can find images to use here - http://www.onlinestatus.org/forum/usage.php just click on the different osi hosts. Although i have been advised not to use their service since it is hosted by third party individuals and the servers can often go offline or people just suddenly close the servers.
pjdaley
05-14-2004, 05:14 AM
i get cha... yea
Slapyo
05-14-2004, 05:30 AM
You can find images to use here - http://www.onlinestatus.org/forum/usage.php just click on the different osi hosts. Although i have been advised not to use their service since it is hosted by third party individuals and the servers can often go offline or people just suddenly close the servers.
ya, that would be the problem. but you could set it up on your machine to run. your provider would have to allow you to run it on the server.
Host Directory
05-14-2004, 12:38 PM
ya, that would be the problem. but you could set it up on your machine to run. your provider would have to allow you to run it on the server.
Do you think running it on the server would be server heavy? Would it use a lot of bandwidth up?
Slapyo
05-17-2004, 02:34 AM
not sure, i haven't run it on my server. but they had some forums on the site you might check there.
Keyser S?ze
05-22-2004, 11:29 PM
great hack, clever and useful
OCH-Stan
06-15-2004, 04:32 AM
nice lookin' hack!
oliwood
06-16-2004, 10:47 AM
could someone implement this for MSN please, i need this for our company!!!
Please help!!!
Oblivion Knight
07-18-2004, 06:32 PM
It's sadly not possible to do this with MSN (to my knowledge).
Dave2 from UBBDEV and myself worked on a similar hack to this for UBB.classic back in the 6.3.x.x days and we had it working for AIM, ICQ and Yahoo. If people are interested, I may try and port it sometime.
Datenpapst
07-26-2004, 12:59 PM
might want to check this out. might be able to some how incorporate this.
http://www.onlinestatus.org/hosting.html
What about ICQ Msg?
turbidblue
08-14-2004, 02:06 AM
super easy install and works flawlessly!!
thanks!
* turbidblue clicks install ;)
integra99
08-14-2004, 02:53 AM
Also, a nice template hack to go along with this. If you notice in the MEMBERINFO template, the image links directly to an IM window, but the text next to it does not. If you edit the memberinfo template.. Also fixed that pesky space in the AIM username problem.
Edit /includes/functions_showthread.php
$aimtemp = str_replace(" ", "", $userinfo["aim"]);
$userinfo['aimicon'] = "<a href='aim:goim?screenname=" . $aimtemp . "'><img src='http://big.oscar.aol.com/" . $aimtemp . "?on_url=http://www.kydsm.com/images/misc/aim_online.gif&off_url=http://www.kydsm.com/images/misc/aim_offline.gif' width='16' height='16' style='border: 0;' /></a>";
$userinfo['aimtext'] = "<a href='aim:goim?screenname=" . $aimtemp . "'>" . $userinfo['aim'] . "</a>";
I don't remember what was originally in the first TD cell, so it is represented by ... :)
In MEMBERINFO template, find:
<td> ... </td>
<td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td>
Replace with:
<td>$userinfo[aimicon]</td>
<td>$userinfo[aimtext]</td>
djjeffa
08-24-2004, 02:48 AM
This hack doesn't have to be a code hack, look at the Instant Messaging Templates -> im_aim template. I used the example images AdmiralB provided.<a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)"><img src="http://big.oscar.aol.com/$userinfo[aim]?on_url=http://www.yourserver.com/images/im_aim_on.gif&off_url=http://www.yourserver.com/images/im_aim_off.gif" width="16" height="16" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_aim_to_x]</phrase>" border="0" /></a>Yahoo's online indicator unfortunetly is a bit smaller than AIM's, so I won't be using it because it won't match the size of the other chat protocol indicators. But, that too is in the Instant Messaging Templates -> im_yahoo template:<a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]&m=g&t=3" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_yahoo_to_x]</phrase>" border="0" /></a>The "t" argument in the URL to Yahoo can be changed from 1 to 3 to get a different indicator.
Still looking into MSN.
i tried it but it didnt work
<a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)"><img src="http://big.oscar.aol.com/$userinfo[aim]?on_url=http://djjeffa.com/vb/images/misc/aim_online.gif&off_url=http://djjeffa.com/vb/images/misc/aim_offline.gif" width="16" height="16" alt="<phrase 1="$userinfo[username]">$vbphrase[send_message_via_aim_to_x]</phrase>" border="0" /></a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.