Icy Phoenix
Old Customizations - FlashChat - How To Get It Working In ICY
bags [ Fri 20 Jul, 2007 15:12 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
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!!!
darkone [ Fri 20 Jul, 2007 15:43 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Use the phpbb2.0+ entry and you should be fine :)
bags [ Fri 20 Jul, 2007 18:01 ]
Post 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!!!
coolguy14783 [ Sun 22 Jul, 2007 02:41 ]
Post 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!!!
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>
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
'L_SEARCH_EXPLAIN' => $lang['Search_Explain'],
After add
'L_CHAT' => $lang['Chat'],
Save and upload
coolguy14783 [ Sun 22 Jul, 2007 02:55 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
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
<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
'L_SEARCH_EXPLAIN' => $lang['Search_Explain'],
One line after add
'L_CHAT' => $lang['Chat'],
'U_CHAT' => append_sid('chat.' . $phpEx),
Save and upload
bags [ Mon 23 Jul, 2007 10:18 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Really Great :)
thx a lot,
Bags!!!
drexful [ Sat 28 Jul, 2007 00:40 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Quote:
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
Code: [Download] [Hide] [Select]
Code: [Download] [Show]
<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
Code: [Download] [Hide] [Select]
Code: [Download] [Show]
'L_SEARCH_EXPLAIN' => $lang['Search_Explain'],
One line after add
Code: [Download] [Hide] [Select]
Code: [Download] [Show]
'L_CHAT' => $lang['Chat'],
'U_CHAT' => append_sid('chat.' . $phpEx),
Save and upload
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#
coolguy14783 [ Sat 28 Jul, 2007 23:29 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Quote:
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
Code: [Download] [Hide] [Select]
Code: [Download] [Show]
<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
Code: [Download] [Hide] [Select]
Code: [Download] [Show]
'L_SEARCH_EXPLAIN' => $lang['Search_Explain'],
One line after add
Code: [Download] [Hide] [Select]
Code: [Download] [Show]
'L_CHAT' => $lang['Chat'],
'U_CHAT' => append_sid('chat.' . $phpEx),
Save and upload
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#
True. Maybe I just like doing things manually, that's all. And also others can learn from it too.
mamagallo [ Sun 26 Aug, 2007 21:29 ]
Post 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:
reef_01 [ Mon 27 Aug, 2007 02:48 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
- #
- #-----[ 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
darkone [ Thu 30 Aug, 2007 16:11 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
... ops
darkone [ Thu 30 Aug, 2007 16:12 ]
Post 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 :)
carmelomvp [ Thu 30 Aug, 2007 20:45 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
flash chat is free? can anybody put the link of ttheir web?
darkone [ Fri 31 Aug, 2007 13:45 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
No you have to pay $5 for it so its basically free :)
mamagallo [ Tue 11 Sep, 2007 01:36 ]
Post 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
JHOSMAN [ Wed 12 Sep, 2007 16:50 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Enjoy! Thanks!

mamagallo [ Sun 30 Sep, 2007 16:00 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
my problem is the following one: I finish installing in the premises the Chat Flash so that it works integrated with the Ici and it goes of wonder, the problem comes when attempt to change to the Link of chat in the main menu of navigation that this to the left, by but which I put in the panel of configuration of cms and change the Link in the dynamic menu east really does not change in the Web, already proved everything, takes to 5 hours fighting with this and nothing, if I do clik on chat within the Control Panel of cms if it works, but for some reason does not change in the vestibule and continues pointing at ajax chat. The Link of the head where it says Vestibule, Chat, New, Profile, To look for, FAQ, To connect themselves)... if it works, but within the dynamic menu no. :? :?
mamagallo [ Fri 05 Oct, 2007 15:14 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Good I gave a solution him not very elegant, changing to the name of the original file and re naming chat.php like ajax_chat.php, but what matters it is that it works. Thanks for the idea and the data of like doing it, can see it working
Here :mryellow: :thanks: :up:
mamagallo [ Fri 12 Oct, 2007 17:22 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
hello, they excuse the annoyance, wanted to know if there is some form in which chat can add a Link to the block of the flash to return to the forum or to index? :shock:
Chaotic [ Sun 05 Oct, 2008 23:39 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
CrackerTracker is pretty aggravating and I wish there was an enable/disable switch in the ACP.
I'm having trouble installing this chat and it all happens on Step 3.5 (step_3.5.php). I get the infamous:
Quote:
CBACK CrackerTracker has detected a potential attack on this site with a worm or exploit script so the Security System stopped the script.
If you can see this page after including a new MOD into your board or after clicking on a link please contact the Board Administrator with this error message and a description what you have done before you could see this page, that the Admin has the possibility to fix the problem.
I've tried using the Doc Lopalong posted,
CBACK CrackerTracker Has Detected A Potential Attack, but still get the same alert from CrackerTracker when I make it to step 3.5 in the installer. The problem is I have no clue where to put:
define('CT_SECLEVEL', 'LOW');
because I cannot find:
define('IN_PHPBB', true);
in the step_3.5.php.
Here is the step_3.5.php file:
<?php
// formatting module dir name, to module name. artemK0
function performModuleName($name)
{
$name = str_replace('_', ' ', $name);
$return = '';
for($i = 0; $i < strlen($name); $i++)
{
if($i == 0)
{
$return = strtoupper($name[0]);
}
elseif($name[$i-1] == ' ')
{
$return .= strtoupper($name[$i]);
}
else
{
$return .= $name[$i];
}
}
return $return;
}
function selectFields($module_path, $module_id)
{
global $anchor_points;
$query = 'SELECT '.$GLOBALS['fc_config']['db']['pref'].'config.*, '.$GLOBALS['fc_config']['db']['pref'].'config_values.value
FROM '.$GLOBALS['fc_config']['db']['pref'].'config, '.$GLOBALS['fc_config']['db']['pref'].'config_values
WHERE '.$GLOBALS['fc_config']['db']['pref'].'config.parent_page = ? AND
'.$GLOBALS['fc_config']['db']['pref'].'config.id = '.$GLOBALS['fc_config']['db']['pref'].'config_values.config_id AND
'.$GLOBALS['fc_config']['db']['pref'].'config_values.instance_id = ?
ORDER BY _order';
$stmt = new Statement($query, 401);
$f = $stmt->process('modules', $_SESSION['session_inst']);
$fields = array();
$values = array();
$selected_key = -1;
$anchor_tmp = '';
while($v = $f->next())
{
$fields[$v['id']] = $v;
if ( $fields[$v['id']]['level_1'] == 'anchor' )
{
$anchor_tmp = $fields[$v['id']]['value'];
}
if ( $fields[$v['id']]['level_1'] == 'path' )
{
$values_search = explode(',', $fields[$v['id']]['value']);
if(array_search($module_path, $values_search) !== false)
{
$selected_key = array_search($module_path, $values_search);
}
}
$fields[$v['id']]['comment'] = addslashes($fields[$v['id']]['comment']);
if ($fields[$v['id']]['level_1'] != 'anchor' && $fields[$v["id"]]['level_1'] != 'path' && $fields[$v["id"]]['level_1'] != 'stretch')
{
$fields[$v['id']]['type'] = 'integer';
}
if ( $fields[$v['id']]['level_1'] == 'stretch' )
{
$fields[$v['id']]['type'] = 'boolean';
}
$fields[$v['id']]['info']=str_replace('"', "'", $fields[$v['id']]['info']);
$values_found = explode(',', $fields[$v['id']]['value']);
$values[$fields[$v['id']]['level_1']] = $values_found[$selected_key];
}
$tmp_arr = explode(',', $anchor_tmp);
$values['anchor'] = $tmp_arr[$selected_key];
$string_fields = '';
$dis = '';
foreach($fields as $k => $v)
{
if($k == 1191) continue;
switch($v['type'])
{
case 'combo':
if($v['level_1'] == 'path')
{
$field_elem = $module_path;
$field_elem .= '<input type="hidden" name="fld_'.$module_id.'_846" value="'.$module_path.'">';
$field_elem .= ' <a href="#" class="hintanchor" onMouseover="showhint(''.$v['info'].'', this, event, '200px')" >[?]</a>';
$string_fields .= '<tr><td width="30%" valign="top"><b>'.$v['title'].'</b>';
$string_fields .= '<input type="hidden" name="type_'.$module_id.'_'.$v['id'].'" value="'.$v['type'].'">';
$string_fields .= '<input type="hidden" name="name_'.$module_id.'_'.$v['id'].'" value="'.$v['title'].'">';
$string_fields .= '<input type="hidden" name="field_'.$module_id.'_'.$v['id'].'" value="'.$v['level_1'].'">';
$string_fields .= '</td><td width="70%" valign="top" nowrap>'.$field_elem.'</td></tr>';
continue;
}
$field_elem = '<select name="fld_'.$module_id.'_'.$v['id'].'" onChange="javascript:
if(this.value == -1)
{
';
for($j=848; $j<852; $j++)
{
$field_elem .= 'document.getElementById('inner_div_'.$module_id.'').style.display = 'block';';
}
$field_elem .='
}
else
{
';
for($j=848; $j<852; $j++)
{
$field_elem .= 'document.getElementById('inner_div_'.$module_id.'').style.display = 'none';';
}
$field_elem .='
}">';
foreach($anchor_points as $an_value => $an_name)
{
if($an_value == $values[$v['level_1']])
{
$field_elem .= '<option value="'.$an_value.'" selected>'.$an_name;
if($an_value != -1)
{
$dis = 'style="display:none"';
}
else
{
$dis = '';
}
}
else
{
$field_elem .= '<option value="'.$an_value.'">'.$an_name;
}
}
$field_elem .= '</select>';
$field_elem .= ' <a href="#" class="hintanchor" onMouseover="showhint(''.$v['info'].'', this, event, '200px')" >[?]</a>';
$string_fields .= '<tr><td width="30%" valign="top"><b>'.$v['title'].'</b>';
$string_fields .= '<input type="hidden" name="type_'.$module_id.'_'.$v['id'].'" value="'.$v['type'].'">';
$string_fields .= '<input type="hidden" name="name_'.$module_id.'_'.$v['id'].'" value="'.$v['title'].'">';
$string_fields .= '<input type="hidden" name="field_'.$module_id.'_'.$v['id'].'" value="'.$v['level_1'].'">';
$string_fields .= '</td><td width="70%" valign="top" nowrap>'.$field_elem.'</td></tr>';
break;
case 'boolean':
$radio_true = 'checked';
$radio_false = '';
if($values[$v['level_1']] == 'false')
{
$radio_true = '';
$radio_false = 'checked';
}
$field_elem = '<input type="Radio" name="fld_'.$module_id.'_'.$v['id'].'" '.$radio_true.' value="true" id="yes"><label for="yes">Yes</label>';
$field_elem .= '<input type="Radio" name="fld_'.$module_id.'_'.$v['id'].'" '.$radio_false.' value="false" id="no"><label for="no">No</label>';
$field_elem .= ' <a href="#" class="hintanchor" onMouseover="showhint(''.$v['info'].'', this, event, '200px')" >[?]</a>';
$string_fields .= '<tr><td width="30%" valign="top"><b>'.$v['title'].'</b>';
$string_fields .= '<input type="hidden" name="type_'.$module_id.'_'.$v['id'].'" value="'.$v['type'].'">';
$string_fields .= '<input type="hidden" name="name_'.$module_id.'_'.$v['id'].'" value="'.$v['title'].'">';
$string_fields .= '<input type="hidden" name="field_'.$module_id.'_'.$v['id'].'" value="'.$v['level_1'].'">';
$string_fields .= '</td><td width="70%" valign="top" nowrap>'.$field_elem.'</td></tr>';
$string_fields .= '<tr><td width="100%" valign="top" colspan="2">';
$string_fields .= '<div id="inner_div_'.$module_id.'" '.$dis.'>';
$string_fields .= '<table border="0" cellpadding="0" cellspacing="2" width="100%" class="body_table" style="border-top: 0px; border-bottom: 0px; border-left: 0px; border-right: 0px">';
break;
case 'integer':
$field_elem = '<input type="Text" size="5" name="fld_'.$module_id.'_'.$v['id'].'" value="'.$values[$v['level_1']].'"> <a href="#" class="hintanchor" onMouseover="showhint(''.$v['info'].'', this, event, '200px')" >[?]</a>';
$string_fields .= '<tr><td width="30%"><b>'.$v['title'].'</b>';
$string_fields .= '<input type="hidden" name="type_'.$module_id.'_'.$v['id'].'" value="'.$v['type'].'">';
$string_fields .= '<input type="hidden" name="name_'.$module_id.'_'.$v['id'].'" value="'.$v['title'].'">';
$string_fields .= '<input type="hidden" name="field_'.$module_id.'_'.$v['id'].'" value="'.$v['level_1'].'">';
$string_fields .= '</td><td width="70%" valign="top" nowrap>'.$field_elem.'</td></tr>';
break;
}
}
$string_fields .= '</table></div></td>';
return $string_fields;
}
// array of anchor points. artemK0
$anchor_points = array('-1' => 'Floating',
'0' => 'Center of space below Room List',
'1' => 'Top-Left of space below Room List',
'2' => 'Top-Right of space below Room List',
'3' => 'Bottom-Left of space below Room List',
'4' => 'Bottom-Right of space below Room List',
'5' => 'Top-Left of Title Bar',
'6' => 'Top-Center of Title Bar',
'7' => 'Top-Right of Title Bar',
'8' => 'Top-Left of Chat Pane',
'9' => 'Top-Right of Chat Pane',
'10' => 'Bottom-Right of Chat Pane',
'11' => 'Bottom-Left of Chat Pane',
'12' => 'Center of Chat Pane'
);
// array of installed modules. artemK0
$d = dir(INC_DIR . '../modules');
$entries = array();
$all_modules = array();
$i = 0;
while($entry = $d->read())
{
if($entry == '.' || $entry == '..' || $entry == 'readme.txt') continue;
$entries[] = $entry;
}
natcasesort($entries);
foreach($entries as $k=>$entry)
{
$entry_d = dir(INC_DIR . '../modules/'.$entry);
while($mod_name = $entry_d->read())
{
if(strpos($mod_name, '.swf') !== false)
{
$all_modules[$i] []= $entry;
$all_modules[$i] []= 'modules/'.$entry.'/'.$mod_name;
}
}
$entry_d->close();
$i++;
}
$d->close();
// [SUBMIT]---------------------------------------------------------------------
if( isset($_POST['module125']) && $_POST['module125'] )
{
$tmp_post = array();
foreach($_POST as $k => $v)
{
$exploded_k = explode('_', $k);
if($exploded_k[0] == 'fld' && $v == '')
{
$tmp_post[$k] = '0';
continue;
}
$tmp_post[$k] = $v;
if(isset($_POST['fld_'.$exploded_k[1].'_1191']) && $exploded_k[0] == 'field')
{
$tmp_post['fld_'.$exploded_k[1].'_1191'] = 'true';
}
elseif(!isset($_POST['fld_'.$exploded_k[1].'_1191']) && $exploded_k[0] == 'field')
{
$tmp_post['fld_'.$exploded_k[1].'_1191'] = 'false';
}
}
unset($_POST);
$_POST = $tmp_post;
$fld = getPOSTfields('fld_');
//validator rule
//greate array $valid_rule
//validator rule
require_once(INC_DIR . '../admin/cnf_validators.php');
$valid_rule = array();
foreach($fld['err'] as $k => $v)
{
if ( substr($fld['err'][$k]['field'],0,strpos($fld['err'][$k]['field'],"_")) == 'float')
{
$valid_rule[$k][0] = '^[0-9]+(,([0-9])+)*$';
$valid_rule[$k][1] = 1;
$valid_rule[$k][2] = $fld['err'][$k]['name'];
}
}
$errMsg = '';
//---------------------------------------------
reset($fld);
foreach($fld['err'] as $k => $v)
{
if( isset($valid_rule[$k]) )
{
$errMsg = value_validator($v['value'],$valid_rule[$k],$valid_rule[$k]['name']);
if($errMsg != '')
{
break;
}
}
}
if( $errMsg == '' )
{
foreach($fld['ins'] as $k=>$v)
{
$query = 'UPDATE '.$GLOBALS['fc_config']['db']['pref'].'config_values SET value=? WHERE config_id=?
AND instance_id = ? LIMIT 1';
$stmt = new Statement($query, 403);
$f = $stmt->process($v, $k, $_SESSION['session_inst']);
}
if($_SESSION['cache_type'] == 2/* || isset($_SESSION['fc_gender_cache']) */)
{
$step = 8;
}
else
{
if($_SESSION['forcms'] == 'defaultCMS')
{
$step = 4;
}
else
{
$step = 6;
}
}
redirect_inst('install.php?step='.$step);
}
else
{
if($errMsg == 'LANG_VALUE_REQUIRED')
{
$errMsg = 'Please insert data.';
}
elseif($errMsg == 'LANG_VALUE_INCORRECT')
{
$errMsg = 'Please insert correct value.';
}
}
}
$query = 'SELECT '.$GLOBALS['fc_config']['db']['pref'].'config.*, '.$GLOBALS['fc_config']['db']['pref'].'config_values.value
FROM '.$GLOBALS['fc_config']['db']['pref'].'config, '.$GLOBALS['fc_config']['db']['pref'].'config_values
WHERE '.$GLOBALS['fc_config']['db']['pref'].'config.parent_page = ? AND
'.$GLOBALS['fc_config']['db']['pref'].'config.id = '.$GLOBALS['fc_config']['db']['pref'].'config_values.config_id AND
'.$GLOBALS['fc_config']['db']['pref'].'config_values.instance_id = ?
ORDER BY _order';
$stmt = new Statement($query, 401);
$f = $stmt->process('modules', $_SESSION['session_inst']);
$enabled_buttons = array();
while($v = $f->next())
{
$exploded = explode(',', $v['value']);
foreach($exploded as $key => $val)
{
if($val == 'true')
{
$enabled_buttons[$key] = 'checked';
}
elseif($val == 'false')
{
$enabled_buttons[$key] = '';
}
}
}
$modules = '';
foreach($all_modules as $i => $mod)
{
$modules .= '<TR><TD width="10%" align="left" valign="top"><b>';
$modules .= performModuleName($mod[0]);
if(strpos(strtolower($mod[0]), 'video') !== false || strpos(strtolower($mod[0]), 'whiteboard') !== false )
{
$modules .= '<font color="#ff0000">*</font>';
}
$modules .= '</b></TD><TD width="10%" align="left" valign="top">
<input type="Hidden" name="type_'.$i.'_1191" value="boolean">
<input type="Hidden" name="name_'.$i.'_1191" value="Enabled:">
<input type="Hidden" name="field_'.$i.'_1191" value="enabled">
<input type="checkbox" '.$enabled_buttons[$i].' name="fld_'.$i.'_1191" id="enabled'.$i.'"> Enabled';
$modules .= '</TD><TD width="30%" align="left" valign="top">';
$modules .= '<input type="button" onClick="javascript:
if(document.getElementById('div_'.$i.'').style.display == 'none')
{
document.getElementById('div_'.$i.'').style.display = 'block'
}
else
{
document.getElementById('div_'.$i.'').style.display = 'none'
}" name="configure_'.$i.'" value="Configure"></TD></TR>';
$modules .= '<TR><TD colspan="3"><div id="div_'.$i.'" style="display:none"><table border="0" width="70%" cellpadding="0" cellspacing="5" class="body_table" style="border-top: 0px; border-bottom: 0px; border-left: 0px; border-right: 0px">
'.selectFields($mod[1], $i).'
</table></div>';
$modules .= '</TD></TR><TR><TD colspan="3"><HR size="1"></TD></TR>';
}
include INST_DIR . 'header.php';
?>
<style type="text/css">
#hintbox{ /*CSS for pop up hint box */
position:absolute;
top: 0;
background-color: lightyellow;
width: 150px; /*Default width of hint.*/
padding: 3px;
border:1px solid black;
font:normal 11px Verdana;
line-height:18px;
z-index:100;
border-right: 2px solid black;
border-bottom: 2px solid black;
visibility: hidden;
}
A.hintanchor{
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #0000FF;
font-weight: bold;
color: navy;
margin: 3px 8px;
}
A.hintanchor:hover{
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FF0000;
}
</style>
<script type="text/javascript">
/***********************************************
* Show Hint script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var horizontal_offset="9px" //horizontal offset of hint box from anchor link
/////No further editting needed
var vertical_offset="0" //horizontal offset of hint box from anchor link. No need to change.
var ie=document.all
var ns6=document.getElementById&&!document.all
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
}
return edgeoffset
}
function showhint(menucontents, obj, e, tipwidth){
if ((ie||ns6) && document.getElementById("hintbox")){
dropmenuobj=document.getElementById("hintbox")
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
dropmenuobj.style.visibility="visible"
obj.onmouseout=hidetip
}
}
function hidetip(e){
dropmenuobj.style.visibility="hidden"
dropmenuobj.style.left="-500px"
}
function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}
if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
else if (document.getElementById)
window.onload=createhintbox
</script>
<TR>
<TD colspan="2"></TD>
</TR>
<TR>
<TD colspan="2" class="subtitle">Step 4: Modules</TD>
</TR>
<TR>
<TD colspan="2" class="normal"> The following modules are available in the "modules" directory. We recommend that you only enable one module for best perforamnce. Enabling many modules can slow your Flash player.
</TD>
</TR>
<TR>
<TD colspan="2"><font color="#ff0000">*</font> module requires Flash Media Server or Red5 Server</TD>
</TR>
<FORM action="install.php?step=3.5" method="post" align="center" name="installInfo">
<input type="hidden" name="module" value="modules">
<input type="hidden" name="module125" value="modules125">
<TR>
<TD colspan="2">
<TABLE width="100%" class="body_table" cellspacing="5" cellpadding="0" border="0">
<TR>
<TD colspan="4"><?php echo $errMsg; ?></TD>
</TR>
<?php
echo $modules;
?>
</TABLE>
</TD>
</TR>
<TR>
<TD> </TD>
<TD align="right">
<INPUT type="submit" name="submitModule" value="Continue >>">
</TD>
</TR>
<?php
include INST_DIR . 'footer.php';
?>
I don't know if I'll need to add more than: define('CT_SECLEVEL', 'LOW'); or not.
I also enabled debug mode in CrackerTracker and it recommends this: (Not sure why it showed up upside down, lol.)
# EoM
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
$ct_ignorepvar = array('name_0_845','name_1_845','name_2_845','name_3_845','name_4_845','name_5_845','name_6_845','name_7_845','name_8_845','name_9_845','name_10_845','name_11_845','fld_0_846','fld_1_846','fld_2_846','fld_3_846','fld_4_846','fld_5_846','fld_6_846','fld_7_846','fld_8_846','fld_9_846','fld_10_846','fld_11_846');
define('CT_SECLEVEL', 'MEDIUM');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ FIND ]------------------------------------------
#
/chat/install.php
#
#-----[ OPEN ]------------------------------------------
#
That still didn't work. :(
Any help will greatly be appreciated. :)
Lopalong [ Mon 06 Oct, 2008 00:59 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
You can try any one of the following two:
Remove all of the other ct commands and after the <?php on a new line either add:
// CTracker_Ignore: File checked by human
or
define('CT_SECLEVEL', 'LOW');
If I get time today, I'll have a look at the whole MOD - Don't hold your breath. ;)
Chaotic [ Mon 06 Oct, 2008 01:02 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
I tried those two lines and still receive the same error. :(
I love CBACK! :evil:
Lopalong [ Mon 06 Oct, 2008 01:48 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
I will have look later today and re-write anything that's necessary to get it to work - That's if I can get it to work also. :twisted:
Chaotic [ Mon 06 Oct, 2008 04:37 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Won't you need the script? :D
DWho [ Mon 06 Oct, 2008 09:05 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
place this in the chat/install.php file
$ct_ignorepvar = array('name_0_845','name_1_845','name_2_845','name_3_845','name_4_845','name_5_845','name_6_845','
name_7_845','name_8_845','name_9_845','name_10_845','name_11_845','fld_0_846','fld_1_846','fld_2_846',
'fld_3_846','fld_4_846','fld_5_846','fld_6_846','fld_7_846','fld_8_846','fld_9_846','fld_10_846','fld_11_846');
define('CT_SECLEVEL', 'MEDIUM');
after
//error_reporting(E_ALL);
it worked for me...
:mryellow: :mryellow:
Lopalong [ Mon 06 Oct, 2008 09:35 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
@ Dwho,
He's having probs installing not running it. ;)
I also have it bridged and running and haven't had your problem - - - - YET! So we'll see what happens.
Notes:
The chat folder must be one level under your forum eg, /forum/chat
Step_3.5.php apparently starts the the bridge file for
phpBB 2.0.10 and above and phpBB2CMS.php is the actual bridge??
Here are some unfinished instructions for you to go on with, while I have a look at integrating the rest of it with CMS and templates etc. ;)
Download FlashChat From Here:
http://www.tufat.com/s_flash_chat_chatroom.htm
Unzip and Copy the chat folder and contents to your-forum/chat
Open:
your-forum/chat/install.php
Find <?php
After on a new line Add:
define('CT_SECLEVEL', 'LOW');
Open:
your-forum/chat/install_files/step_3.5.php
Find <?php
After on a new line Add:
define('CT_SECLEVEL', 'LOW');
Goto: http://your-forum/chat/install.php and follow the instructions (Use the phpBB 2.0.10 and above) until FlashChat is integrated with Icy Phoenix.
Rename or Delete: your-forum/chat/install.php
Rename or Delete: your-forum/chat/install_files folder
Open templates/mg_themes/overall_header.tpl
Find:
<!-- BEGIN switch_user_logged_out -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_user_logged_out -->
After Add:
<!-- BEGIN switch_user_logged_in -->
<a href="{FULL_SITE_PATH}chat/flashchat.php" target="_blank">FlashChat</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt=""
/>
<!-- END switch_user_logged_in -->
DWho [ Mon 06 Oct, 2008 10:35 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
I installed flashchat 2 days ago and ctracker blocked the installation the code above worked to install it....
my bad I meant the install.php file not the index.php file.... :oops:
I have corrected my post above...
the only problem after install is when in chat the profile link to a user does not take you to the users profile in ICY...
I tested this with a vanilla phpbb and it works fine so there is a slight differance in the code for icy ... I have not had a chance to look though I doubt I would know the changes....
FYI
Lopalong [ Mon 06 Oct, 2008 10:48 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Thanks for correcting it, because now it's something that I wont have to look out for. :mryellow:
There are probably other ways of doing it with cTracker, but both the install.php and install_files folder get removed anyway, so cTracker security becomes redundant for those files. ;)
The other problem (re profile) you mention is probably related to the path / permissions etc - don't know, but it's something that we can work out later.
Or I may look at that first - Will be in touch. 8)
Edit:
Re the profile: It appears that that is controlled here ->
phpBB2CMS.php
Find:
function getUserProfile($userid) {
if($user = $this->getUser($userid)) {
return (($id = $this->isLoggedIn()) && ($id == $userid))?"../profile.php?mode=editprofile":"../profile.php?mode=viewprofile&u=$userid";
} else {
return null;
}
}
But it's not even being addressed. So who's going to hit the FlashChat forums to find out where the path is from the "Profile" in the menu to this bridge. ? Not me! :P
And for all the good index.tpl is you may as well delete the content and add the script below so that FlashChat isn't accessible in any way from the web:
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
Still picking my way through this........ To be continued.
Chaotic [ Mon 06 Oct, 2008 23:15 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Lop,
You don't need to go any further. I didn't know everyone was using FlashChat_v4712. I was trying to install FlashChat_v508. That's why I was having problems installing.
So I went ahead and successfully installed v4712 with no problems.
Thanks!
Lopalong [ Tue 07 Oct, 2008 00:46 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Chaotic! :mryellow:
Good Googs! Now I can uninstall it, as I assume the Block / Index write-up is still relevant. :P
OT:
I had a look at FlashChat forums, and if anyone wants to know why I'm a stickler for descriptive titles here; then I challenge them to go there and find something.
What a mess! :censored:
Chaotic [ Tue 07 Oct, 2008 02:31 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Well, a change or two needs to be added regarding the Who Is Online section.
The formatting is all screwed up. The block code works perfectly though! :lol:
Lopalong [ Tue 07 Oct, 2008 08:10 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Ok mate, you owe me! :mricy:
Try this, but I don't know how it's going to wrap or what it's going to do. :(
And because there are two different applications for this modification - It needs two files.
So consider it a Beta-Test! :P
Copy the file in the .zip to /chat
Then apply the code here.
Open:
index_body.tpl
Find:
{USERS_TODAY_LIST}<br />
After Add:
<iframe height="12" frameborder="0" src="chat/info_embedded_wol.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>
Should get what's in the pic - But as I said - I don't know if it's going to behave or not. :roll:
Re:
Chaotic wrote:
I was trying to install FlashChat_v508.
I initially installed v508 and that's what I'm using?
Chaotic [ Tue 07 Oct, 2008 16:57 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Hey Loopy :) ,
I uploaded the file and made the code addition and it worked! Last night we had about 12 people in our chat room so I should be able to see if this thing wraps or not later on. I'll report back on that one!
I was reading on the Tufat forums about the latest version of FlashChat, v_508, and saw so many posts/threads of people that were pissed off at how buggy the script was. I'm glad I'm not using it, but it did have some nice modules that came with it. (MP3 player, audio/video, ads, radio, etc.)
Thanks again for the help mate! :lol:

Lopalong [ Tue 07 Oct, 2008 23:29 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
I thought that there were a lot of stupid questions there. Much like here! ;)
Buggy? Don't know! But bridging seems to be the main issue, and one can't blame the devs for not keeping up with all the changes to other software, when trying to focus on making their own product a lot better. :P
Anyway, I anxiously await your feedback. :mricy:
n1cks21 [ Sun 18 Jan, 2009 02:22 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
I have just installed Flash Chat and your above update however I have a few problems...
the above attachment works but displays the text in black how do I change it to white (yes I know it's a newbie question but I am pulling ny hair out trying to sort it)
and the other problem is now that I have installed Flash Chat I get the below error at the top of some pages ie if I click on the search link or the new link:-
Warning: main(./language/lang_en/lang_bbc_tags.php) [function.main]: failed to open stream: No such file or directory in /home/sites/my-site/public_html/includes/bbcode.php on line 107
Warning: main() [function.include]: Failed opening './language/lang_en/lang_bbc_tags.php' for inclusion (include_path='.:/usr/share/pear') in /home/sites/my-site/public_html/includes/bbcode.php on line 107
Warning: main(./language/lang_en/lang_bbcb_mg.php) [function.main]: failed to open stream: No such file or directory in /home/sites/my-site/public_html/includes/bbcode.php on line 108
Warning: main() [function.include]: Failed opening './language/lang_en/lang_bbcb_mg.php' for inclusion (include_path='.:/usr/share/pear') in /home/sites/my-site/public_html/includes/bbcode.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/my-site/public_html/includes/bbcode.php:107) in /home/sites/my-site/public_html/includes/sessions.php on line 473
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/my-site/public_html/includes/bbcode.php:107) in /home/sites/my-site/public_html/includes/sessions.php on line 474
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/my-site/public_html/includes/bbcode.php:107) in /home/sites/my-site/public_html/includes/page_header.php on line 1398
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/my-site/public_html/includes/bbcode.php:107) in /home/sites/my-site/public_html/includes/page_header.php on line 1404
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/my-site/public_html/includes/bbcode.php:107) in /home/sites/my-site/public_html/includes/page_header.php on line 1405
also my Shoutbox has stopped working a similar error message:-
Warning: main(./language/lang_en/lang_bbc_tags.php) [function.main]: failed to open stream: No such file or directory in /home/sites/my-site/public_html/includes/bbcode.php on line 107
Warning: main() [function.include]: Failed opening './language/lang_en/lang_bbc_tags.php' for inclusion (include_path='.:/usr/share/pear') in /home/sites/my-site/public_html/includes/bbcode.php on line 107
Warning: main(./language/lang_en/lang_bbcb_mg.php) [function.main]: failed to open stream: No such file or directory in /home/sites/my-site/public_html/includes/bbcode.php on line 108
Warning: main() [function.include]: Failed opening './language/lang_en/lang_bbcb_mg.php' for inclusion (include_path='.:/usr/share/pear') in /home/sites/my-site/public_html/includes/bbcode.php on line 108
please help before I go insane ahhhhhhhhhhhhhhhhhhhhh
oh by the way I am running IP 1.2.0.27c and flash chat 5010
flash chat works great, it's just screwed up my site
any help would be fantastic
Lopalong [ Sun 18 Jan, 2009 06:36 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
It appears that you have corrupted some files you have edited. Try using a different editor and put the cursor just before the <?php and backspace it three times. Sounds stupid - It's not - and then make sure you save the files as "Save As" txt file and not just "save". ;)
And also make sure you are uploading the files in Binary Mode. 8)
n1cks21 [ Sun 18 Jan, 2009 13:38 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
:D :D :D
that worked a treat thank you, however I still have the issue with the above patch as the text "( 0 users in 1 room )" is black and can hardly be read I could do with changing it to white, I managed to change the "Flash Chat:" text to white but am really struggling with the "( 0 users in 1 room )" text........
once again many thanks
Lopalong [ Sun 18 Jan, 2009 21:37 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
This is the script in the file and I don't have it installed, so you will have to play. ;)
<td class=row1"><strong>Flash Chat:</strong></td>
<td class=normal>( <?php echo $usernumb ?> user<?php if ($usernumb != 1) echo "s" ?> in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"; ?> )</td>
<td id="roomList">
<?php if($roomnumb) { ?>
<?php foreach($rooms as $room) { ?>
<td>♦ <strong><a href="#" onclick="javascript:toggleUserList('room_<?php echo $room['id']?>')"><?php echo $room['name']?> (<?php echo numusers($room['id']) ?>)</a></strong>
td class=row1"
td class=normal
I think "Normal" is the one you either need to change to match something already in the style_*.css or just add <style="font-color: nipple-pink;"> Lol!
<td>♦ <strong><a href - - - - -
You can change this to <td class="Whatever etc">♦ <strong><a href
n1cks21 [ Mon 19 Jan, 2009 01:09 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
could you explain in more detail as i have no idea where or what to look for in the style_*.css file, I have just spent hours trying to sort this out, I finally made these changes to your above script
.style1 {
color: #FFFFFF;
font-weight: bold;
and these changes:-
<td class=row1"><span class="style1">Flash Chat:</span></td>
<td class="style1">( <?php echo $usernumb ?> user<?php if ($usernumb != 1) echo "s" ?> in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"; ?> )</td>
<td id="roomList">
<?php if($roomnumb) { ?>
<?php foreach($rooms as $room) { ?>
<td class="style1">♦ <strong><a href="#" onClick="javascript:toggleUserList('room_<?php echo $room['id']?>')"><?php echo $room['name']?> (<?php echo numusers($room['id']) ?>)</a></strong>
but with no joy, the Flash Chat text is white but the other text ("( 1 user in 1 room ) ♦ (Room Name) (1) n1cks21") stays black (apart from the Room Name which is a blue color)
sorry about this but it's driving me nuts !!!!!!!!!!!!!!!!!!!
Lopalong [ Mon 19 Jan, 2009 02:55 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Shouldn't use digits in the .css ;)
Try this etc:
.style_a {
color: #FFFFFF;
font-weight: bold;
}
<td class="row1"><span class="style_a">Flash Chat:</span></td>
<td class="style_a">( <?php echo $usernumb ?> user<?php if ($usernumb != 1) echo "s" ?> in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"; ?> )</td>
<td id="roomList">
<?php if($roomnumb) { ?>
<?php foreach($rooms as $room) { ?>
<td class="style_a">♦ <strong><a href="#" onClick="javascript:toggleUserList('room_<?php echo $room['id']?>')"><?php echo $room['name']?> (<?php echo numusers($room['id']) ?>)</a></strong>
n1cks21 [ Mon 19 Jan, 2009 10:15 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
still no joy, I get the same result as before ("the Flash Chat text is white but the other text ("( 1 user in 1 room ) ♦ (Room Name) (1) n1cks21") stays black (apart from the Room Name which is a blue color)")
but I am not convinced I am putting the :-
.style_a {
color: #FFFFFF;
font-weight: bold;
}
code in the right place, I am putting it here :-
info_embedded_wol
#roomList { margin: 0; padding: 0; }
#roomList a { color: black; text-decoration: none; } #roomList a:hover { text-decoration: underline; }
....userList { margin-left: 7px; margin-right: 0; margin-bottom: 0; margin-top: 0; padding: 0; }
.style_a {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<script type="text/javascript">
function toggleUserList(id) {
if (l = document.getElementById(id)) {
if (l.style.display == '' || l.style.display == 'block') l.style.display = 'none';
else l.style.display = 'block';
}
return false;
}
</script>
</head>
<body>
<td class="row1"><span class="style_a">Flash Chat:</span></td>
<td class="style_a">( <?php echo $usernumb ?> user<?php if ($usernumb != 1) echo "s" ?> in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"; ?> )</td>
<td id="roomList">
<?php if($roomnumb) { ?>
<?php foreach($rooms as $room) { ?>
<td class="style_a">♦ <strong><a href="#" onClick="javascript:toggleUserList('room_<?php echo $room['id']?>')"><?php echo $room['name']?> (<?php echo numusers($room['id']) ?>)</a></strong>
aaaaaahhhhhhhhhhhhhhhhhhhhhhhhhh
Lopalong [ Mon 19 Jan, 2009 21:28 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
It appears that the style needs to be echoed along with the var calling the names etc.
You could ask darkone if he his going to run with this MOD to both fix it, and possibly upgrade it for the next version of IP.
If he says no, then I'll have a look at fixing it so that it is compatible with IP .css and the next version of IP. ;)
n1cks21 [ Tue 20 Jan, 2009 02:06 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Thanks, I have just sent a PM to darkone, but it doesnt look like he has been active since last week so I might have to wait for a while before I get an answer.
n1cks21 [ Wed 21 Jan, 2009 12:42 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
It appears that the style needs to be echoed along with the var calling the names etc.
You could ask darkone if he his going to run with this MOD to both fix it, and possibly upgrade it for the next version of IP.
If he says no, then I'll have a look at fixing it so that it is compatible with IP .css and the next version of IP. ;)
is there anything else I can try while I wait to hear back from darkone ????
n1cks21 [ Fri 23 Jan, 2009 22:08 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
It appears that the style needs to be echoed along with the var calling the names etc.
You could ask darkone if he his going to run with this MOD to both fix it, and possibly upgrade it for the next version of IP.
If he says no, then I'll have a look at fixing it so that it is compatible with IP .css and the next version of IP. ;)
is there anything else I can try while I wait to hear back from darkone ????
still heard nothing back for the darkone, I just want to bump this up as it is really causing me a headache ahhhhhhhhhhhhhh
n1cks21 [ Sat 31 Jan, 2009 02:21 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
It appears that the style needs to be echoed along with the var calling the names etc.
You could ask darkone if he his going to run with this MOD to both fix it, and possibly upgrade it for the next version of IP.
If he says no, then I'll have a look at fixing it so that it is compatible with IP .css and the next version of IP. ;)
is there anything else I can try while I wait to hear back from darkone ????
still heard nothing back for the darkone, I just want to bump this up as it is really causing me a headache ahhhhhhhhhhhhhh
:mrorange:
Lopalong [ Sat 31 Jan, 2009 08:11 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
In the next couple of days - I'll have a look at it and convert it to the new version of IP at the same time. ;)
DWho [ Sat 31 Jan, 2009 11:48 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
I have tried added this, well it works sometimes... the profile link does not link to an icy profile..(when you are in chat and click on a username) and I spent a few hours looking through the code to find out why... but could not find the answer it would seem icy has some different variables that are beyond my skills...
I wish you success with this one Lopalong as it is a great addon
Lopalong [ Sat 31 Jan, 2009 12:28 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
Without looking at it yet, I'm glad you mentioned it; as it is more than likely a re-direct (Sprint) whatever. But I will install it and see if I can debug it to do everything that's expected of it for IP - Stand by! As I may want some beta testers. :P
Edit:
@n1cks
Find this line and after 10px; add color:#FFFFFF;
body { background-color: transparent; margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; font-size: 10px;}
n1cks21 [ Sun 01 Feb, 2009 01:04 ]
Post subject: Re: FlashChat - How To Get It Working In ICY
@n1cks
Find this line and after 10px; add color:#FFFFFF;
body { background-color: transparent; margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; font-size: 10px;}
In which file ??? I assumed you meant info_embedded_wol.php but I couldnt find it....... :oops: :oops: