- This topic is empty.
-
AuthorPosts
-
November 30, 2012 at 6:04 am #41086
exino
Memberhello i have question…
i have download the simple chat.. Chat.zip very good!
but i wont personalize to remove login area ( maked ) remove post a message ( maked )
read external html ( maked ) i have put the folder who is the file.. and work… but not show css good!!
i can not solve this… this is external .html wit content ( from , to and message )
2012-11-30 11:50:22 AM NIKNAME TO NIKNAME AND MESSAGE
THIS IS A CSS FROM EXTERNAL FILE HTML
body {
font-family: arial, sans-serif;
font-size: 11px;
font-weight:bold;
color: #272727;
margin: 0 padding : 0;
}table {
width: 100%;
table-layout: fixed
}.title {
color: #272727;
background: #eef1f6;
border-bottom: 1px solid #d7dadf;
}.title tr td {
border-left: 1px solid #d7dadf;
padding-left: 10px;
}td {
width: 20%;
word-break: break-all;
word-wrap: break-word;
border-bottom: 1px solid #edeef2;
padding-left: 14px;
}.pagelist img {
vertical-align: middle;
border: medium none;
}.pagelist {
position: relative;
padding: 8px 0;
height: 12px;
background: #f8f9fd;
width: 350px;
}.pagelist a {
display: block;
background: url(page.gif) no-repeat;
width: 8px;
height: 10px;
float: right;
margin: 0 3px 0 3px;
}.pagelist a:hover {
display: block;
background: url(page.gif) no-repeat;
width: 8px;
height: 10px;
float: right;
margin: 2px 3px 0 3px;
}a.home {
background: url(home.gif) no-repeat;
float: right;
width: 18px;
height: 16px;
margin-top: -3px;
}.pagelist a:hover.home {
background: url(home.gif) no-repeat;
float: right;
width: 18px;
height: 16px;
margin-top: -2px;
}.footer {
width: 100%;
clear: both;
height: 1px;
font-size: 0px;
}.toptable {
border-top: 1px solid #d7dadf;
border-bottom: 1px solid #d7dadf;
}.bottomtable {
border-bottom: 1px solid #d7dadf;
border-top: 1px solid #d7dadf;
}.noboardertd {
border: none;
}a{
color:#888888;
text-decoration:none;
}a:hover{
text-decoration:underline;
}.titlebar{
float:left;
padding:8px 0;
height:12px;
color:#666666;
}.titlebar a{
text-decoration:none;
color:#666666;
font-weight:normal;
}.titlebar a:hover{
text-decoration:underline;
font-weight:normal;
}.timetd {
font-size: 9px;}
.datetd {
font-size: 9px;
}.fromtd {
color:red;
}.datetd {border: none;width:15%;}
.timetd {width:15%;}
.fromtd {width:15%;}
.totd {width:15%;}
.messagetd {width:40%;}
this appair good css but your no!can you help me?
i thig the problem is here
fwrite(fopen(‘chat.html’, ‘a’), ““. $nickname . “” . $message = str_replace(“n”, ” “, $message) . “n”);
November 30, 2012 at 6:06 am #116022Watson90
MemberNo offense, but it’s _really_ hard to understand your English.
Do you have a link to the website you’re talking about?
November 30, 2012 at 6:16 am #116023exino
Memberthe link is password protected…
the external html is
< table cellpadding="3" cellspacing="0">
2012-11-30 11:50:22 AM ginevra sibbio OLTRE AL GOMITO HO CONTUSIONI ANCHE ALLE COSTOLE November 30, 2012 at 6:17 am #116024exino
Member< table cellpadding="3" cellspacing="0">
2012-11-30 11:50:22 AM
nikname
niknameto
message
tr>
table>November 30, 2012 at 6:18 am #116025Watson90
MemberThe snippets of code you’re providing are useless in this situation. Maybe try and use [CodePen](http://codepen.io “”) but even this wont help us I don’t think…
November 30, 2012 at 6:24 am #116027November 30, 2012 at 6:38 am #116028Watson90
MemberSo what is your EXACT problem with the code you’ve given me?
November 30, 2012 at 6:40 am #116029exino
Memberthis is the file of chat
if(file_exists(‘chat.txt’)){
$lines = file(‘chat.txt’);
}
$log = count($lines);
break;case(‘update’):
$state = $_POST;
if(file_exists(‘chat.txt’)){
$lines = file(‘chat.txt’);
}
$count = count($lines);
if($state == $count){
$log = $state;
$log = false;}
else{
$text= array();
$log = $state + count($lines) – $state;
foreach ($lines as $line_num => $line)
{
if($line_num >= $state){
$text[] = $line = str_replace(“n”, “”, $line);
}}
$log = $text;
}break;
case(‘send’):
$nickname = htmlentities(strip_tags($_POST));
$reg_exUrl = “/(http|https|ftp|ftps)://[a-zA-Z0-9-.]+.[a-zA-Z]{2,3}(/S*)?/”;
$message = htmlentities(strip_tags($_POST));
if(($message) != “n”){if(preg_match($reg_exUrl, $message, $url)) {
$message = preg_replace($reg_exUrl, ‘‘.$url[0].’‘, $message);
}fwrite(fopen(‘chat.txt’, ‘a’), ““. $nickname . “” . $message = str_replace(“n”, ” “, $message) . “n”);
}
break;}
echo json_encode($log);
?>
November 30, 2012 at 6:41 am #116030exino
Memberi have changed .txt to .html and work but not appair good css
November 30, 2012 at 7:15 am #116037exino
Memberi wont make a chat monitor… i have one file .html and i wont monitor ever message
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.