FreiChat related discussions
Group Chat?

Group chat doesn't seem to work. I click on it and all I get is a line to the right of the icon and that's about it. Tried with three logged in users. Also in Firefox there is no icon its a just the word group chat.

Group chat doesn't seem to work. I click on it and all I get is a line to the right of the icon and that's about it. Tried with three logged in users. Also in Firefox there is no icon its a just the word group chat.

Happy Hunting...

can you post a screenshot here?

also post a screenshot of your chrome console after a page refresh.
Note: to open chrome console. press F12

can you post a screenshot here? also post a screenshot of your chrome console after a page refresh. Note: to open chrome console. press F12
Necessity is the mother of all inventions!

can you post a screenshot here?

also post a screenshot of your chrome console after a page refresh.
Note: to open chrome console. press F12

Here is the requested. No errors in the console but is there a way to change the Gravatars link to HTTPS so my site actually keeps its link green in the browser bar? Or does Gravatar support SSL?

Screenshots attached.547fbaf22cba1.png
547fbaf2dce0d.png

>can you post a screenshot here? >also post a screenshot of your chrome console after a page refresh. >Note: to open chrome console. press F12 Here is the requested. No errors in the console but is there a way to change the Gravatars link to HTTPS so my site actually keeps its link green in the browser bar? Or does Gravatar support SSL? Screenshots attached.![547fbaf22cba1.png](serve/attachment&path=547fbaf22cba1.png) ![547fbaf2dce0d.png](serve/attachment&path=547fbaf2dce0d.png)

Happy Hunting...

Hard to read but I am sure you will find a way....

Hard to read but I am sure you will find a way....

Happy Hunting...

Admin, I need somewhere to start with this. I am not sure how this is suppose to work but I do know it is not working and in FF looks crappy. I upgraded to the next level service because I was happy with the overall product and support. Can we please continue this relationship?

Admin, I need somewhere to start with this. I am not sure how this is suppose to work but I do know it is not working and in FF looks crappy. I upgraded to the next level service because I was happy with the overall product and support. Can we please continue this relationship?

Happy Hunting...

Hi,

Sorry, but somehow we missed to reply to your topic.

Can you send us the freichat folder from your server ? (you can send us via mail)
This may happen because of some missing files.

It would be possible to identify the problem if you could provide us your website address with 2 test accounts.

Hi, Sorry, but somehow we missed to reply to your topic. Can you send us the freichat folder from your server ? (you can send us via mail) This may happen because of some missing files. It would be possible to identify the problem if you could provide us your website address with 2 test accounts.

The site is ghostlyhaks.com. What access level do the test accounts need? I can email you the freichat folder if need be.

The site is ghostlyhaks.com. What access level do the test accounts need? I can email you the freichat folder if need be.

Happy Hunting...

Hi,

We do not need any special access, just normal user accounts will suffice.

Hi, We do not need any special access, just normal user accounts will suffice.
Necessity is the mother of all inventions!

Hi,

We do not need any special access, just normal user accounts will suffice.

The two test users are:

test:Testing@123
test2:Testing@123

Regular registered accounts with no real access, anyone is allowed to register so no harm in posting these here.

I need you guys to see why group chat is not working, why there are multiple sessions being opened on refreshes and navigation of the site. And also please check the cross browser compatibility of Friechat. I am having some weird stuff happen at random.

>Hi, >We do not need any special access, just normal user accounts will suffice. The two test users are: test:Testing@123 test2:Testing@123 Regular registered accounts with no real access, anyone is allowed to register so no harm in posting these here. I need you guys to see why group chat is not working, why there are multiple sessions being opened on refreshes and navigation of the site. And also please check the cross browser compatibility of Friechat. I am having some weird stuff happen at random.

Happy Hunting...

I think we found the problem.

Can you paste the code of freichat/arg.php here ?

I think we found the problem. Can you paste the code of freichat/arg.php here ?
Necessity is the mother of all inventions!
<?php

date_default_timezone_set('GMT');


/* < Hard code */
require_once 'hardcode.php';
/* Hard code /> */



require_once 'define.php';

class FreiChat {

    public function __construct() {


        global $dsn,$db_user,$db_pass, $driver, $db_prefix, $uid, $debug, $PATH, $smtp_username, $smtp_password;
        $this->dsn = $dsn;
        $this->driver = $driver;
        $this->db_prefix = $db_prefix;
        $this->uid = $uid;
        $this->PATH = $PATH;
        $this->smtp_username = $smtp_username;
        $this->smtp_password = $smtp_password;


        $parts = explode(":",$dsn);
        $this->pdo_driver = $parts[0];

        global $use_cookie;

        if($use_cookie == 'false') {
            $this->use_cookie = false;
        }else{
            $this->use_cookie = $use_cookie;            
        }



        global $usertable, $row_username, $row_userid, $avatar_field_name, $force_load_jquery;
        $this->usertable = $usertable;
        $this->row_username = $row_username;
        $this->row_userid = $row_userid;
        $this->avatar_field_name = $avatar_field_name;
        $this->force_load_jquery = $force_load_jquery;

        $this->time_string = strtotime(date("Y-m-d H:i:s"));

        $this->online_time = ($this->time_string - 10);
        $this->online_time2 = ($this->time_string - 80);

        global $custom_error_handling;
        $this->custom_error_handling = $custom_error_handling;


        $this->db = DB_conn::get_connection($dsn, $db_user, $db_pass);
        //$this->init_vars();
    }

    public function build_vars() {
        $query = "SELECT * FROM frei_config";
        $variables = $this->db->query($query);
        $variables = $variables->fetchAll();
        $args = array();

        /* require_once 'server/drivers/'.$this->driver.'.php';
          $driver = new $this->driver($this->db);
          $driver->db_prefix = $this->db_prefix; */

        foreach ($variables as $variable) {

            if ($variable['subcat'] != 'NULL') {
                //    var_dump($variable);
                $args[$variable['key']][$variable['cat']][$variable['subcat']] = $variable['val'];
            } else if ($variable['cat'] != 'NULL') {
                $args[$variable['key']][$variable['cat']] = $variable['val'];
            } else {
                $args[$variable['key']] = $variable['val'];
            }
        }

        $args['x_config'] = null; //not req. $driver->x_config();
        $this->db_vars = $args;
        return $args;
    }

