|
Page 5 of 5
|
n1cks21 
Joined: May 2008
Posts: 99
Location:
|
 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
|
#61 Sat 31 Jan, 2009 02:21 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Inactive User
|
 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.
|
#62 Sat 31 Jan, 2009 08:11 |
|
DWho 
Joined: August 2006
Posts: 1307
Location:  hampshire
|
 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
____________ Mods and themes for Icy Phoenix 1.3
IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
|
#63 Sat 31 Jan, 2009 11:48 |
|
Inactive User
|
 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.
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;}
|
#64 Sat 31 Jan, 2009 12:28 |
|
n1cks21 
Joined: May 2008
Posts: 99
Location:
|
 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.......
|
#65 Sun 01 Feb, 2009 01:04 |
|
Inactive User
|
 Re: FlashChat - How To Get It Working In ICY
Was there the last time I looked.
Anyway, this is a better way of doing even though both do roughly the same thing, this one gives more options.
Just find the colours in the <Style> and change to suit your forum.
The next version may be integrated with Icy Phoenix - Maybe not.
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
/**
If this file is not in the FlashChat root folder, then change this
path to the location of the inc/common.php file.
*/
$GLOBALS['my_file_name'] = 'info_embedded';
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=?",214);
$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' , 54 );
$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();
?>
<html>
<head>
<title>Who's in the chat?</title>
<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {
background-color: transparent;
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 10px;
color: orange;
}
.normal {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
margin: 0; padding: 0;
text-align: center;
color: green;
}
#roomList { color: pink; margin: 0; padding: 0; }
#roomList a { color: pink; text-decoration: none; }
#roomList a:visited { color: pink; text-decoration: none; }
#roomList a:hover, a:active { text-decoration: underline; }
.userList {
margin-left: 7px;
margin-right: 0;
margin-bottom: 0;
margin-top: 0;
padding: 0;
color: purple;
}
-->
</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"><strong>Flash Chat:</strong></td>
<td><span class="normal">( <?php echo $usernumb ?> user<?php if ($usernumb != 1) echo "s" ?> in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"; ?> )</span></td>
<td><span 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>
<?php
$users = usersinroom($room['id']);
if ($users) {
echo '<td><span class="userList" id="room_'.$room['id'].'">';
foreach( $users as $user ) {
echo '<td>'.$user['login'].'</span></td>'; }
echo '</span></td>';
}
?> </td>
<?php } ?>
<?php } ?>
</td>
</body>
</html>
|
#66 Sun 01 Feb, 2009 01:43 |
|
n1cks21 
Joined: May 2008
Posts: 99
Location:
|
 Re: FlashChat - How To Get It Working In ICY
|
#67 Sun 01 Feb, 2009 02:33 |
|
Inactive User
|
 Re: FlashChat - How To Get It Working In ICY
Hehehehe!
It certainly shows where to change what,
That's why I didn't use color: #whatever.
|
#68 Sun 01 Feb, 2009 02:46 |
|
n1cks21 
Joined: May 2008
Posts: 99
Location:
|
 Re: FlashChat - How To Get It Working In ICY
well thanks agian and keep up the good work you do on here  my next change is to attempt your "reducing the theme to 80%" mod
|
#69 Sun 01 Feb, 2009 02:58 |
|
Inactive User
|
 Re: FlashChat - How To Get It Working In ICY
Well Mate,
I don't know who is going to upgrade this FlashChat for the next version of Icy Phoenix because I've just spent a couple of hours with it, and the "New" constants replacing the bridge vars are not making any sense to FlashChat Script.
Even with my limited experience - When FlashChat throws errors from its own script because of the way the bridge constants are newly defined, the whole thing becomes a mess because it's not the normally accepted way of doing things as seen by others.
MyBB did the same with some of their script - and no add-ons and bridge files were either modified or supported any longer by any of the creators who just simply wiped them off. Coppermine is one example.
So! It's either over to MG to sort this out, or someone needs to contact the creators of FlashChat - Because I've just wiped it off my things to do list.
And possibly a lot of other things too.
|
#70 Sun 01 Feb, 2009 07:39 |
|
|
Page 5 of 5
|
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
|
|
|
|