https://www.icyphoenix.com/viewtopic.php?f=35&t=3852&p=26257#p26257 ----------------------------------- KasLimon Sun 16 Mar, 2008 16:03 Re: Php121 Instant Messenger ----------------------------------- It will not be easy at all to add it into a block... I'll try later. To show it in current online list: [spoiler][b]Undo all changes you've done to[/b] [i]forum.php[/i] [b]Open[/b] [i]includes/users_online_block.php[/i] [b]Find[/b][code linenumbers=false]$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level,[/code] [b]In-line, find[/b][code linenumbers=false]u.user_level[/code] [b]In-line after, add[/b][code linenumbers=false], u.php121_user_chatting[/code] [b]Find[/b][code linenumbers=false] $user_online_link = colorize_username($row['user_id']);[/code] [b]Replace with[/b][code linenumbers=false] //***PHP121*** $php121 = ''; if ( ($row['php121_user_chatting'] != 0) && ($row['php121_user_chatting'] != NULL )&& (time()-$row['php121_user_chatting']) < 90 ) { $php121 = " Send instant message"; } //***END PHP121*** $user_online_link = colorize_username($row['user_id']) . $php121;[/code] [b]Find[/b][code linenumbers=false] $user_online_link = '' . colorize_username($row['user_id']) . '';[/code] [b]Replace with[/b][code linenumbers=false] $user_online_link = '' . $user_online_link . '';[/code][/spoiler] Greets!