Icy Phoenix
Old Support Topics - Chatters In ViewOnline Block
borbo [ Thu 24 May, 2007 00:03 ]
Post subject: 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 ]
Post subject: Re: Chatters In ViewOnline
anybody??? Please?
Mighty Gorgon [ Sat 26 May, 2007 01:32 ]
Post subject: 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 ]
Post subject: Re: Chatters In ViewOnline Block
U mean something like this?
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
at the moment
borbo [ Sat 02 Jun, 2007 22:10 ]
Post subject: 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 ]
Post subject: Re: Chatters In ViewOnline Block
So you mean a block :D
I'll play with it tonigh
Zuker [ Sun 03 Jun, 2007 01:47 ]
Post subject: Re: Chatters In ViewOnline Block
try this block and let me know
borbo [ Sun 03 Jun, 2007 02:24 ]
Post subject: Re: Chatters In ViewOnline Block
Wow...Thanks Zuker...Downloading !
I'll let you know!
borbo [ Sun 03 Jun, 2007 02:35 ]
Post subject: Re: Chatters In ViewOnline Block
It's working fine...Thanks Zuker you the man! :v:
Zuker [ Sun 03 Jun, 2007 02:54 ]
Post subject: Re: Chatters In ViewOnline Block
You are welcome borbo
i hope someone will help you there <:)
vdp [ Tue 05 Jun, 2007 20:26 ]
Post subject: Re: Chatters In ViewOnline Block
i've tried but i get this:
Template->make_filename(): Error - template file not found: blocks/ajax_chat_viewonline_block.tpl
*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 ]
Post subject: 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 ]
Post subject: 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?
<?php
/********************************************************/
/* Flashchat block */
/* By: Ice2003 */
/* */
/* Copyright 2005 and Beyond by Ice2003 */
/********************************************************/
global $DB;
$flashchatprefix = "phpbb_fc"; //Edit this to refelect the prefix of flashchat ie _fc_ or smf_fc_ ect,ect
// Don't change anything under this line or your server will self destruct :)
$curchat = "Current Chat Rooms";
$chatrooms = "Chat Rooms ";
$amtchatters = "Current Chatters";
// ok lets count how many rooms are available
$result = $DB->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 .="<center><img src='$sitepath/.../rooms.gif'></center>";
$content .= " $chatrooms: <b>$files</b><br> $amtchatters: <b>$cats</b><br></b>";
$content .="<center><img src='$sitepath/.../users.gif'></center>";
// Lets print out a list of the rooms for all to see
$content .= "<center><b>".$curchat."</b></center>";
$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- <a href="/forum/chat/flashchat.php?lang=en&room=$id">$title2</a><br>";
$a++;
}
unset($result);
unset($cats);
unset($files);
// yeaaaaa its the php end thingy it means i have finished
?>
...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 ]
Post subject: Re: Chatters In ViewOnline Block
Please visit icyphoenix.it for italian support
Mighty Gorgon [ Wed 20 Jun, 2007 02:03 ]
Post subject: Re: Chatters In ViewOnline Block
I'll check this... good work Zuker! :wink: