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



 
FanshopSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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:
Code: [Download] [Hide]
  1. <?php  
  2.  
  3. /**  
  4. If this file is not in the FlashChat root folder, then change this  
  5. path to the location of the inc/common.php file.  
  6. */  
  7. require_once('inc/common.php');  
  8.  
  9. ChatServer::purgeExpired();  
  10.  
  11. /**  
  12. Retrieves the number of users who are chatting in any room.  
  13. Leave the $room parameter empty to return the number of users in all room.  
  14. */  
  15. function numusers( $room = "" )  
  16. {  
  17.     if($room) {  
  18.         $stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?");  
  19.         $rs = $stmt->process(SPY_USERID, $room);  
  20.     } else {  
  21.         $stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms  
  22.                               WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL  
  23.                               AND {$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");  
  24.         $rs = $stmt->process(SPY_USERID);  
  25.     }  
  26.  
  27.     $rec = $rs->next();  
  28.  
  29.     return $rec?$rec['numb']:0;  
  30. }  
  31.  
  32. /**  
  33. Retrieves a list of the users (by login ID) who are in $room.  
  34. Leave the $room parameter empty to return a list of all users in all rooms.  
  35. */  
  36. function usersinroom( $room = "" )  
  37. {  
  38.     $list = array();  
  39.  
  40.     if($room) {  
  41.         $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=?");  
  42.         $rs = $stmt->process(SPY_USERID, $room);  
  43.     } else {  
  44.         $stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ?");  
  45.         $rs = $stmt->process(SPY_USERID);  
  46.     }  
  47.  
  48.     while($rec = $rs->next())  
  49.     {  
  50.         $usr = ChatServer::getUser($rec['userid']);  
  51.         if($usr == null && $GLOBALS['fc_config']['enableBots']) $usr = $GLOBALS['fc_config']['bot']->getUser($rec['userid']);  
  52.         $list[] = array_merge($usr, $rec);  
  53.     }  
  54.  
  55.     return $list;  
  56. }  
  57.  
  58. /**  
  59. Retrieves a list of all available rooms, as an array.  
  60. */  
  61. function roomlist()  
  62. {  
  63.     $list = array();  
  64.  
  65.     // populate $list with the names of all available rooms  
  66.     $stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL order by ispermanent");  
  67.     $rs = $stmt->process();  
  68.  
  69.     while($rec = $rs->next()) $list[] = $rec;  
  70.  
  71.     //result will be an array of arrays like ('id' => <room id>, 'updated' = <timestamp>, 'created' => <timestamp>, 'name' => <room name>, 'ispublic' => <public flag>, 'ispermanent' => <autoclose flag>)  
  72.     return $list;  
  73. }  
  74.  
  75.  
  76. $rooms = roomlist();  
  77. $roomnumb = sizeof($rooms);  
  78. $usernumb = numusers();  
  79. ?>  
  80.         <center>  
  81.                         <div style="text-align:center">Hay <?php echo numusers()?> usuarios en <?php echo $roomnumb?> salas.</div>  
  82.                         <?php if($roomnumb) { ?>  
  83.                         <table cellpadding="0" cellspacing="" border="0" class="forumline">  
  84.                             <tr>  
  85.                                 <td class="genmed">ID</td>  
  86.                                 <td class="genmed">Sala</td>  
  87.                                 <td class="genmed">Nº</td>  
  88.                                 <td class="genmed">Quien</td>  
  89.                             </tr>  
  90.                             <?php foreach($rooms as $room) { ?>  
  91.                             <tr>  
  92.                                 <td class="gensmall"><?php echo $room['id']?></td>  
  93.                                 <td class="gensmall"><?php echo $room['name']?></td>  
  94.                                 <td class="gensmall" algin="center"><?php echo numusers($room['id'])?></td>  
  95.                                 <td class="gensmall"><?php  
  96.                                     $users = usersinroom($room['id']);  
  97.                                     foreach( $users as $user ) {  
  98.                                         echo $user['login'] . "<br>";  
  99.                                         // echo "<a href="./profile.php?mode=viewprofile&u=". $user[id]. "">" . $user['login'] . "</a><br>";  
  100.                                     }  
  101.                                     ?>  
  102.                                 </td>  
  103.                             </tr>  
  104.                             <?php } ?>  
  105.                         </table>  
  106.                         <?php } ?>  
  107.                         <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 &gt;&gt;"></div>  
  108.         </center> 


Create a new file called /blocks/blocks_imp_chat_users.php with the following:
Code: [Download] [Hide]
  1. <?php  
  2. /***************************************************************************  
  3. *      blocks_imp_chat_users.php  
  4. *          -------------------  
  5. *   begin     : Monday, Oct 2, 2006  
  6. *   copyright : (C) 2006 ka-tet corporation  
  7. *   website   : http://www.ka-tet-corp.com  
  8. *   email     : roland@ka-tet-corp.com  
  9. *  
  10. ***************************************************************************/  
  11.  
  12. /***************************************************************************  
  13. *  
  14. *   This program is free software; you can redistribute it and/or modify  
  15. *   it under the terms of the GNU General Public License as published by  
  16. *   the Free Software Foundation; either version 2 of the License, or  
  17. *   (at your option) any later version.  
  18. *  
  19. ***************************************************************************/  
  20.  
  21.  
  22.  
  23. if ( !defined('IN_PHPBB') )  
  24. {  
  25.     die("Hacking attempt");  
  26. }  
  27.  
  28. if(!function_exists(imp_chat_users_func))  
  29. {  
  30.     function imp_chat_users_func()  
  31.     {      
  32.         global $template, $lang, $board_config;  
  33.         $template->assign_vars(array()  
  34.         );  
  35.     }  
  36. }  
  37. //call the function to output the block.  
  38. imp_chat_users_func();  
  39.  
  40. ?> 


Create a new file called templates/*/blocks/chat_users_block.tpl with the following content:
Code: [Download] [Hide]
  1. <?php        $directorio = fopen("http://www.ka-tet-corp.com/portal2.0/chat/chat_users.php", "r");  
  2.         while (!feof($directorio))  
  3.         {  
  4.             $bufer = fgets($directorio, 4096);  
  5.             echo $bufer;  
  6.         }  
  7.         fclose($directorio);  
  8. ?> 


Beware of the first line in this file:
Code: [Download] [Hide]
  1. <?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.
 
XusquiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
darkoneSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
darkoneSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
darkoneSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
darkoneSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
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