Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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?
 



 
Edited by borbo, Fri 25 May, 2007 03:02: more specific
borboSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Chatters In ViewOnline 
 
anybody??? Please?
 



 
borboSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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

I made it i think, but i dunno how to separate nicks by commas
I use
Code: [Download] [Hide] [Select]
($username . ", ")
at the moment
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 



 
borboSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chatters In ViewOnline Block 
 
So you mean a block

I'll play with it tonigh
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: 244 Time(s)

 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chatters In ViewOnline Block 
 
Wow...Thanks Zuker...Downloading !

I'll let you know!
 



 
borboSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chatters In ViewOnline Block 
 
It's working fine...Thanks Zuker you the man!  


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

 



 
borboSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chatters In ViewOnline Block 
 
You are welcome borbo
i hope someone will help you there <:)
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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  
 



 
vdpSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chatters In ViewOnline Block 
 
you must install ajax_chat_viewonline_block.tpl  in ip_root/templates/mg_themes/blocks/
 



 
hplSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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......

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 
LabiriSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chatters In ViewOnline Block 
 
Please visit icyphoenix.it for italian support
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Chatters In ViewOnline Block 
 
I'll check this... good work Zuker!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron