Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
AIM Online Status Indicator Details »»
AIM Online Status Indicator
Version: 1.00, by Bad Bunny Bad Bunny is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-02-2004 Last Update: Never Installs: 30
 
No support by the author.

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
Looks interesting. And simple! Thanks!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-07-2004, 04:40 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How bout doin this for MSN as well? or is that not possible?
Reply With Quote
  #13  
Old 04-08-2004, 09:34 PM
AdmiralB's Avatar
AdmiralB AdmiralB is offline
 
Join Date: Mar 2004
Location: New Jersey
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 04-10-2004, 06:46 PM
GamerJunk.net's Avatar
GamerJunk.net GamerJunk.net is offline
 
Join Date: Jan 2004
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sometimes this makes it take longer to load the page.

That's the only part about it I don't like.
Reply With Quote
  #15  
Old 04-17-2004, 02:09 AM
hogarth hogarth is offline
 
Join Date: Dec 2002
Location: USA
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 04-21-2004, 03:14 AM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

might want to check this out. might be able to some how incorporate this.

http://www.onlinestatus.org/hosting.html
Reply With Quote
  #17  
Old 04-21-2004, 06:17 PM
Mr. HillBilly Mr. HillBilly is offline
 
Join Date: Oct 2003
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this slow down the loading of showthread?
Reply With Quote
  #18  
Old 04-26-2004, 03:57 PM
momlwt momlwt is offline
 
Join Date: Jan 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is neat, but our group primarily uses YIM (Yahoo Instant Messenger) if you could create one of those now, that would be awesome!
Reply With Quote
  #19  
Old 05-13-2004, 01:22 AM
Host Directory Host Directory is offline
 
Join Date: Feb 2003
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 05-13-2004, 03:23 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone got small images for Yahoo messenger?
Reply With Quote
  #21  
Old 05-13-2004, 10:43 AM
Host Directory Host Directory is offline
 
Join Date: Feb 2003
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:53 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.04470 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete