Skip to content

ivenuss/chatlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat Log

GitHub All Releases GitHub last commit GitHub repo size

Description

Saves all posted user messages in database.

Database preview

ddisp

Web preview

ddisp

Installation:

connect to your mysql in databases.cfg

"chatlog"
{
    "driver"                        "mysql"
    "host"                          "localhost"
    "database"                      ""
    "user"                          ""
    "pass"                          ""
}

connect to your mysql in database.php

// DB hostname
$servername = "localhost";

// DB username
$username = "";

// DB password
$password = "";

// DB name
$dbname = "";

ConVars

sm_chatlog_cleartable_enabled "1" //Enable/Disable clearing table (1/0) 0 - disabled
sm_chatlog_cleartable_duration "1 MONTH" //How often will table restart

Note

Please, keep in mind I am not webdev and this is my second work with web development, so bugs may appear.