https://www.icyphoenix.com/viewtopic.php?f=35&t=2071 ----------------------------------- borbo Thu 24 May, 2007 00:03 Chatters In ViewOnline Block ----------------------------------- Hello again! Is there any way to view who is chatting in ajax chat in viewonline block at the bottom of my forum? ----------------------------------- borbo Fri 25 May, 2007 03:01 Re: Chatters In ViewOnline ----------------------------------- anybody??? Please? ----------------------------------- Mighty Gorgon Sat 26 May, 2007 01:32 Re: Chatters In ViewOnline Block ----------------------------------- It is possible, but I don't have the time to code it right now... Maybe it will be useful to create a full viewonline block for the CMS (currently there is a simple one). It's not difficult, I hope someone will try... :roll: ----------------------------------- Zuker Wed 30 May, 2007 02:23 Re: Chatters In ViewOnline Block ----------------------------------- U mean something like this? [img]http://www.icyphoenix.com/files/images/15/viewonline_ajax.gif[/img] Don't pay attention because user "Zuker" it's in viewonline, that's because i was taking the shot. I was in ajax chat with test user :D I made it i think, but i dunno how to separate nicks by commas :P I use [code linenumbers=false]($username . ", ")[/code] at the moment ----------------------------------- borbo Sat 02 Jun, 2007 22:10 Re: Chatters In ViewOnline Block ----------------------------------- hmmm I ment sobething very close to this... I'd like to add the "who is chatting" block somewhere in the portal ot in the forums main pge... Soorry for being so late... :( ----------------------------------- Zuker Sat 02 Jun, 2007 23:06 Re: Chatters In ViewOnline Block ----------------------------------- So you mean a block :D I'll play with it tonigh ----------------------------------- Zuker Sun 03 Jun, 2007 01:47 Re: Chatters In ViewOnline Block ----------------------------------- try this block and let me know ----------------------------------- borbo Sun 03 Jun, 2007 02:24 Re: Chatters In ViewOnline Block ----------------------------------- Wow...Thanks Zuker...Downloading ! I'll let you know! ----------------------------------- borbo Sun 03 Jun, 2007 02:35 Re: Chatters In ViewOnline Block ----------------------------------- It's working fine...Thanks Zuker you the man! :v: [ot]Please check this if you can help? http://www.icyphoenix.com/viewtopic.php?t=2195[/ot] ----------------------------------- Zuker Sun 03 Jun, 2007 02:54 Re: Chatters In ViewOnline Block ----------------------------------- You are welcome borbo i hope someone will help you there <:) ----------------------------------- vdp Tue 05 Jun, 2007 20:26 Re: Chatters In ViewOnline Block ----------------------------------- i've tried but i get this: [code linenumbers=false]Template->make_filename(): Error - template file not found: blocks/ajax_chat_viewonline_block.tpl[/code] *blocks_imp_ajax_chat_viewonline.php *ajax_chat_viewonline_block.tpl both files are installed in /portal/blocks/ any idea? sorry for my english :oops: ----------------------------------- hpl Tue 05 Jun, 2007 20:30 Re: Chatters In ViewOnline Block ----------------------------------- you must install ajax_chat_viewonline_block.tpl in ip_root/templates/mg_themes/blocks/ ----------------------------------- Labiri Tue 19 Jun, 2007 13:46 Re: Chatters In ViewOnline Block ----------------------------------- Sorry, I have this php code to see who is in chat (using Flash Chat) How can I insert it into Icy? [code linenumbers=false]query("SELECT * FROM ".$flashchatprefix."rooms WHERE ispublic IS NOT NULL"); $files = $DB->get_num_rows($result); // How many chatters are currently yacking in the rooms $result = $DB->query("SELECT userid, state, color, lang, roomid FROM ".$flashchatprefix."connections WHERE userid IS NOT NULL"); $cats = $DB->get_num_rows($result); $content .="
"; $content .= "  $chatrooms: $files
  $amtchatters: $cats
"; $content .="
"; // Lets print out a list of the rooms for all to see $content .= "
".$curchat."
"; $a = 1; $result = $DB->query("SELECT id, name FROM ".$flashchatprefix."rooms WHERE ispublic IS NOT NULL"); while(list( $id, $name) = mysql_fetch_row($result)) { $title2 = ereg_replace("_", " ", $name); $content .= "  $a- $title2
"; $a++; } unset($result); unset($cats); unset($files); // yeaaaaa its the php end thingy it means i have finished ?>[/code] ...and I didn't understand how to write the .tpl...... :shock: Edit: sorry for writing in italian, I traslated. I visit both forums and I have italian language on both, so I got confused :) ----------------------------------- Zuker Tue 19 Jun, 2007 14:12 Re: Chatters In ViewOnline Block ----------------------------------- Please visit icyphoenix.it for italian support ----------------------------------- Mighty Gorgon Wed 20 Jun, 2007 02:03 Re: Chatters In ViewOnline Block ----------------------------------- I'll check this... good work Zuker! :wink: