Advertisement:

Author Topic: AIM online/offline status  (Read 40094 times)

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,561
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
AIM online/offline status
« on: June 01, 2005, 09:25:51 PM »
im not sure if this it the right place to put this but i was thinking why not change the AIM maged based on the user status.  that way it shows online of offline.  this code does the trick

Code: [Select]
http://big.oscar.aol.com/lilj625?on_url=http://kevmundial.com/images/online.bmp&off_url=http://kevmundial.com/images/offline.bmp

[EDIT]
since this was moved to tips n tricks ima put the code here

i changed the img src on Load.php and Memberlist.php
on Memberlist.php i put this

search for 'aim' => array( and replace with this w/o the php tags
Code: [Select]
<?php
&#39;aim&#39; => array(
&#39;name&#39; => $row[&#39;AIM&#39;],
&#39;href&#39; => !empty($row[&#39;AIM&#39;]) ? &#39;aim:goim?screenname=&#39; . $row[&#39;AIM&#39;] . &#39;&message=&#39; . $txt[&#39;aim_default_message&#39;] : &#39;&#39;,
&#39;link&#39; => !empty($row[&#39;AIM&#39;]) ? &#39;<a href="aim:goim?screenname=&#39; . $row[&#39;AIM&#39;] . &#39;&message=&#39; . $txt[&#39;aim_default_message&#39;] . &#39;" target="_blank"><img src="http://big.oscar.aol.com/&#39; . $row[&#39;AIM&#39;] . &#39;?on_url=&#39; . $settings[&#39;images_url&#39;] . &#39;/aim_on.gif&off_url=&#39; . $settings[&#39;images_url&#39;] . &#39;/aim_off.gif" alt="&#39; . $row[&#39;AIM&#39;] . &#39;" border="0" /></a>&#39; : &#39;&#39;
),
?>


example here
http://www.kevmundial.com/board/index.php?board=39;topic=343.1#msg1386

memberlist example
http://www.kevmundial.com/board/index.php?action=mlist;sort=AIM;start=0
« Last Edit: July 03, 2005, 10:08:45 PM by LiL_J »
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline mager

  • Jr. Member
  • **
  • Posts: 106
  • www.DnLForum.com
    • Dark and Light Forum
Re: AIM online/offline status
« Reply #1 on: June 01, 2005, 10:03:07 PM »
Thats cool, now, if there was a way to add it to my forum.. =P
http://www.DnLForum.com  Dark and Light Unofficial Forum

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: AIM online/offline status
« Reply #2 on: June 01, 2005, 10:04:15 PM »
That must be so inefficient.

-[Unknown]

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,561
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: AIM online/offline status
« Reply #3 on: June 01, 2005, 10:30:18 PM »
That must be so inefficient.

-[Unknown]

so how do you guys do it for yahoo?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: AIM online/offline status
« Reply #4 on: June 01, 2005, 10:37:39 PM »
We don't, I'm afraid.  Just the one icon.

-[Unknown]

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,561
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: AIM online/offline status
« Reply #5 on: June 02, 2005, 12:44:30 AM »
oh ok if i would like to do this modifications myself what files should i look at to seup the link?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: AIM online/offline status
« Reply #6 on: June 02, 2005, 12:49:28 AM »
Load.php, mainly.  Mamberlist.php... or maybe the template.

-[Unknown]

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,561
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: AIM online/offline status
« Reply #7 on: June 02, 2005, 07:03:00 AM »
something like this w/o the <?php ?> tags i just put the for the colors 2 show
Code: [Select]
<?php
&#39;aim&#39; => $profile[&#39;AIM&#39;] != &#39;&#39; && (empty($modSettings[&#39;guest_hideContacts&#39;]) || !$user_info[&#39;is_guest&#39;]) ? array(
&#39;name&#39; => &$profile[&#39;AIM&#39;],
&#39;href&#39; => &#39;aim:goim?screenname=&#39; . urlencode($profile[&#39;AIM&#39;]) . &#39;&amp;message=&#39; . $txt[&#39;aim_default_message&#39;],
&#39;link&#39; => &#39;<a href="aim:goim?screenname=&#39; . urlencode($profile[&#39;AIM&#39;]) . &#39;&amp;message=&#39; . $txt[&#39;aim_default_message&#39;] . &#39;"><img src="http://big.oscar.aol.com/&#39; . urlencode($profile[&#39;AIM&#39;]) . &#39;?on_url=http://kevmundial.com/images/online.bmp&off_url=http://kevmundial.com/images/offline.bmp" alt="&#39; . $profile[&#39;AIM&#39;] . &#39;" border="0" /></a>&#39;,
&#39;link_text&#39; => &#39;<a href="aim:goim?screenname=&#39; . urlencode($profile[&#39;AIM&#39;]) . &#39;&amp;message=&#39; . $txt[&#39;aim_default_message&#39;] . &#39;">&#39; . $profile[&#39;AIM&#39;] . &#39;</a>&#39;
) : array(&#39;name&#39; => &#39;&#39;, &#39;href&#39; => &#39;&#39;, &#39;link&#39; => &#39;&#39;, &#39;link_text&#39; => &#39;&#39;),
?>


i changed the img src on Load.php and Memberlist.php
on Memberlist.php i put this
Code: [Select]
<?php
&#39;aim&#39; => array(
&#39;name&#39; => $row[&#39;AIM&#39;],
&#39;href&#39; => !empty($row[&#39;AIM&#39;]) ? &#39;aim:goim?screenname=&#39; . $row[&#39;AIM&#39;] . &#39;&message=&#39; . $txt[&#39;aim_default_message&#39;] : &#39;&#39;,
&#39;link&#39; => !empty($row[&#39;AIM&#39;]) ? &#39;<a href="aim:goim?screenname=&#39; . $row[&#39;AIM&#39;] . &#39;&message=&#39; . $txt[&#39;aim_default_message&#39;] . &#39;" target="_blank"><img src="http://big.oscar.aol.com/&#39; . $row[&#39;AIM&#39;] . &#39;?on_url=&#39; . $settings[&#39;images_url&#39;] . &#39;/aim_on.gif&off_url=&#39; . $settings[&#39;images_url&#39;] . &#39;/aim_off.gif" alt="&#39; . $row[&#39;AIM&#39;] . &#39;" border="0" /></a>&#39; : &#39;&#39;
),
?>


example here
http://www.kevmundial.com/board/index.php?board=39;topic=343.1#msg1386

memberlist example
http://www.kevmundial.com/board/index.php?action=mlist;sort=AIM;start=0
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Dem0n

  • Full Member
  • ***
  • Posts: 520
  • Gender: Male
  • Word Lyfe!
    • TheTVStop
Re: AIM online/offline status
« Reply #8 on: June 07, 2005, 06:17:03 PM »
good job.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,561
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: AIM online/offline status
« Reply #9 on: June 07, 2005, 09:14:09 PM »
 thanks.  maybe [Unknown] makes it a default or move it to the tips n tricks side of the forum.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline deathwantsme

  • Jr. Member
  • **
  • Posts: 159
Re: AIM online/offline status
« Reply #10 on: October 29, 2005, 05:17:23 AM »
Does this mod actualy show if a user is online or offline of aim? If so, how does it do that?

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,561
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: AIM online/offline status
« Reply #11 on: October 29, 2005, 10:43:03 PM »
Does this mod actualy show if a user is online or offline of aim? If so, how does it do that?

Yea it does.  i need to update it for 1.1.  the way it does it is with this link http://big.oscar.aol.com/lilj625?on_url=http://kevmundial.com/images/online.bmp&off_url=http://kevmundial.com/images/offline.bmp its from aim.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline MF30

  • Jr. Member
  • **
  • Posts: 119
    • Futebol Tuga
Re: AIM online/offline status
« Reply #12 on: July 26, 2009, 08:36:16 PM »
Thanks JayBachatero. :P