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)

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:24 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.02097 seconds
  • Memory Usage 1,725KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete