FreiChat related discussions

Got any problems? Then this is the best place for all your questions regarding FreiChat

96
6

Hello
I tried installing freichat in PHPvms, and the chat does work, but only on one page, the main page, and only when first typed in the adress bar, when we change page in the site, the chat disappears, and can only be seen again by accessing the site homepage, by url...

Any help would be greatly appreaciated

99
7
ln888 posted Dec 17 '11 at 9:56 pm

How can I set how long the residual chats stay in the chat room? I cannot find a parameter for that. Is there a timeout at some time? like 12 hours, or 24 hours? it would be difficult if too much data got in there.
maybe a button for a superuser to 'dump history' for the chatroom, like you can for your chat...
is that possible?
thnx :)

71
1
ln888 posted Dec 17 '11 at 9:46 pm

Is there a way I can sign up for any updates that spanish would be added to the languages???
I run an english website in mexico, and would love some more spanish users... and this language feature you have would be just the thing!!!!

THNX

57
3
ln888 posted Dec 17 '11 at 9:41 pm

OK...
I have the new v6.2.2 installed in my J!1.7.3 site... and it works FANTASTIC!!!
I have one HUGE question, and I am not sure if it an oversight by me, or something that I may need to core hack...

I have it set that only registered guests can see freichat chatroom and chat. fine, and also just 'buddies' for the chat. NOW... my site is still new-ish, and my 150 members are not too familiar yet with knowing that they should be making 'connections', and I would like to make it easy for them.

So.. can it be done that when people are in the general chatroom, and they are wanting to 'add' that person as a connection, that they could click on their name and it would take them to that person's profile?

Other than that, I am finding it to be FANTASTIC and a HUGE whoop and hollah in your direction!!!

136
10
kloper posted Dec 14 '11 at 6:50 pm

HELLO i INSTALLED freichat x 6.2.2 and installed the module mod_freichatx.zip from this link
http://code.google.com/p/freichatx-i/downloads/detail?name=mod_freichatx.zip&can=2&q=
i also change the posiotn of the friechatx module to position-0 in the module managment
the installation went fine but when i refresh my website, I don't get any text box.
i use joomla 1.7.1
and cb 1.7.1

help pls .

64
3
oab2005@yahoo.com posted Dec 14 '11 at 6:42 am

On a web site where i have installed FreiChat, users are able to chat successfully with other fellow users who have logged in. But sometimes the following problems occur-

1. When a user logs in into the chat room, what he sees continuously in the chat box is fetching data message. It does not change eventually to "No user online" if there are no other users online or show the names of users online if there are existing users online.

2. After a user leaves the chat room and logs out, it takes considerable time for the off line status of the logged out user to appear to the user at the other end of the chat room. It would appear as if the logged out user is still online.

Please, how can these problems be solved?

63
1
DjMaxi posted Dec 12 '11 at 6:31 pm

Hi!
Thank u 4 fantastic component of joomla(Frei Chat).
My question are:
Can I change the font size of public chat room?
In css of template maker i'm not find this option.
Thank u.
Simone

115
4
WolF posted Dec 10 '11 at 7:47 pm

I Installed the Module in my DZCP installation ..

I can see the chatwindow down reight ..

But i become the message

alert('module freichatx says: arg.php file not found!');"; } return 0; } } ?>

And nothing goes on .. i tryed some pathways but nothing ..
I Dont know what should i do know ..

Can anyone help me?

Here my index.html Headercode and the arg.php code also the main.php code

What is wrong??

1:index.html

<!--==========================FreiChatX====VERSIONS====5.X====START========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->

<?php $ses=null;

if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

if(is_file("/html/forum/inc/_templates_/version1.5/freichat/arg.php")){

require "/html/forum/inc/_templates_/version1.5/freichat/arg.php";

$temp_id = $ses . $uid;

return md5($temp_id);

}
else
{
echo "<script>alert('module freichatx says: arg.php file not
found!');";
}

return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="%5Bdir%5D/freichat/client/main.php?id=<?php%20echo%20%24ses;?>&xhash=<?php%20echo%20freichatx_get_hash(%24ses);%20?>"></script><script type="text/javascript" language="javascipt" src="http://evnix-dot-com.appspot.com/?time=<?php%20echo%20time();%20?>"></script><link rel="stylesheet" href="%5Bdir%5D/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"><!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--><!-- So to be at a safer side always replace the entire FreiChatX code during installation--><!--===========================FreiChatX====VERSIONS====5.X====END=========================-->


2: arg.php

<?php /* FreiChatX parameters */

if(!defined('RDIR'))
{
define('RDIR', dirname(__FILE__));
define('PARENTDIR',dirname(RDIR));
}

if(@$_SERVER["HTTPS"] == "on")
{
$protocol = "https://";
}
else
{
$protocol = "http://";
}


$parameters=unserialize(file_get_contents(str_replace('arg.php','config.dat',__FILE__)));

$PATH = 'freichat/'; // Use this only if you have placed the freichat folder somewhere else
$installed=true;
$admin_pswd='adminpass';
$url=$protocol.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
$show_name=$parameters['show_name']; //you can have guest or user
$displayname=$parameters['displayname']; //you can have username / name(nickname)
$show_module=$parameters['show_module']; //you can have'visible' or'hidden'
$chatspeed=$parameters['chatspeed']; //Do not change this value
$fxval=$parameters['fxval']; //Set it to false if you do not want animations
$draggable=$parameters['draggable'];
$conflict=$parameters['conflict']; //Jquery Conflicts 'true' or ''
$msgSendSpeed=$parameters['msgSendSpeed']; //Message are sent after 1 second of post, reducing it will increase FreiChatX message sending speed but also will send more requests to the server! NOTE:: Do not decrease it below 1000
$show_avatar=$parameters['show_avatar']; //Can have block or none

$debug=$parameters['debug']; //option for debugging ,default is false
$freichat_theme=$parameters['freichat_theme'];
$css=$freichat_theme; //background color
$color=$css; //colour for chatbuttons
$lang=$parameters['lang']; //Language please do not include .php here only file name

$load=$parameters['load']; //chatbox
$dyncss='disable'; //template patch
$evnixpower='visible'; //powered by evnix
$show_chatbox='';
$time=$parameters['time']; //In seconds
$GZIP_handler = $parameters['GZIP_handler'];

$JSdebug=$parameters['JSdebug']; // Javascript debug info shown in firebug (firefox extension). No quotes around true or false
$busy_timeOut=$parameters['busy_timeOut']; //In seconds user will be switched to busy status
$offline_timeOut=$parameters['offline_timeOut']; //In seconds user will be switched to offline status

/*FreiChatX plugin parameters*/
// File sending
$show_file_sending_plugin=$parameters['plugins']['file_sender']['show'];
$file_size_limit=$parameters['plugins']['file_sender']['file_size']; //In Kilobytes
$expirytime=$parameters['plugins']['file_sender']['expiry']; //In minutes after which the uploaded files will be deleted
$valid_exts=$parameters['plugins']['file_sender']['valid_exts']; //valid extensions separated by comma
$playsound = $parameters["playsound"];

//Translate
$show_translate_plugin = 'enabled';

//Chatroom plugin
$show_chatroom_plugin = 'enabled';

//Video Chat plugin
$show_videochat_plugin = 'disabled'; //Pending !!

//coversation save
$show_save_plugin = 'enabled';

$show_smiley_plugin = 'enabled';
//send conversation plugin
$show_mail_plugin = 'enabled';
$smtp_username='';
$smtp_password='';
$mailtype=$parameters["plugins"]["send_conv"]["mailtype"];
$smtp_server=$parameters["plugins"]["send_conv"]["smtp_server"];
$smtp_port=$parameters["plugins"]["send_conv"]["smtp_port"];
$smtp_protocol=$parameters["plugins"]["send_conv"]["smtp_protocol"];
$mail_from_address=$parameters["plugins"]["send_conv"]["from_address"];
$mail_from_name=$parameters["plugins"]["send_conv"]["from_name"];


/* ACL PERMISSIONS */
/* Here allow or noallow can be used to grant and prohibit permissions respectively */


$ACL = array(
'FILE' => array( /* File upload/send plugin */
'user' => 'allow',
'guest' => 'allow'
),

'TRANSLATE' => array(
'user' => 'allow',
'guest' => 'allow'
),

'SAVE' => array(
'user' => 'allow',
'guest' => 'allow'
),

'SMILEY' => array(
'user' => 'allow',
'guest' => 'allow'
),

'MAIL' => array(
'user' => 'allow',
'guest' => 'allow'
),

'VIDEOCHAT' => array(
'user' => 'noallow',
'guest' => 'noallow'
)

);


/* ACL PERMISSIONS */

/* To ensure boolean is parsed */

if($debug == "true")
{
$debug = true;
}
else
{
$debug = false;
}

//Also

if($JSdebug == "true")
{
$JSdebug = true;
}
else
{
$JSdebug = false;
}


/* Data base details */
$con='mysql';
$username='web1217';
$password='7WrTvSNe';
$client_db_name='usr_web1217_2';
$host='localhost';
$driver='Custom';
$db_prefix='testing';
$uid='4ee3a51894a42';


/* NOTE:= Below setting only applies to users using custom driver*/

//Tell FreiChatX what to use { Pure session } OR { Session and database }
/*
* Psession -> Pure sessions
* Sdatabase -> Session with database
*/

$freiuse="Psession"; //can have value as Psession or Sdatabase

/* If you are using only sessions to store User details */
//Please use only the index of session variable

//The default value in user name or user id session when user is a guest
$default_ses=null; //If you dont make any checks leave it null

$ses_username='root'; /* Username stored in session*/ //Only index value
$ses_userid='loginid'; /* Userid stored in session */ //Only index value

/* OR */

/* if you are using database table to store User details */
$usertable='login'; //specifies the name of the table in which your user information is stored.
$row_username='root'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='loginid'; //specifies the name of the field in which the user's id is stored (usually id or userid)

//Avatar
$avatar_field_name = 'avatar';
?>

3: main.php

<?php session_start();

error_reporting(-1);

require_once '../arg.php';

$zlib = false;

if($GZIP_handler == 'ON')
{
if (extension_loaded('zlib')) {
$zlib = true;
ob_start('ob_gzhandler');
}
}

//header("Content-type: text/javascript");

if (!isset($_GET['id']) || !isset($_GET['xhash'])) {
//exit;
}
//-------------------PHP includes----------------------------------------------
require '../define.php';

//require 'themeBC.php';
//-----------------------------------------------------------------------------
class X_main extends freichatXconstruct {

public function __construct() {
parent::__construct();
}

public function initiateFreiChatX() {
require_once '../server/drivers/' . $this->driver . '.php';
$this->freichat_debug("main.php loaded");

if (!isset($_SESSION[$this->uid . 'freistatus'])) {
$_SESSION[$this->uid . 'freistatus'] = 1;
}

if (!isset($_SESSION[$this->uid . 'custom_mesg'])) {
$_SESSION[$this->uid . 'custom_mesg'] = $this->frei_trans['default_status'];
}



if (isset($_SESSION[$this->uid . 'ses_id']) == false) {

$parameters = array(
"id" => strip_tags($_GET['id']),
"custom_mesg" => false,
"first" => false
);

if (!isset($_SESSION[$this->uid . 'in_room'])) {
$_SESSION[$this->uid . 'in_room'] = -1;
}

$this->connectDB();
$sessions = new $this->driver($this->db);
$sessions->uid = $this->uid;
$sessions->permanent_name = $this->permanent_name;
$sessions->permanent_id = $this->permanent_id;
$sessions->online_time = $this->online_time;
$sessions->online_time2 = $this->online_time2;
$sessions->time_string = $this->time_string;
$sessions->show_name = $this->show_name;
$sessions->usr_list_wanted = false;
$sessions->db_prefix = $this->db_prefix;
$sessions->displayname = $this->displayname;
$sessions->frei_trans = $this->frei_trans;
$sessions->debug = $this->debug;
$sessions->update_usr_info = true;
$sessions->url = $this->url;
$sessions->driver = $this->driver;
$sessions->to_freichat_path = $this->to_freichat_path;
$sessions->options = $parameters;
$sessions->row_username = $this->row_username;
$sessions->row_userid = $this->row_userid;
$sessions->usertable = $this->usertable;

$sessions->load_driver();
}
}

}

$construct = new X_main;
$construct->initiateFreiChatX();

if (isset($_SESSION)) {
$username = $_SESSION[$construct->uid . 'usr_name'];
$id = $_SESSION[$construct->uid . 'usr_ses_id'];
} else {
$construct->freichat_debug("Session Not Yet Created in client side");
}
$frei_trans[] = Array();

require '../arg.php';
require '../client/jquery/freichat_themes/defarg.php';
require '../client/jquery/freichat_themes/' . $freichat_theme . '/argument.php';
$frei_trans = $construct->inc_lang();

$url = str_replace('client/main.php', '', $url);


if(isset($_SERVER['HTTP_REFERER'])){
$referer_url = $_SERVER['HTTP_REFERER'];
}else
{
$referrer_url = $url;
}


if (strpos($referer_url, 'www.') == TRUE) {
$url = str_replace('http://', 'http://www.', $url);
}

if (strpos($url, 'www.www.') == TRUE) {
$url = str_replace('http://www.www.', 'http://www.', $url);
}

$pfromname = str_replace("'", "\'", $_SESSION[$uid . "usr_name"]);

$custom_mesg = "";


if (isset($_SESSION[$uid . "custom_mesg"])) {
if ($_SESSION[$uid . "custom_mesg"] != "" && $_SESSION[$uid . "custom_mesg"] != "i am null" && $_SESSION[$uid . "custom_mesg"] != null) {
$custom_mesg = $_SESSION[$uid . "custom_mesg"];
}
} else {
$custom_mesg = 'I am available';
}

require_once 'jquery/js/jquery.1.6.js';
require_once 'jquery/js/jquery-ui.js';
require_once 'plugins/translate/js/jquery.translate-1.3.9.min.js';
require_once 'jquery/js/combined.js'; //include SM 2_.2.97a + slick + dragx

require_once 'jsdef.js';
require_once 'plugins.js';
require_once 'freichat.js';
//require("chatroom_orig.js");
if ($construct->show_chatroom_plugin == 'enabled') {

}else{
//$jn("#dc-slick-9").hide();
}


if($GZIP_handler == 'ON')
{
if ($zlib == true) {
ob_end_flush();
}
}
?>


4. freixlog

December 10, 2011, 2:26 pm: Inserted the user with the following data :: Username = Gast-1kn7 And ID = 1323657119 Default status = I am available

December 10, 2011, 2:26 pm: main.php loaded

December 10, 2011, 2:26 pm: connected to database successfully

December 10, 2011, 2:26 pm: Wrong method defined!

December 10, 2011, 2:27 pm: main.php loaded

December 10, 2011, 2:27 pm: connected to database successfully

December 10, 2011, 2:27 pm: Wrong method defined!

December 10, 2011, 2:28 pm: main.php loaded

December 10, 2011, 2:28 pm: connected to database successfully

December 10, 2011, 2:28 pm: Wrong method defined!


The Adminpanel is working too ..

I Think my Minds are wrong but wich, where ?
The address 4 my site ( its 4 testing reasons don´t worry if it get a crash ;- ) )

http://eplay-forum.de

4 Admin ( Standardpassword )
http://www.eplay-forum.de/inc/_templates_/version1.5/freichat/administrator/index.php

login: WolF

PW: h6w5wZWUQW368GW

Thx 4 Help!

WOlF

If this here at the wrong Place .. Sry 4 that !
40
1
edrinkard posted Dec 7 '11 at 4:42 pm

I am wanting to install freichat on an elgg site, however when I click submit on the page were the database information is entered it goes to a 500 error message. Any suggestions. Also I am running cpanel on a linux server.

51
1
nadia posted Dec 1 '11 at 7:56 am

Hi there, let me first say that this is indeed a great chat program and works almost 100% (can't move chat screen from upper left), but the placement of the powered by on the chat screen is horrible. There is a blank area that has a hidden link next to the input box, and many people have hit the hidden link and get ejected from my site! I have no problem leaving the bottom link, but can you tell me how to remove the blank link?

I wan't to keep using the program but this is more hassle and has had me answering too many emails asking to move it.

I understand you want your tag on your product, but I think that is a bit overkill, and as I said, bad placement and bad taste of the hidden link.

Thanks

Can you fix the link so I can reinstall a new copy? When can we purchase a linkless version?

209
25
fravala posted Nov 29 '11 at 12:00 am

I'm using dreamweaver for my web development
but installing freichat and I use my database does not work for me
and follow your tutorial but still people did not appear online
is always asking you to log
but when I select guest if it works perfectly.
can you help me?

115
10

Hi, I'm looking for a way to move the chat room (not the chat at the bottom but the chat room on the lleft hand side) to the top-left corner of my website.
I tried to use chrome inspect element feature but all I got was:

element.style {
position: fixed;
top: -1px;
z-index: 10000;
margin-left: -554px;
}

And:

element.style {
position: absolute;
margin-right: -82px;
}

I'm guessing the code isn't in the css file but hard coded into a .php file, right? I tried to look for it but no luck so far.
Could you please point me to the the right file to edit.

Also, what if I wanted to disable the chat room feature and only keep the standard chat ath the bottom of the page?

Thank you in advance.

61
3
Kirill posted Nov 22 '11 at 4:48 pm

Hi!

When I try to create a new chat room using Cyrillic letters ("Главная комната", for example), I see the name "Главнаякомната" on backend and frontend.

How to force chatroom's setting to understand Cyrillic?

166
10

Joomla Version 1.5.8 with CB 1.3.1 installed on apache2triad with PHP Version 5.1.2 MYSQL 5.0.11-beta. Attempted install of freichat 6.0..

I didnt really want to upgrade CB. If NEEDED, i will, but does anyone have any ideas where to go from here?

url:mosthatedonline.net

1.31k
6.08k
20
Actions
Hide topic messages
Enable infinite scrolling
Previous
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft