We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Integration from ET-Chat v3.0.7 | Forum

W.C
W.C Oct 15 '15
hello,

i want to try out the et-chat. so far, the chat is running, but now i want to integrated in oxwall.

the coder from et-chat, provide a small script for this.

<?php
session_start();
 
$username = $_SESSION['etchat_username'];
$gender = $_SESSION['etchat_gender']; //[optional] 'f' or 'm' system default 'n' if unset
 
$_SESSION['etchat_db1_logout_url']="http://www.Ihre_Webseite.de/aus_dem_chat_ausgeloggt.html";
 
##############################################################
# DO NOT EDIT BELOW ###############################################
##############################################################
 
function __autoload($class_name) {
        require_once ('class/'.$class_name.'.class.php');         
}
 
// initialise
new CheckUserName(true, $username, $gender);
 
?>


what i must change into this code, that the username will transfer right?

i think, that i must edit this lines:

$username = $_SESSION['etchat_username'];
$gender = $_SESSION['etchat_gender']; //[optional] 'f' or 'm' system default 'n' if unset

but i tested with username and n, it dont work.

with best regards to all.
The Forum post is edited by W.C Oct 15 '15