Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End chat monitor

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #41086
    exino
    Member

    hello 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”);

    #116022
    Watson90
    Member

    @exino

    No offense, but it’s _really_ hard to understand your English.

    Do you have a link to the website you’re talking about?

    #116023
    exino
    Member

    the 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

    #116024
    exino
    Member

    < table cellpadding="3" cellspacing="0">

    2012-11-30

    11:50:22 AM
    nikname
    niknameto
    message

    #116025
    Watson90
    Member

    The 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…

    #116027
    exino
    Member
    #116028
    Watson90
    Member

    So what is your EXACT problem with the code you’ve given me?

    #116029
    exino
    Member

    this 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);

    ?>

    #116030
    exino
    Member

    i have changed .txt to .html and work but not appair good css

    #116037
    exino
    Member

    i wont make a chat monitor… i have one file .html and i wont monitor ever message

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Back End’ is closed to new topics and replies.