|
Page 1 of 1
|
Fanshop 
Joined: March 2007
Posts: 56
Location:
|
 Flashchat In Icy Phoenix?
Hi al, how can i integrate flashchat in icy phoenix, i trying everyting but it´s don´t work, only a blue backgound it coming up when i loggin in...
Last edited by Fanshop on Fri 23 Mar, 2007 08:41; edited 1 time in total |
#1 Thu 22 Mar, 2007 19:28 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Xusqui 
Joined: August 2006
Posts: 211
Location:  C?rdoba
|
 Re: Flaashchat In Icy Phoenix?
That's a problem with flashchat and not with IP!!
I had the same problem with XS2 and it fixed alone after deleting and reinstalling!!
Greetz!
____________ Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
|
#2 Thu 22 Mar, 2007 23:57 |
|
Fanshop 
Joined: March 2007
Posts: 56
Location:
|
 Re: Flaashchat In Icy Phoenix?
I soo happy.. my flashchat working GREAT now... it was a the default language code problem..
but now..how can i make a block in the portal side so the users can see whos R in the chat ? i seek and seek but i not find some tutorial about that.
Thnaks for all help this site it´s great  and i R a simple novice .
Thanks for all help..
|
#3 Fri 23 Mar, 2007 22:46 |
|
Xusqui 
Joined: August 2006
Posts: 211
Location:  C?rdoba
|
 Re: Flaashchat In Icy Phoenix?
mmm... Wait... I did one for XS2... Wait a minute and I'll rescue it!!
--Edited--
Ok... I got it...
1.- In your chat folder there is a file called "chat_users.php" (I asume you have flashchat in a folder called "Chat")
Open /chat/chat_users.php
Replace the whole content with:
- <?php
-
- /**
- If this file is not in the FlashChat root folder, then change this
- path to the location of the inc/common.php file.
- */
- require_once('inc/common.php');
-
- ChatServer::purgeExpired();
-
- /**
- Retrieves the number of users who are chatting in any room.
- Leave the $room parameter empty to return the number of users in all room.
- */
- function numusers( $room = "" )
- {
- if($room) {
- $stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?");
- $rs = $stmt->process(SPY_USERID, $room);
- } else {
- $stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms
- WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL
- AND {$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");
- $rs = $stmt->process(SPY_USERID);
- }
-
- $rec = $rs->next();
-
- return $rec?$rec['numb']:0;
- }
-
- /**
- Retrieves a list of the users (by login ID) who are in $room.
- Leave the $room parameter empty to return a list of all users in all rooms.
- */
- function usersinroom( $room = "" )
- {
- $list = array();
-
- if($room) {
- $stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?");
- $rs = $stmt->process(SPY_USERID, $room);
- } else {
- $stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ?");
- $rs = $stmt->process(SPY_USERID);
- }
-
- while($rec = $rs->next())
- {
- $usr = ChatServer::getUser($rec['userid']);
- if($usr == null && $GLOBALS['fc_config']['enableBots']) $usr = $GLOBALS['fc_config']['bot']->getUser($rec['userid']);
- $list[] = array_merge($usr, $rec);
- }
-
- return $list;
- }
-
- /**
- Retrieves a list of all available rooms, as an array.
- */
- function roomlist()
- {
- $list = array();
-
- // populate $list with the names of all available rooms
- $stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL order by ispermanent");
- $rs = $stmt->process();
-
- while($rec = $rs->next()) $list[] = $rec;
-
- //result will be an array of arrays like ('id' => <room id>, 'updated' = <timestamp>, 'created' => <timestamp>, 'name' => <room name>, 'ispublic' => <public flag>, 'ispermanent' => <autoclose flag>)
- return $list;
- }
-
-
- $rooms = roomlist();
- $roomnumb = sizeof($rooms);
- $usernumb = numusers();
- ?>
- <center>
- <div style="text-align:center">Hay <?php echo numusers()?> usuarios en <?php echo $roomnumb?> salas.</div>
- <?php if($roomnumb) { ?>
- <table cellpadding="0" cellspacing="" border="0" class="forumline">
- <tr>
- <td class="genmed">ID</td>
- <td class="genmed">Sala</td>
- <td class="genmed">Nº</td>
- <td class="genmed">Quien</td>
- </tr>
- <?php foreach($rooms as $room) { ?>
- <tr>
- <td class="gensmall"><?php echo $room['id']?></td>
- <td class="gensmall"><?php echo $room['name']?></td>
- <td class="gensmall" algin="center"><?php echo numusers($room['id'])?></td>
- <td class="gensmall"><?php
- $users = usersinroom($room['id']);
- foreach( $users as $user ) {
- echo $user['login'] . "<br>";
- // echo "<a href="./profile.php?mode=viewprofile&u=". $user[id]. "">" . $user['login'] . "</a><br>";
- }
- ?>
- </td>
- </tr>
- <?php } ?>
- </table>
- <?php } ?>
- <div style="text-align:center"><input name="button" type="button" onClick="javascript:window.open('./chat/flashchat.php', 'chat', 'width=800, heignt=600, top=0, left=0, resizable');" value="Entrar al Chat >>"></div>
- </center>
Create a new file called /blocks/blocks_imp_chat_users.php with the following:
- <?php
- /***************************************************************************
- * blocks_imp_chat_users.php
- * -------------------
- * begin : Monday, Oct 2, 2006
- * copyright : (C) 2006 ka-tet corporation
- * website : http://www.ka-tet-corp.com
- * email : roland@ka-tet-corp.com
- *
- ***************************************************************************/
-
- /***************************************************************************
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- ***************************************************************************/
-
-
-
- if ( !defined('IN_PHPBB') )
- {
- die("Hacking attempt");
- }
-
- if(!function_exists(imp_chat_users_func))
- {
- function imp_chat_users_func()
- {
- global $template, $lang, $board_config;
- $template->assign_vars(array()
- );
- }
- }
- //call the function to output the block.
- imp_chat_users_func();
-
- ?>
Create a new file called templates/*/blocks/chat_users_block.tpl with the following content:
- <?php $directorio = fopen("http://www.ka-tet-corp.com/portal2.0/chat/chat_users.php", "r");
- while (!feof($directorio))
- {
- $bufer = fgets($directorio, 4096);
- echo $bufer;
- }
- fclose($directorio);
- ?>
Beware of the first line in this file:
- <?php $directorio = fopen("http://www.ka-tet-corp.com/portal2.0/chat/chat_users.php", "r");
$directorio shoud point to the complete url where the first file you modificated is: http://www.yourdomain.com/*/chat_directory/chat_users.php
Then you must only add the new block called "Chat Users" in the ACP.
Greetz!!
____________ Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
|
#4 Sun 25 Mar, 2007 21:49 |
|
darkone 
Joined: February 2007
Posts: 168
Location:
|
 Re: Flaashchat In Icy Phoenix?
Oh have to love the search feature. I have been wondering how I was going to get the users in the chat to display on the portal/forums. Flashchat forums had some help but no one has got the portal working for none of the phpbb forums.
Is there a particular version this works for I have pretty much the latest 4.7.10. There is a 4.7.11 but it just fixes a install bug issue and thats it.
Gonna try this when I get home and I will post my feedback. Thanks for the code Xusqui and I hope it works like a charm!
------
One more question. In the forum section would it be hard to include this list of users in flashchat in the 'whos online' block? Or is there code to add them to that block? I guess if there is not I can make the chat block global and just add it too the forum page.
Thanks
-D1-
____________ Check out my new website:
Adult Forums - A place where everyone can fit in.
Currently running v1.1.10.25 RC3
Edited by darkone, Fri 20 Apr, 2007 20:58: Had another question |
#5 Fri 20 Apr, 2007 19:51 |
|
darkone 
Joined: February 2007
Posts: 168
Location:
|
 Re: Flashchat In Icy Phoenix?
Ok this doesn't work on the newer versions of flash chat as far as I know or I did something wrong.
I have version 4.7.10 and 'chat_users.php' which should be in the root of the flashchat directory doesn't exist in this version. It's not in any of the directories and doesn't exist in package/source files. The inc/common.php is their and does exist. I tried just copying the file in the directory and making the block and it crashed the portal when trying to go to the page with that block on it.
So what do we do from here? Did flashchat just rename their files a bit and it's just a different file?
Can anyone help with the flashchat block for Icy ???? Please
Thx
-D1-
____________ Check out my new website:
Adult Forums - A place where everyone can fit in.
Currently running v1.1.10.25 RC3
|
#6 Sat 21 Apr, 2007 05:04 |
|
darkone 
Joined: February 2007
Posts: 168
Location:
|
 Re: Flashchat In Icy Phoenix?
Anyone else have FlashChat 4.7.+ installed that can give some insight on this?
____________ Check out my new website:
Adult Forums - A place where everyone can fit in.
Currently running v1.1.10.25 RC3
|
#7 Sun 22 Apr, 2007 21:12 |
|
darkone 
Joined: February 2007
Posts: 168
Location:
|
 Re: Flashchat In Icy Phoenix?
Bump....
Anyone using flashchat and icyphoenix together? If so is there a working block out there that shows flashchat users chatting and or code to show flashchat users in the who's online block?
Thanks
-D1-
____________ Check out my new website:
Adult Forums - A place where everyone can fit in.
Currently running v1.1.10.25 RC3
|
#8 Wed 25 Apr, 2007 18:26 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Flashchat In Icy Phoenix?
Please do not bump... there is no need.
Be patient.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#9 Thu 26 Apr, 2007 01:26 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
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
|
|
|
|