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
  #32  
Old 08-14-2004, 02:53 AM
integra99's Avatar
integra99 integra99 is offline
 
Join Date: Jun 2003
Location: Indiana
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #33  
Old 08-24-2004, 02:48 AM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 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 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>
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 12:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04234 seconds
  • Memory Usage 2,225KB
  • Queries Executed 17 (?)
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
  • (6)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
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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