News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

AIM online/offline status

Started by JayBachatero, June 01, 2005, 09:25:51 PM

Previous topic - Next topic

JayBachatero

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

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

<?php
'aim' => array(
'name' => $row['AIM'],
'href' => !empty($row['AIM']) ? 'aim:goim?screenname=' $row['AIM'] . '&message=' $txt['aim_default_message'] : '',
'link' => !empty($row['AIM']) ? '<a href="aim:goim?screenname=' $row['AIM'] . '&message=' $txt['aim_default_message'] . '" target="_blank"><img src="http://big.oscar.aol.com/' $row['AIM'] . '?on_url=' $settings['images_url'] . '/aim_on.gif&off_url=' $settings['images_url'] . '/aim_off.gif" alt="' $row['AIM'] . '" border="0" /></a>' ''
),
?>



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

mager

Thats cool, now, if there was a way to add it to my forum.. =P
http://www.dnlforum.com  Dark and Light Unofficial Forum

[Unknown]

That must be so inefficient.

-[Unknown]

JayBachatero

Quote from: [Unknown] on June 01, 2005, 10:04:15 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

[Unknown]

We don't, I'm afraid.  Just the one icon.

-[Unknown]

JayBachatero

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

[Unknown]

Load.php, mainly.  Mamberlist.php... or maybe the template.

-[Unknown]

JayBachatero

something like this w/o the <?php ?> tags i just put the for the colors 2 show

<?php
'aim' => $profile['AIM'] != '' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => &$profile['AIM'],
'href' => 'aim:goim?screenname=' urlencode($profile['AIM']) . '&amp;message=' $txt['aim_default_message'],
'link' => '<a href="aim:goim?screenname=' urlencode($profile['AIM']) . '&amp;message=' $txt['aim_default_message'] . '"><img src="http://big.oscar.aol.com/' urlencode($profile['AIM']) . '?on_url=http://kevmundial.com/images/online.bmp&off_url=http://kevmundial.com/images/offline.bmp" alt="' $profile['AIM'] . '" border="0" /></a>',
'link_text' => '<a href="aim:goim?screenname=' urlencode($profile['AIM']) . '&amp;message=' $txt['aim_default_message'] . '">' $profile['AIM'] . '</a>'
) : array('name' => '''href' => '''link' => '''link_text' => ''),
?>



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

<?php
'aim' => array(
'name' => $row['AIM'],
'href' => !empty($row['AIM']) ? 'aim:goim?screenname=' $row['AIM'] . '&message=' $txt['aim_default_message'] : '',
'link' => !empty($row['AIM']) ? '<a href="aim:goim?screenname=' $row['AIM'] . '&message=' $txt['aim_default_message'] . '" target="_blank"><img src="http://big.oscar.aol.com/' $row['AIM'] . '?on_url=' $settings['images_url'] . '/aim_on.gif&off_url=' $settings['images_url'] . '/aim_off.gif" alt="' $row['AIM'] . '" border="0" /></a>' ''
),
?>



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


JayBachatero

 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

deathwantsme

Does this mod actualy show if a user is online or offline of aim? If so, how does it do that?

JayBachatero

Quote from: deathwantsme 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?

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

MF30


Advertisement: