I don't undertsand how to manage users....
How can I integrate FlashChat so it can use icyPhoenix users?
When I run the /<chat>/install.php it ask me if I want to integrate it with an existing board, but I an't find IcyPhoenix :(
How do you do the user integration?
Bags!!!
FlashChat - How To Get It Working In ICY
Subject: Re: FlashChat - How To Get It Working In ICY
Use the phpbb2.0+ entry and you should be fine :)
Subject: Re: FlashChat - How To Get It Working In ICY
All works well but I like to know how to open a popup with the flashchat.
I mean, I made a link on forum header (near to "home", "forum" etc.) named "chat".
I'd like, if someone can help me, when the user click on "chat" the chat popup should be opened with automathic user login...
BAgs!!!
I mean, I made a link on forum header (near to "home", "forum" etc.) named "chat".
I'd like, if someone can help me, when the user click on "chat" the chat popup should be opened with automathic user login...
BAgs!!!
Subject: Re: FlashChat - How To Get It Working In ICY
Something like this (in the header links "Chat")?
If so, then follow these instructions
First open overall_header.tpl (or overall_header_mx.tpl or overall_header_sc.tpl [overall_header_xx.tpl], depending what templates you installed) in your template folder (ex. templates/mg_themes)
Then search for
After, add
You change the height and width to meet what you need
Then search for
One line after (or enter on your keyboard) add
Change url/to/chat to the directory your chat is located, along with the script (ex. chat/flashchat.php)
Save and upload
Next go to the directory "includes/"
Find page_header.php
Open it
Find
After add
Save and upload
Last edited by coolguy14783 on Sun 19 Aug, 2007 20:57; edited 5 times in total
bags wrote: [View Post]
Something like this (in the header links "Chat")?
If so, then follow these instructions
First open overall_header.tpl (or overall_header_mx.tpl or overall_header_sc.tpl [overall_header_xx.tpl], depending what templates you installed) in your template folder (ex. templates/mg_themes)
Then search for
After, add
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=600,width=800');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=600,width=800');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
You change the height and width to meet what you need
Then search for
<a href="{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
One line after (or enter on your keyboard) add
<a href="url/to/chat" onclick="return popitup('url/to/chat')">{L_CHAT}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
Change url/to/chat to the directory your chat is located, along with the script (ex. chat/flashchat.php)
Save and upload
Next go to the directory "includes/"
Find page_header.php
Open it
Find
After add
Save and upload
Last edited by coolguy14783 on Sun 19 Aug, 2007 20:57; edited 5 times in total
Subject: Re: FlashChat - How To Get It Working In ICY
Last edited by coolguy14783 on Sun 19 Aug, 2007 20:58; edited 1 time in total
To add chat as chat.php (such as this) and match the template, follow these instructions
Download the following attachment - FlashChatIP.zip
Extract the zip archive
Place chat.php in the directory where your icy is installed
Place chat_body.tpl in the template folder you are using (ex. templates/mg_themes)
Edit in chat_body.tpl
Change "url/to/chat" to your flashchat script location (ex. /chat/flashchat.php)
You can also change the width and height to what you want
Then go to the directory "/includes"
Open page_header.php
Find
One line after add
Save and upload
Download the following attachment - FlashChatIP.zip
Extract the zip archive
Place chat.php in the directory where your icy is installed
Place chat_body.tpl in the template folder you are using (ex. templates/mg_themes)
Edit in chat_body.tpl
<iframe src="url/to/chat" frameborder="0" width=100% height=600></iframe>
Change "url/to/chat" to your flashchat script location (ex. /chat/flashchat.php)
You can also change the width and height to what you want
Then go to the directory "/includes"
Open page_header.php
Find
One line after add
'L_CHAT' => $lang['Chat'],
'U_CHAT' => append_sid('chat.' . $phpEx),
'U_CHAT' => append_sid('chat.' . $phpEx),
Save and upload
Last edited by coolguy14783 on Sun 19 Aug, 2007 20:58; edited 1 time in total
FlashChatIP.zip | ||
Description: | ![]() Download |
|
Filename: | FlashChatIP.zip | |
Filesize: | 828 Bytes | |
Downloaded: | 170 Time(s) |
Subject: Re: FlashChat - How To Get It Working In ICY
Instead of doing all the work of making tpl files and custom php files like this, why not do it the way I did here? It only takes a few minutes.
http://www.icyphoenix.com/viewtopic.php?t=1761&start=9#
Quote:
Instead of doing all the work of making tpl files and custom php files like this, why not do it the way I did here? It only takes a few minutes.
http://www.icyphoenix.com/viewtopic.php?t=1761&start=9#
Subject: Re: FlashChat - How To Get It Working In ICY
True. Maybe I just like doing things manually, that's all. And also others can learn from it too.
drexful wrote: [View Post]
True. Maybe I just like doing things manually, that's all. And also others can learn from it too.
Subject: Re: FlashChat - How To Get It Working In ICY
I would like to use flash chat of tufat, but I did not understand like carrying out the process of integration with Icyphoenix, you could explain it a little more detailed.....es than I am quite clumsy with php, excuse my English :cry: :cry:
Subject: Re: FlashChat - How To Get It Working In ICY
Example in English:
Example in Spanish:
P.D: Sorry, my english is not very good
Code: [Download] [Hide]
- #
- #-----[ OPEN ]------------------------------------------
- #
- includes/constants.php
- #
- #-----[ FIND ]------------------------------------------
- #
- define('CONFIG_TABLE', $table_prefix . 'config');
- #
- #-----[ AFTER, ADD ]------------------------------------
- #
- define('CONNECTIONS', $table_prefix.'fc_connections');
- #
- #-----[ OPEN ]------------------------------------------
- #
- forum.php
- #
- #-----[ FIND ]------------------------------------------
- #
- // Generate the page
- #
- #-----[ BEFORE, ADD ]-----------------------------------
- #
- // FlashChat Who is connected in Chat
- $sql = "SELECT u.username, u.user_level, u.user_id
- FROM ". CONNECTIONS ." c, ". USERS_TABLE ." u
- WHERE u.user_id = c.userid
- ORDER BY u.username ASC";
- if ( !($result = $db->sql_query($sql)) )
- {
- message_die(GENERAL_ERROR, 'Could not get user data', '', __LINE__, __FILE__, $sql);
- }
- $chatnums = $db->sql_numrows($result);
- $user = array();
- while ( $row = $db->sql_fetchrow($result) )
- {
- $user[] = $row;
- }
- for($i = 0; $i < count($user); $i++)
- {
- $user_link = color_group_colorize_name($user[$i]['user_id']);
- $userlist .= ( $userlist != '' ) ? ', ' . $user_link : $user_link;
- }
- if ( $chatnums == 0 )
- {
- $l_chat_user_s = $lang['Chat_none'];
- }
- else
- {
- $l_chat_user_s = $userlist;
- }
- $template->assign_vars(array(
- 'CHAT_USERNAME' => sprintf($l_chat_user_s, $chatnums),
- 'CHAT_COUNT' => $chatnums,
- 'CHAT_ONLINE' => $lang['Chat_online'],
- 'CHAT_USER' => $lang['Chat_user'],
- 'CHAT_INFO' => $lang['Chat_info'])
- );
- #
- #-----[ OPEN ]------------------------------------------
- #
- templates/mg_themes/index_body.tpl
- #
- #-----[ FIND ]------------------------------------------
- #
- <td class="row1 row-center" rowspan="5" width="95" valign="middle">
- #
- #-----[ REPLACE WITH ]------------------------------
- #
- <td class="row1 row-center" rowspan="6" width="95" valign="middle">
- #
- #-----[ FIND ]------------------------------------------
- #
- <tr>
- <td class="row1">
- <span class="gensmall">
- {L_Online_today}<br />
- {L_USERS_TODAY} {L_USERS_LASTHOUR}<br />
- {ADMINS_TODAY_LIST}<br />
- {MODS_TODAY_LIST}<br />
- {USERS_TODAY_LIST}<br />
- </span>
- </td>
- </tr>
- #
- #-----[ AFTER, ADD ]------------------------------------
- #
- <tr>
- <td class="row1">
- <span class="gensmall">
- {CHAT_INFO}<br />
- {CHAT_ONLINE} <b>{CHAT_COUNT}</b><br />
- {CHAT_USER} {CHAT_USERNAME}<br />
- </span>
- </td>
- </tr>
- #
- #-----[ OPEN ]------------------------------------------
- #
- language/lang_english/lang_main.php
- #
- #-----[ FIND ]------------------------------------------
- #
- //$lang[''] = '';
- #
- #-----[ BEFORE, ADD ]-----------------------------------
- #
- $lang['Chat_none'] = 'None';
- $lang['Chat_user'] = '<b>Users:</b>';
- $lang['Chat_online'] = 'Number of users inside the chat:';
- $lang['Chat_info'] = 'This data is based on users active inside the chat';
- #
- #-----[ OPEN ]------------------------------------------
- #
- language/lang_spanish/lang_main.php
- #
- #-----[ FIND ]------------------------------------------
- #
- //$lang[''] = '';
- #
- #-----[ BEFORE, ADD ]-----------------------------------
- #
- $lang['Chat_none'] = 'Ninguno';
- $lang['Chat_user'] = '<b>Usuarios:</b>';
- $lang['Chat_online'] = 'NĂºmero de usuarios dentro del chat:';
- $lang['Chat_info'] = 'Estos datos estan basados en la actividad de usuarios dentro del chat';
- #
- #-----[ SAVE/CLOSE ALL FILES ]---------------------------
- #
- # EoM
Example in English:
Example in Spanish:
P.D: Sorry, my english is not very good
Subject: Re: FlashChat - How To Get It Working In ICY
Last edited by darkone on Thu 30 Aug, 2007 16:13; edited 1 time in total
... ops
Last edited by darkone on Thu 30 Aug, 2007 16:13; edited 1 time in total
Subject: Re: FlashChat - How To Get It Working In ICY
I would use my comments at the beginning of the thread. I am not a huge php guru and made it work with only two file edits and I think it looks better in the who's online block than the previous post and has more functionality because it lists your rooms and who is in them. Just my opinion thou :)
Subject: Re: FlashChat - How To Get It Working In ICY
flash chat is free? can anybody put the link of ttheir web?
Subject: Re: FlashChat - How To Get It Working In ICY
No you have to pay for it so its basically free :)
Subject: Re: FlashChat - How To Get It Working In ICY
I have the Icy within a folder and wanted to place the flash chat in a different folder, civil employee with the changes that have proposed or would have to make something different? :?
I made some questions on integration with the Icy in the forums of support of the flash chat and they did not know to say nothing to me, I know the flash chat a long time ago because I have a Web with osdate that is a system of dating created by the same people of tufat.com
I made some questions on integration with the Icy in the forums of support of the flash chat and they did not know to say nothing to me, I know the flash chat a long time ago because I have a Web with osdate that is a system of dating created by the same people of tufat.com
Page 2 of 5
You cannot post new topicsYou 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.1004s (PHP: 22% SQL: 78%)
SQL queries: 12 - Debug Off - GZIP Enabled