Si hai ragione, allora sarò più preciso,
ho un account su altervista, e se non erro ha un database MySql.
Poi,
le istruzioni non sono molto "esaurienti" sono riuscito a fare solo il 1° punto
che dice:
Configuration settings
----------------------
The primary configuration settings necessary for chat to function must be in the file lib/config.php
You will need to create this file. An example config file can be found in lib/config.php.example
Duplicate this file and save it as config.php once you have filled out at least the following four fields:
$config['dbConnection']['host'] = 'your_database_hostname';
$config['dbConnection']['user'] = 'your_database_username';
$config['dbConnection']['pass'] = 'your_database_password';
$config['dbConnection']['name'] = 'your_database_name';
In most cases, chat will function with only these fields filled out and you can proceed to step 2.
If your host does not use mysqli you will need to change the connection type field:
$config['dbConnection']['type'] = null;
If this is set to "null" it defaults to "mysqli" if existing, else to "mysql".
You can reference an existing database connection link or object by changing:
$config['dbConnection']['link'] = null;
If this is set to null, a new database connection is created.
che tradotto(male):
mpostazioni di configurazione
----------------------
Le impostazioni di configurazione primaria necessaria per la chat per funzionare deve essere nel file lib / config.php
Sarà necessario creare questo file. Un esempio di file di configurazione possono essere trovati in lib / config.php.example
Duplica questo file e salvarlo come file config.php dopo aver compilato almeno le seguenti quattro settori:
$ config ['host'] ['DbConnection'] = 'your_database_hostname';
$ config ['user'] ['DbConnection'] = 'your_database_username';
$ config ['pass'] ['DbConnection'] = 'your_database_password';
$ config ['name'] ['DbConnection'] = 'your_database_name';
Nella maggior parte dei casi, chat funziona solo con questi campi compilata e si può passare alla fase 2.
Se il tuo host non usa mysqli sarà necessario modificare il campo tipo di connessione:
$ config ['type'] ['DbConnection'] = null;
Se questo è impostato su "null"è predefinito a "mysqli", se esistente, altrimenti a "MySQL".
È possibile fare riferimento a un collegamento esistente di connessione al database o un oggetto da cambiare:
$ config ['link'] ['DbConnection'] = null;
Se questo è impostato su null, una connessione al database viene creato un nuovo.
Il secondo punto dice:
2. Channel settings:
-----------------
Edit channels in lib/data/channels.php.
Each channel must have a unique id (the $channels array index) and a unique name.
Whitespace in the channel names will be converted to the underscore "_".
che tradotto(male):
2. Canale impostazioni:
-----------------
Modificare i canali in lib / data / channels.php.
Ogni canale deve avere un ID univoco (l'array $ canali di indice) e un nome univoco.
Gli spazi bianchi nei nomi dei canali verranno convertiti in sottolineatura "_".
Non capisco cosa devo fare
il file dove mi indirizza dice:
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/
// List containing the custom channels:
$channels = array(100);
$channels = array(101);
// Sample channel list:
$channels[0] = 'Public';
$channels[1] = 'Private';
?>
Cosa devo fare io?