    public static function build_paths() {
        if (!defined('RDIR')) {
            define('RDIR', dirname(__FILE__));
            define('PARENTDIR', dirname(RDIR));
        }

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

    public function return_boolean($variable) {
        if ($variable == "true")
            return true;
        return false;
    }

    public function init_vars() {

        $parameters = $this->build_vars();

        $this->url = self::build_paths();
        $this->show_name = $parameters['show_name']; //you can have guest or user
        $this->displayname = $parameters['displayname']; //you can have username / name(nickname)
        $this->debug = $this->return_boolean($parameters['debug']); //option for debugging ,default is false
        $this->freichat_theme = $parameters['freichat_theme'];
        $this->css = $this->freichat_theme; //background color
        $this->color = $this->css; //colour for chatbuttons
        $this->lang = 'chinese';//$parameters['lang']; //Language please do not include .php here only file name
        $this->cache = 'disabled';
        $this->ug_ids = $parameters['ug_ids'];

        $this->show_chatroom_plugin = 'enabled';
        $this->show_videochat_plugin = 'disabled';
        $this->show_mobilechat_plugin = 'enabled';
        $this->x_config = $parameters['x_config'];
        $this->chat_time_shown_always = $parameters['chat_time_shown_always'];
        $this->allow_guest_name_change = $parameters['allow_guest_name_change'];

        $this->chatroom_expiry = $parameters['plugins']['chatroom']['chatroom_expiry'];

        //long polling
        $this->long_polling = $parameters['polling'];
        $this->poll_time = $parameters['polling_time'];
        $this->chatspeed = $parameters['chatspeed'];

        //link profile
        $this->linkprofile = $parameters['link_profile'];
        $this->sef_link_profile = $parameters['sef_link_profile'];
        //CUSTOM DRIVER
        $this->to_freichat_path = $this->PATH;


        $this->show_avatar = $parameters['show_avatar']; //Can have block or none
        $this->frei_trans = $this->inc_lang();
    $this->mysql_now = date("Y-m-d H:i:s");
        $this->time_string = strtotime($this->mysql_now);

        $this->online_time = ($this->time_string - 10);
        $this->online_time2 = ($this->time_string - 80);
        $this->permanent_id = time() + rand(100000, 500000);
        //$this->frei_trans['g_prefix'] = htmlspecialchars($this->frei_trans['g_prefix'], ENT_QUOTES, "UTF-8");
        $this->permanent_name = $this->frei_trans['g_prefix'] . base_convert($this->permanent_id, 6, 36);
    }

    public function get_js_config() {

        $parameters = $this->db_vars;

        $this->fxval = $parameters['fxval']; //Set it to false if you do not want animations
        $this->draggable = $parameters['draggable'];
        $this->conflict = $parameters['conflict']; //Jquery Conflicts 'true' or ''
        $this->msgSendSpeed = $parameters['msgSendSpeed']; //Message are sent after 1 second of post, reducing it will increase FreiChat message sending speed but also will send more requests to the server! NOTE:: Do not decrease it below 1000
        $this->content_height = $parameters['content_height']; //option to auto resize the chatbox content based on content or set fixed height
        $this->user_defined_chatbox_content_status = $parameters['chatbox_status']; //if true , user can permanantly inimze or maximize the chatbox

        $this->load = $parameters['load']; //chatbox
        $this->dyncss = 'disable'; //template patch
        $this->evnixpower = 'visible'; //powered by evnix
        $this->show_chatbox = '';
        $this->time = $parameters['time']; //In seconds
        $this->GZIP_handler = $parameters['GZIP_handler'];
        $this->BOOT = $parameters['BOOT']; // Load freichat -> y or n?
        $this->exit_for_guests = $parameters['exit_for_guests']; // Do not load if guest

        $this->JSdebug = $this->return_boolean($parameters['JSdebug']); // Javascript debug info shown in firebug (firefox extension). No quotes around true or false
        $this->busy_timeOut = $parameters['busy_timeOut']; //In seconds user will be switched to busy status
        $this->offline_timeOut = $parameters['offline_timeOut']; //In seconds user will be switched to offline status
        $this->addedoptions_visibility = $parameters['addedoptions_visibility']; //if the addedoption should be visible when chat window is created


        /* FreiChat plugins */

        // File sending
        $this->show_file_sending_plugin = $parameters['plugins']['file_sender']['show'];
        $this->file_size_limit = ($parameters['plugins']['file_sender']['file_size']) * 1024; //In Kilobytes
        $this->expirytime = $parameters['plugins']['file_sender']['expiry']; //In minutes after which the uploaded files will be deleted
        $this->valid_exts = $parameters['plugins']['file_sender']['valid_exts']; //valid extensions separated by comma
        $this->playsound = $parameters["playsound"];
        //coversation save
        $this->show_save_plugin = 'enabled';

        //smiley plugin
        $this->show_smiley_plugin = 'enabled';

        //send conversation plugin
        $this->show_mail_plugin = 'enabled';

        $this->chatroom_location = $parameters['plugins']['chatroom']['location'];
        $this->chatroom_autoclose = $parameters['plugins']['chatroom']['autoclose'];
        $this->chatroom_offset = $parameters['plugins']['chatroom']['offset'];
        $this->chatroom_label_offset = $parameters['plugins']['chatroom']['label_offset'];
        $this->chatroom_override_positions = $parameters['plugins']['chatroom']['override_positions'];

        $this->mailtype = $parameters["plugins"]["send_conv"]["mailtype"];
        $this->smtp_server = $parameters["plugins"]["send_conv"]["smtp_server"];
        $this->smtp_port = $parameters["plugins"]["send_conv"]["smtp_port"];
        $this->smtp_protocol = $parameters["plugins"]["send_conv"]["smtp_protocol"];
        $this->mail_from_address = $parameters["plugins"]["send_conv"]["from_address"];
        $this->mail_from_name = $parameters["plugins"]["send_conv"]["from_name"];
    }

    public function get_acl() {
        $parameters = $this->db_vars;

        $ACL = array(
            'CHAT' => array(
                'user'  => $parameters['ACL']['chat']['user'],
                'guest' => $parameters['ACL']['chat']['guest']
            ),
            'FILE' => array(
                'user'  => $parameters['ACL']['filesend']['user'],
                'guest' => $parameters['ACL']['filesend']['guest']
            ),
            'TRANSLATE' => array(
                'user'  => 'noallow',
                'guest' => 'noallow'
            ),
            'SAVE' => array(
                'user'  => $parameters['ACL']['save']['user'],
                'guest' => $parameters['ACL']['save']['guest']
            ),
            'SMILEY' => array(
                'user'  => $parameters['ACL']['smiley']['user'],
                'guest' => $parameters['ACL']['smiley']['guest']
            ),
            'MAIL' => array(
                'user'  => $parameters['ACL']['mail']['user'],
                'guest' => $parameters['ACL']['mail']['guest']
            ),
            'VIDEOCHAT' => array(
                'user'  => $parameters['ACL']['video']['user'],
                'guest' => $parameters['ACL']['video']['guest']
            ),
            'CHATROOM' => array(
                'user'  => $parameters['ACL']['chatroom']['user'],
                'guest' => $parameters['ACL']['chatroom']['guest']
            ),
            'MOBILECHAT' => array(
                'user'  => 'allow',
                'guest' => 'allow'
            ),
            'CHATROOM_CRT' => array(
                'user'  => $parameters['ACL']['chatroom_crt']['user'],
                'guest' => $parameters['ACL']['chatroom_crt']['guest']
            ),
            'FORMATTER' => array(
                'user'  => "allow",
                'guest' => "allow"
            ),
            'GROUPCHAT' => array(
                'user'  => $parameters['ACL']['groupchat']['user'],
                'guest' => "allow"
            )

        );
        return $ACL;
    }

    public function get_smileys() {

        $query = "SELECT symbol,image_name FROM frei_smileys";

        $result = $this->db->query($query);
        return $result->fetchAll();
    }

    public function get_all_vars() {
        $this->get_js_config();
        $this->get_acl();
    }

//------------------------------------------------------------------------------------------------
    public function freichat_debug($message) {
        if ($this->debug == true) {
            $dbgfile = fopen("../freixlog.log", "a");
            fwrite($dbgfile, "\n" . date("F j, Y, g:i a") . ": " . $message . "\n");
        }
    }

//----------------------------------------------------------------------------------------------
    public function bigintval($value) {
        $value = trim($value);
        if (ctype_digit($value)) {
            return $value;
        }
        $value = preg_replace("/[^0-9](.*)$/", '', $value);
        if (ctype_digit($value)) {
            return $value;
        }
        return 0;
    }

//----------------------------------------------------------------------------------------------

    public function inc_lang() {

        //$frei_trans declared in  language file

        if ($this->lang != 'english') {
            if (empty($frei_trans)) {
                $EnglishLangInc = require 'lang/english.php';
                if ($EnglishLangInc != 1) {
                    $this->freichat_debug('Enlish language file could not be included');
                }
            } else {
                $this->freichat_debug('frei_trans array already in use!');
            }


            $OtherLangInc = @include 'lang/' . $this->lang . '.php';

            if ($OtherLangInc != 1) {
                $this->freichat_debug('Some error while including' . $this->lang . ' language file');
            }
        } else if ($this->lang == 'english') {
            $EnglishLangInc = require 'lang/english.php';

            if ($EnglishLangInc != 1) {
                $this->freichat_debug('path to english language incorrect');
            }
        } else {
            $this->freichat_debug('Wrong filename given in parameter');
        }
        return $frei_trans;
    }

}
```` &amp;lt;?php date_default_timezone_set(&#039;GMT&#039;); /* &amp;lt; Hard code */ require_once &#039;hardcode.php&#039;; /* Hard code /&amp;gt; */ require_once &#039;define.php&#039;; class FreiChat { public function __construct() { global $dsn,$db_user,$db_pass, $driver, $db_prefix, $uid, $debug, $PATH, $smtp_username, $smtp_password; $this-&amp;gt;dsn = $dsn; $this-&amp;gt;driver = $driver; $this-&amp;gt;db_prefix = $db_prefix; $this-&amp;gt;uid = $uid; $this-&amp;gt;PATH = $PATH; $this-&amp;gt;smtp_username = $smtp_username; $this-&amp;gt;smtp_password = $smtp_password; $parts = explode(&quot;:&quot;,$dsn); $this-&amp;gt;pdo_driver = $parts[0]; global $use_cookie; if($use_cookie == &#039;false&#039;) { $this-&amp;gt;use_cookie = false; }else{ $this-&amp;gt;use_cookie = $use_cookie; } global $usertable, $row_username, $row_userid, $avatar_field_name, $force_load_jquery; $this-&amp;gt;usertable = $usertable; $this-&amp;gt;row_username = $row_username; $this-&amp;gt;row_userid = $row_userid; $this-&amp;gt;avatar_field_name = $avatar_field_name; $this-&amp;gt;force_load_jquery = $force_load_jquery; $this-&amp;gt;time_string = strtotime(date(&quot;Y-m-d H:i:s&quot;)); $this-&amp;gt;online_time = ($this-&amp;gt;time_string - 10); $this-&amp;gt;online_time2 = ($this-&amp;gt;time_string - 80); global $custom_error_handling; $this-&amp;gt;custom_error_handling = $custom_error_handling; $this-&amp;gt;db = DB_conn::get_connection($dsn, $db_user, $db_pass); //$this-&amp;gt;init_vars(); } public function build_vars() { $query = &quot;SELECT * FROM frei_config&quot;; $variables = $this-&amp;gt;db-&amp;gt;query($query); $variables = $variables-&amp;gt;fetchAll(); $args = array(); /* require_once &#039;server/drivers/&#039;.$this-&amp;gt;driver.&#039;.php&#039;; $driver = new $this-&amp;gt;driver($this-&amp;gt;db); $driver-&amp;gt;db_prefix = $this-&amp;gt;db_prefix; */ foreach ($variables as $variable) { if ($variable[&#039;subcat&#039;] != &#039;NULL&#039;) { // var_dump($variable); $args[$variable[&#039;key&#039;]][$variable[&#039;cat&#039;]][$variable[&#039;subcat&#039;]] = $variable[&#039;val&#039;]; } else if ($variable[&#039;cat&#039;] != &#039;NULL&#039;) { $args[$variable[&#039;key&#039;]][$variable[&#039;cat&#039;]] = $variable[&#039;val&#039;]; } else { $args[$variable[&#039;key&#039;]] = $variable[&#039;val&#039;]; } } $args[&#039;x_config&#039;] = null; //not req. $driver-&amp;gt;x_config(); $this-&amp;gt;db_vars = $args; return $args; } public static function build_paths() { if (!defined(&#039;RDIR&#039;)) { define(&#039;RDIR&#039;, dirname(__FILE__)); define(&#039;PARENTDIR&#039;, dirname(RDIR)); } if (@$_SERVER[&quot;HTTPS&quot;] == &quot;on&quot;) { $protocol = &quot;https://&quot;; } else { $protocol = &quot;http://&quot;; } return $protocol . $_SERVER[&#039;HTTP_HOST&#039;] . $_SERVER[&#039;SCRIPT_NAME&#039;]; } public function return_boolean($variable) { if ($variable == &quot;true&quot;) return true; return false; } public function init_vars() { $parameters = $this-&amp;gt;build_vars(); $this-&amp;gt;url = self::build_paths(); $this-&amp;gt;show_name = $parameters[&#039;show_name&#039;]; //you can have guest or user $this-&amp;gt;displayname = $parameters[&#039;displayname&#039;]; //you can have username / name(nickname) $this-&amp;gt;debug = $this-&amp;gt;return_boolean($parameters[&#039;debug&#039;]); //option for debugging ,default is false $this-&amp;gt;freichat_theme = $parameters[&#039;freichat_theme&#039;]; $this-&amp;gt;css = $this-&amp;gt;freichat_theme; //background color $this-&amp;gt;color = $this-&amp;gt;css; //colour for chatbuttons $this-&amp;gt;lang = &#039;chinese&#039;;//$parameters[&#039;lang&#039;]; //Language please do not include .php here only file name $this-&amp;gt;cache = &#039;disabled&#039;; $this-&amp;gt;ug_ids = $parameters[&#039;ug_ids&#039;]; $this-&amp;gt;show_chatroom_plugin = &#039;enabled&#039;; $this-&amp;gt;show_videochat_plugin = &#039;disabled&#039;; $this-&amp;gt;show_mobilechat_plugin = &#039;enabled&#039;; $this-&amp;gt;x_config = $parameters[&#039;x_config&#039;]; $this-&amp;gt;chat_time_shown_always = $parameters[&#039;chat_time_shown_always&#039;]; $this-&amp;gt;allow_guest_name_change = $parameters[&#039;allow_guest_name_change&#039;]; $this-&amp;gt;chatroom_expiry = $parameters[&#039;plugins&#039;][&#039;chatroom&#039;][&#039;chatroom_expiry&#039;]; //long polling $this-&amp;gt;long_polling = $parameters[&#039;polling&#039;]; $this-&amp;gt;poll_time = $parameters[&#039;polling_time&#039;]; $this-&amp;gt;chatspeed = $parameters[&#039;chatspeed&#039;]; //link profile $this-&amp;gt;linkprofile = $parameters[&#039;link_profile&#039;]; $this-&amp;gt;sef_link_profile = $parameters[&#039;sef_link_profile&#039;]; //CUSTOM DRIVER $this-&amp;gt;to_freichat_path = $this-&amp;gt;PATH; $this-&amp;gt;show_avatar = $parameters[&#039;show_avatar&#039;]; //Can have block or none $this-&amp;gt;frei_trans = $this-&amp;gt;inc_lang(); $this-&amp;gt;mysql_now = date(&quot;Y-m-d H:i:s&quot;); $this-&amp;gt;time_string = strtotime($this-&amp;gt;mysql_now); $this-&amp;gt;online_time = ($this-&amp;gt;time_string - 10); $this-&amp;gt;online_time2 = ($this-&amp;gt;time_string - 80); $this-&amp;gt;permanent_id = time() + rand(100000, 500000); //$this-&amp;gt;frei_trans[&#039;g_prefix&#039;] = htmlspecialchars($this-&amp;gt;frei_trans[&#039;g_prefix&#039;], ENT_QUOTES, &quot;UTF-8&quot;); $this-&amp;gt;permanent_name = $this-&amp;gt;frei_trans[&#039;g_prefix&#039;] . base_convert($this-&amp;gt;permanent_id, 6, 36); } public function get_js_config() { $parameters = $this-&amp;gt;db_vars; $this-&amp;gt;fxval = $parameters[&#039;fxval&#039;]; //Set it to false if you do not want animations $this-&amp;gt;draggable = $parameters[&#039;draggable&#039;]; $this-&amp;gt;conflict = $parameters[&#039;conflict&#039;]; //Jquery Conflicts &#039;true&#039; or &#039;&#039; $this-&amp;gt;msgSendSpeed = $parameters[&#039;msgSendSpeed&#039;]; //Message are sent after 1 second of post, reducing it will increase FreiChat message sending speed but also will send more requests to the server! NOTE:: Do not decrease it below 1000 $this-&amp;gt;content_height = $parameters[&#039;content_height&#039;]; //option to auto resize the chatbox content based on content or set fixed height $this-&amp;gt;user_defined_chatbox_content_status = $parameters[&#039;chatbox_status&#039;]; //if true , user can permanantly inimze or maximize the chatbox $this-&amp;gt;load = $parameters[&#039;load&#039;]; //chatbox $this-&amp;gt;dyncss = &#039;disable&#039;; //template patch $this-&amp;gt;evnixpower = &#039;visible&#039;; //powered by evnix $this-&amp;gt;show_chatbox = &#039;&#039;; $this-&amp;gt;time = $parameters[&#039;time&#039;]; //In seconds $this-&amp;gt;GZIP_handler = $parameters[&#039;GZIP_handler&#039;]; $this-&amp;gt;BOOT = $parameters[&#039;BOOT&#039;]; // Load freichat -&amp;gt; y or n? $this-&amp;gt;exit_for_guests = $parameters[&#039;exit_for_guests&#039;]; // Do not load if guest $this-&amp;gt;JSdebug = $this-&amp;gt;return_boolean($parameters[&#039;JSdebug&#039;]); // Javascript debug info shown in firebug (firefox extension). No quotes around true or false $this-&amp;gt;busy_timeOut = $parameters[&#039;busy_timeOut&#039;]; //In seconds user will be switched to busy status $this-&amp;gt;offline_timeOut = $parameters[&#039;offline_timeOut&#039;]; //In seconds user will be switched to offline status $this-&amp;gt;addedoptions_visibility = $parameters[&#039;addedoptions_visibility&#039;]; //if the addedoption should be visible when chat window is created /* FreiChat plugins */ // File sending $this-&amp;gt;show_file_sending_plugin = $parameters[&#039;plugins&#039;][&#039;file_sender&#039;][&#039;show&#039;]; $this-&amp;gt;file_size_limit = ($parameters[&#039;plugins&#039;][&#039;file_sender&#039;][&#039;file_size&#039;]) * 1024; //In Kilobytes $this-&amp;gt;expirytime = $parameters[&#039;plugins&#039;][&#039;file_sender&#039;][&#039;expiry&#039;]; //In minutes after which the uploaded files will be deleted $this-&amp;gt;valid_exts = $parameters[&#039;plugins&#039;][&#039;file_sender&#039;][&#039;valid_exts&#039;]; //valid extensions separated by comma $this-&amp;gt;playsound = $parameters[&quot;playsound&quot;]; //coversation save $this-&amp;gt;show_save_plugin = &#039;enabled&#039;; //smiley plugin $this-&amp;gt;show_smiley_plugin = &#039;enabled&#039;; //send conversation plugin $this-&amp;gt;show_mail_plugin = &#039;enabled&#039;; $this-&amp;gt;chatroom_location = $parameters[&#039;plugins&#039;][&#039;chatroom&#039;][&#039;location&#039;]; $this-&amp;gt;chatroom_autoclose = $parameters[&#039;plugins&#039;][&#039;chatroom&#039;][&#039;autoclose&#039;]; $this-&amp;gt;chatroom_offset = $parameters[&#039;plugins&#039;][&#039;chatroom&#039;][&#039;offset&#039;]; $this-&amp;gt;chatroom_label_offset = $parameters[&#039;plugins&#039;][&#039;chatroom&#039;][&#039;label_offset&#039;]; $this-&amp;gt;chatroom_override_positions = $parameters[&#039;plugins&#039;][&#039;chatroom&#039;][&#039;override_positions&#039;]; $this-&amp;gt;mailtype = $parameters[&quot;plugins&quot;][&quot;send_conv&quot;][&quot;mailtype&quot;]; $this-&amp;gt;smtp_server = $parameters[&quot;plugins&quot;][&quot;send_conv&quot;][&quot;smtp_server&quot;]; $this-&amp;gt;smtp_port = $parameters[&quot;plugins&quot;][&quot;send_conv&quot;][&quot;smtp_port&quot;]; $this-&amp;gt;smtp_protocol = $parameters[&quot;plugins&quot;][&quot;send_conv&quot;][&quot;smtp_protocol&quot;]; $this-&amp;gt;mail_from_address = $parameters[&quot;plugins&quot;][&quot;send_conv&quot;][&quot;from_address&quot;]; $this-&amp;gt;mail_from_name = $parameters[&quot;plugins&quot;][&quot;send_conv&quot;][&quot;from_name&quot;]; } public function get_acl() { $parameters = $this-&amp;gt;db_vars; $ACL = array( &#039;CHAT&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;chat&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;chat&#039;][&#039;guest&#039;] ), &#039;FILE&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;filesend&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;filesend&#039;][&#039;guest&#039;] ), &#039;TRANSLATE&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; &#039;noallow&#039;, &#039;guest&#039; =&amp;gt; &#039;noallow&#039; ), &#039;SAVE&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;save&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;save&#039;][&#039;guest&#039;] ), &#039;SMILEY&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;smiley&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;smiley&#039;][&#039;guest&#039;] ), &#039;MAIL&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;mail&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;mail&#039;][&#039;guest&#039;] ), &#039;VIDEOCHAT&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;video&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;video&#039;][&#039;guest&#039;] ), &#039;CHATROOM&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;chatroom&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;chatroom&#039;][&#039;guest&#039;] ), &#039;MOBILECHAT&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; &#039;allow&#039;, &#039;guest&#039; =&amp;gt; &#039;allow&#039; ), &#039;CHATROOM_CRT&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;chatroom_crt&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;chatroom_crt&#039;][&#039;guest&#039;] ), &#039;FORMATTER&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; &quot;allow&quot;, &#039;guest&#039; =&amp;gt; &quot;allow&quot; ), &#039;GROUPCHAT&#039; =&amp;gt; array( &#039;user&#039; =&amp;gt; $parameters[&#039;ACL&#039;][&#039;groupchat&#039;][&#039;user&#039;], &#039;guest&#039; =&amp;gt; &quot;allow&quot; ) ); return $ACL; } public function get_smileys() { $query = &quot;SELECT symbol,image_name FROM frei_smileys&quot;; $result = $this-&amp;gt;db-&amp;gt;query($query); return $result-&amp;gt;fetchAll(); } public function get_all_vars() { $this-&amp;gt;get_js_config(); $this-&amp;gt;get_acl(); } //------------------------------------------------------------------------------------------------ public function freichat_debug($message) { if ($this-&amp;gt;debug == true) { $dbgfile = fopen(&quot;../freixlog.log&quot;, &quot;a&quot;); fwrite($dbgfile, &quot;\n&quot; . date(&quot;F j, Y, g:i a&quot;) . &quot;: &quot; . $message . &quot;\n&quot;); } } //---------------------------------------------------------------------------------------------- public function bigintval($value) { $value = trim($value); if (ctype_digit($value)) { return $value; } $value = preg_replace(&quot;/[^0-9](.*)$/&quot;, &#039;&#039;, $value); if (ctype_digit($value)) { return $value; } return 0; } //---------------------------------------------------------------------------------------------- public function inc_lang() { //$frei_trans declared in language file if ($this-&amp;gt;lang != &#039;english&#039;) { if (empty($frei_trans)) { $EnglishLangInc = require &#039;lang/english.php&#039;; if ($EnglishLangInc != 1) { $this-&amp;gt;freichat_debug(&#039;Enlish language file could not be included&#039;); } } else { $this-&amp;gt;freichat_debug(&#039;frei_trans array already in use!&#039;); } $OtherLangInc = @include &#039;lang/&#039; . $this-&amp;gt;lang . &#039;.php&#039;; if ($OtherLangInc != 1) { $this-&amp;gt;freichat_debug(&#039;Some error while including&#039; . $this-&amp;gt;lang . &#039; language file&#039;); } } else if ($this-&amp;gt;lang == &#039;english&#039;) { $EnglishLangInc = require &#039;lang/english.php&#039;; if ($EnglishLangInc != 1) { $this-&amp;gt;freichat_debug(&#039;path to english language incorrect&#039;); } } else { $this-&amp;gt;freichat_debug(&#039;Wrong filename given in parameter&#039;); } return $frei_trans; } } ````

Happy Hunting...

Hi,

The file looks correct, but we found many css issues.

The groupchat is not visible due to some css conflicts.
Also, the autocomplete is not working properly.

Can you try doing a complete fresh install in a new folder somewhere else ?

Hi, The file looks correct, but we found many css issues. The groupchat is not visible due to some css conflicts. Also, the autocomplete is not working properly. Can you try doing a complete fresh install in a new folder somewhere else ?

Ok that makes sense... How could you tell it was an issue with CSS? I will strip all CSS and I will use a default template.

Ok that makes sense... How could you tell it was an issue with CSS? I will strip all CSS and I will use a default template.

Happy Hunting...

Hi,

The file looks correct, but we found many css issues.

The groupchat is not visible due to some css conflicts.
Also, the autocomplete is not working properly.

Can you try doing a complete fresh install in a new folder somewhere else ?

Also please can you tell me how to make sure gravitar is using the HTTPS links. I went through and modified all that I could find but there is still mixed content issues on the site.

&amp;gt;Hi, &amp;gt;The file looks correct, but we found many css issues. &amp;gt;The groupchat is not visible due to some css conflicts. &amp;gt;Also, the autocomplete is not working properly. &amp;gt;Can you try doing a complete fresh install in a new folder somewhere else ? Also please can you tell me how to make sure gravitar is using the HTTPS links. I went through and modified all that I could find but there is still mixed content issues on the site.

Happy Hunting...

OK autocomplete is working and the group chat pops up. It is also compatible with all browsers. The other question I have is the number of sessions being opened by guest users when they visit. I usually get a couple different sessions per user on the site. they clear up shortly after but just wanted a bit of feedback. I will fix my CSS and restyle the chat.

One more thing, can you please also address the other issue I have with mixed content? I need to make all the calls to gravitar HTTPS.

OK autocomplete is working and the group chat pops up. It is also compatible with all browsers. The other question I have is the number of sessions being opened by guest users when they visit. I usually get a couple different sessions per user on the site. they clear up shortly after but just wanted a bit of feedback. I will fix my CSS and restyle the chat. One more thing, can you please also address the other issue I have with mixed content? I need to make all the calls to gravitar HTTPS.

Happy Hunting...

Hi,

For the multiple sessions, it may be because of a php error.
Can you enable PHP debug from freichat backend then check the file freichat/freixlog.log
after 24 hours ?

You can change the gravatar url in freichat/server/freichat.php
Search for the word 'gravatar.com' .

Hi, For the multiple sessions, it may be because of a php error. Can you enable PHP debug from freichat backend then check the file freichat/freixlog.log after 24 hours ? You can change the gravatar url in freichat/server/freichat.php Search for the word &#039;gravatar.com&#039; .
Necessity is the mother of all inventions!

OK, I have no clue why I failed to check that file for gravitar but nevertheless it worked without a hitch so nothing appearing in console anymore. I have started logging the PHP errors. I will post the file as soon as I detect something.

OK, I have no clue why I failed to check that file for gravitar but nevertheless it worked without a hitch so nothing appearing in console anymore. I have started logging the PHP errors. I will post the file as soon as I detect something.

Happy Hunting...

Hi,

For the multiple sessions, it may be because of a php error.
Can you enable PHP debug from freichat backend then check the file freichat/freixlog.log
after 24 hours ?

You can change the gravatar url in freichat/server/freichat.php
Search for the word 'gravatar.com' .

Please go view the log at my site in the path below. Edit this path from my post when you are done please. https://www.ghostlyhaks.com/$.$.$/freixlog.log

&amp;gt;Hi, &amp;gt;For the multiple sessions, it may be because of a php error. &amp;gt;Can you enable PHP debug from freichat backend then check the file freichat/freixlog.log &amp;gt;after 24 hours ? &amp;gt;You can change the gravatar url in freichat/server/freichat.php &amp;gt;Search for the word &#039;gravatar.com&#039; . Please go view the log at my site in the path below. Edit this path from my post when you are done please. https://www.ghostlyhaks.com/$.$.$/freixlog.log

Happy Hunting...

12
594
26
4
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft