Repaired Message Handler Chatzone

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Repaired Message Handler Chatzone

    <div align="center">Hello!</div>

    Chatzone is ready script the handler of a message.

    All bugs are corrected in him.

    The setup of a correction
    1. It is necessary to delete it in the database the old chat_letters table.
    2. It new chat_letters table to import. (letters.sql)
    3. To copy all of the files and to overwrite.
    To modify it ini.php the database data.

    Enjoy!
    Attached Files

    #2
    Hello!

    It enter.php it is necessary to delete the next part from a file:


    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
    ////////////////////////////////////////ShoutBox modul BEGIN///////////////////////////////////////
    echo "Shoutbox
    ";

    if(!isset($_GET[&#39;page&#39;])){
    $page = 1;
    } else {
    $page = $_GET[&#39;page&#39;];
    }
    $max_results = 1;
    $from = (($page * $max_results) - $max_results);

    $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM shoutmsgs"),0);
    $total_pages = ceil($total_results / $max_results);

    $sql = mysql_query("SELECT * FROM shoutmsgs ORDER BY id desc LIMIT $from, $max_results");
    while($row = mysql_fetch_array($sql))
    {
    $name = $row[&#39;name&#39;];
    $msg = $row[&#39;msg&#39;];
    $key = $row[&#39;id&#39;];
    include "./sm/convert_to_smiles.php";

    echo "<img src=\"star.gif\" alt=\"+\"/>
    $name shouts:
    $msg

    " ;
    }
    echo "<a href=\"add.php?id=$id&amp;pass=$pass\">New shout</a>
    ";
    echo "<a href=\"history2.php?id=$id&amp;pass=$pass\">Histor y</a>

    ";
    if($login[&#39;moder&#39;])
    echo "<a href=\"moder.php?id=$id&amp;pass=$pass&amp;mod=clr shout\">Delete</a>

    ";

    /////////////////////////////////////ShoutBox modul END! ////////////////////////////////////////////////

    </div>

    Comment


      #3
      here i have edited the code a bit if you dont mind......
      Code:
      ////////////////////////////////////////ShoutBox modul BEGIN///////////////////////////////////////
      echo "[b][size="1"]Shoutbox[/size][/b]
      ";
      
      $row = mysql_fetch_array(mysql_query("SELECT * FROM shoutmsgs  ORDER BY id desc LIMIT 1")); 
      $name = $row[&#39;name&#39;];
      $msg = $row[&#39;msg&#39;];
      $key = $row[&#39;id&#39;];
      include "./sm/convert_to_smiles.php";
      echo "<img src=\"star.gif\" alt=\"+\"/>[size="1"]
      [u][b]";
      echo &#39;[url="user.php?id=&#39;.$id.&#39;&amp;pass=&#39;.$pass.&#39;&amp;dblogin=&#39;.$name.&#39;&amp;search=1"]&#39;.$name.&#39;[/url] &#39;;
      echo "shouts:[/b][/u]
      $msg[/size]
      ";
      echo "[size="1"]<a href=\"add.php?id=$id&amp;pass=$pass\">New shout</a>[/size]
      ";
      echo "[size="1"]<a href=\"history2.php?id=$id&amp;pass=$pass\">History</a>[/size]
      
      ";
      if($login[&#39;moder&#39;]>0)
      echo "[size="1"]<a href=\"moder.php?id=$id&amp;pass=$pass&amp;mod=clrshout\">Delete</a>[/size]
      
      "; 
      
      /////////////////////////////////////ShoutBox modul END! ////////////////////////////////////////////////
      Advertise your mobile site for FREE with AdTwirl

      Comment


        #4
        He is not trouble. If you have a brainwave calm put it into it.

        Comment

        Working...
        X