vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   AIM Online Status Indicator (https://vborg.vbsupport.ru/showthread.php?t=63423)

Bad Bunny 04-02-2004 09:00 PM

AIM Online Status Indicator
 
Quote:

Originally Posted by AdmiralB
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:
PHP Code:

        eval('$userinfo[\'aimicon\'] = "' fetch_template('im_aim') . '";'); 

With this:
PHP Code:

        $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 05: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 03:35 PM

nice one, useful since i got plenty of AIM users.. (clicks install)

AdmiralB 04-03-2004 10: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:
PHP Code:

eval('$userinfo[\'aimicon\'] = "' fetch_template('im_aim') . '";'); 

With this:
PHP Code:

$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 05:35 PM

^ Great!!

AN-net 04-04-2004 07:08 PM

nice:D

mitomcua 04-05-2004 01:02 AM

Nice, how do i make it like this for Yahoo messenger?

AdmiralB 04-05-2004 10: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 01:30 AM

Quote:

Originally Posted by AdmiralB
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 05:37 AM

Thanks for your hack, AdmiralB. And thanks for your post, Bad Bunny.

Vivi Ornitier 04-07-2004 03:40 PM

How bout doin this for MSN as well? or is that not possible?

AdmiralB 04-08-2004 08: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 05: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 01: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.
Code:

<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&amp;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:
Code:

<a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]&amp;m=g&amp;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 02: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 05:17 PM

Does this slow down the loading of showthread?

momlwt 04-26-2004 02: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 12:22 AM

Quote:

Originally Posted by hogarth
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.
Code:

<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&amp;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:
Code:

<a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]&amp;m=g&amp;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/...inistrator.htm

Any help appreciated.

lifesourcerec 05-13-2004 02:23 AM

Anyone got small images for Yahoo messenger?

Host Directory 05-13-2004 09: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 04:14 AM

i get cha... yea

Slapyo 05-14-2004 04:30 AM

Quote:

Originally Posted by Host Directory
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 11:38 AM

Quote:

Originally Posted by Slapyo
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 01: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 10:29 PM

great hack, clever and useful

OCH-Stan 06-15-2004 03:32 AM

nice lookin' hack!

oliwood 06-16-2004 09:47 AM

could someone implement this for MSN please, i need this for our company!!!

Please help!!!

Oblivion Knight 07-18-2004 05: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 11:59 AM

Quote:

Originally Posted by Slapyo
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 01:06 AM

super easy install and works flawlessly!!

thanks!


[high]* turbidblue clicks install ;)[/high]

integra99 08-14-2004 01: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

Code:

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

<td> ... </td>
<td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td>



Replace with:
Code:

<td>$userinfo[aimicon]</td>
<td>$userinfo[aimtext]</td>


djjeffa 08-24-2004 01:48 AM

Quote:

Originally Posted by hogarth
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.
Code:

<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&amp;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:
Code:

<a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)"><img src="http://opi.yahoo.com/online?u=$userinfo[yahoo]&amp;m=g&amp;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
Code:

<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&amp;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>


All times are GMT. The time now is 12:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02383 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete