Chatters In ViewOnline Block


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?

Subject: Re: Chatters In ViewOnline
anybody??? Please?

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:

Subject: Re: Chatters In ViewOnline Block
U mean something like this?

viewonline_ajax

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: [Download] [Hide] [Select]
($username . ", ")
at the moment

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... :(

Subject: Re: Chatters In ViewOnline Block
So you mean a block :D

I'll play with it tonigh

Subject: Re: Chatters In ViewOnline Block
try this block and let me know


ajax_chat_viewonline.rar
Description:  
Download
Filename: ajax_chat_viewonline.rar
Filesize: 1.73 KB
Downloaded: 283 Time(s)

Subject: Re: Chatters In ViewOnline Block
Wow...Thanks Zuker...Downloading !

I'll let you know!

Subject: Re: Chatters In ViewOnline Block
It's working fine...Thanks Zuker you the man! :v:


 
Off Topic
:
Please check this if you can help? http://www.icyphoenix.com/viewtopic.php?t=2195

Subject: Re: Chatters In ViewOnline Block
You are welcome borbo
i hope someone will help you there <:)

Subject: Re: Chatters In ViewOnline Block
i've tried but i get this:

Code: [Download] [Hide] [Select]
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:

Subject: Re: Chatters In ViewOnline Block
you must install ajax_chat_viewonline_block.tpl in ip_root/templates/mg_themes/blocks/

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?

Code: [Download] [Hide] [Select]
<?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 .= "&nbsp;&nbsp;$chatrooms: <b>$files</b><br>&nbsp;&nbsp;$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 .= "&nbsp;&nbsp;$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 :)

Last edited by Labiri on Thu 21 Jun, 2007 21:48; edited 1 time in total
Profile PM  
Subject: Re: Chatters In ViewOnline Block
Please visit icyphoenix.it for italian support

Subject: Re: Chatters In ViewOnline Block
I'll check this... good work Zuker! :wink:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.3145s (PHP: 7% SQL: 93%)
SQL queries: 16 - Debug Off - GZIP Enabled