FreiChat related discussions

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

88
3

Hi All

I've installed the Chat on a IPB 3.2
Everything is ok but now I have got a Parse Error:

"Parse error: syntax error, unexpected '{' in /hp/bd/ab/sr/www/platform/freichat/server/admin_files/home/index.php on line 1"

That is line 1 in the index.php:

_________________________________________________________________


<?phpif (!isset($_SESSION['phplogin'])    || $_SESSION['phplogin'] !== true) {    header('Location: ../administrator/index.php'); //Replace that if login.php is somewhere else    exit;}require "../arg.php";/********************************************************************************************/class param{    public function __construct()    {      require("../arg.php");      $this->argpath="../arg.php";      $this->configpath = "../config.dat";      $this->themepath='../client/jquery/freichat_themes/';      $this->langpath='../lang/';      $this->themeray=$this->langray=array();      $this->driver=$driver;    }//--------------------------------------------------------------------------------------------    public function create_file()    {          //$handle = fopen($this->configpath,'w');//var_dump($_POST);		$parameters=unserialize(file_get_contents($this->configpath));		$parameters["show_name"]=$_POST['show_name'];		if($this->driver=="JCB" || $this->driver=="CBE" || $this->driver=="JSocial")		{			$parameters["displayname"]=$_POST['displayname'];		}		$parameters["show_module"]="visible";		$parameters["chatspeed"]=$_POST['chatspeed'];		$parameters["fxval"]=$_POST['fxval'];		$parameters["draggable"]=$_POST['draggable'];		$parameters["conflict"]=$_POST['conflict'];		$parameters["msgSendSpeed"]=$_POST['msgSendSpeed'];		$parameters["show_avatar"]=$_POST['show_avatar'];		$parameters["debug"]=$_POST['debug'];		$parameters["freichat_theme"]=$_POST['freichat_theme'];		$parameters["lang"]=$_POST['lang'];		$parameters["load"]=$_POST['load'];		$parameters["time"]=$_POST['time'];		$parameters["JSdebug"]=$_POST['JSdebug'];		$parameters["busy_timeOut"]=$_POST['busy_timeOut'];		$parameters["offline_timeOut"]=$_POST['offline_timeOut'];                file_put_contents($this->configpath,serialize($parameters));		/**/    }//--------------------------------------------------------------------------------------------    public function default_param($name,$given_value)    {        //require $this->configpath;		$parameters=unserialize(file_get_contents($this->configpath));//echo $parameters[$name] ." == ". $given_value."<br/>";        if($parameters[$name] == $given_value)        {            echo "selected";        }        else        {           // echo 'selected';        }    }    public function default_value($name,$dim=1)    {        //require $this->configpath;		$parameters=unserialize(file_get_contents($this->configpath));        if($dim == 1)        {            return $parameters[$name];        }        else if($dim == 2)        {            return $parameters[$name[0]][$name[1]];        }        else if($dim == 3)        {            return $parameters[$name[0]][$name[1]][$name[2]];        }        else        {            echo "Out of bounds!";        }    }//--------------------------------------------------------------------------------------------}/********************************************************************************************///require_once 'admin_files/paramclass.php';$param = new param();if(isset($_POST['draggable'])==true){    $param->create_file();}?><form name="params" action='<?php $_SERVER['PHP_SELF']; ?>' method="POST"><input id="paramsubmit1" type="submit" value="SUBMIT"><br/><br/><div class="parameters"><div id="tabs">	<ul>		<li><a href="#client">Client side parameters</a></li>		<li><a href="#server">Server side parameters</a></li>                <!--<li><a href="#added">Plugins parameters</a></li>-->                <li><a href="#account">Additional parameters</a></li>	</ul>    <!-- First TAB -->	<div id="client">        <ol id ="parametejrs" style="list-style-type: upper-roman;">        <li>            <p>Show Guests or Resgistered Users</p><br/>            <select name="show_name">             <option value="guest"<?php $param->default_param("show_name","guest"); ?>>Guests</option>             <option value="user"<?php $param->default_param("show_name","user"); ?>>Users</option>             <?php if($driver=="JCB" || $driver=="CBE" || $driver=="JSocial")             {               echo '<option value='."buddy "; $param->default_param("show_name","buddy");  echo">Buddies</option>";             }             ?>            </select>              <br/><br/><hr/>        </li>        <li>            <p>Show Avatar</p><br/>            <select name="show_avatar">            <option value="block"<?php $param->default_param("show_avatar","block"); ?>>Yes</option>            <option value="none"<?php $param->default_param("show_avatar","none"); ?>>No</option>            </select>            <br/><br/><hr/>        </li>        <?php if($driver=="JCB" || $driver=="CBE" || $driver=="JSocial" || $driver=="Joomla")        {         echo '<li><p>Show Username or Nickname(name)</p><br/><select name="displayname">';         echo '<option value='."username "; $param->default_param("displayname","username");  echo">username</option>";         echo '<option value='."name "; $param->default_param("displayname","name");  echo">nickname</option>";         echo '</select><br/><br/><hr/></li>';        }        ?>        <li>            <p>Select a theme for the chat</p><br/>            <select name="freichat_theme">            <?php            if ($handle = opendir('../client/jquery/freichat_themes/')) {                while (false !== ($file = readdir($handle))) {                    if ($file != "." && $file != ".." && $file!='.svn' && is_dir('../client/jquery/freichat_themes/'.$file)) {                        echo '<option value='."$file "; $param->default_param("freichat_theme",$file);  echo">$file</option>";                    }                }                closedir($handle);            }            else            {                    echo 'directory open failed';                    }            ?>            </select>            <br/><br/><hr/>        </li>        <li>            <p>Draggable chatwindows feature should be </p>            <select name="draggable">            <option value="enable"<?php $param->default_param("draggable","enable"); ?>>Enabled</option>            <option value="disable"<?php $param->default_param("draggable","disable"); ?>>Disabled</option>            </select>            <br/><br/><hr/>        </li>        <li>             <p>ChatBox on load should be</p>            <select name="load">            <option value="show"<?php $param->default_param("load","show"); ?>>Maximized</option>            <option value="hide"<?php $param->default_param("load","hide"); ?>>Minimized</option>            </select><br/><br/><hr/>        </li>        <li>            <p>Remove Jquery Conflicts <span onmousedown="helpme1()"><img src="<?php echo '../client/jquery/img/about.jpeg' ?>" alt="About"/></a></span></p>            <select name="conflict">            <option value="true"<?php $param->default_param("conflict","true"); ?>>Yes</option>            <option value=""<?php $param->default_param("conflict",""); ?>>No</option>            </select><br/><br/>        </li>        <li>            <p>Show Jquery Animations</p><br/>            <select name="fxval">            <option value="true"<?php $param->default_param("fxval","true"); ?>>Yes</option>            <option value="false"<?php $param->default_param("fxval","false"); ?>>No</option>            </select>            <br/><br/>        </li>        </ol>	</div>    <!-- Second TAB -->	<div id="server">            <ol  style="list-style-type: upper-roman;">        <li>            <p>Save Message History For</p><br/>            <select name="time">            <option value="600"<?php $param->default_param("time","600"); ?>>10 Minutes</option>            <option value="3600"<?php $param->default_param("time","3600"); ?>>1 Hour</option>            <option value="36000"<?php $param->default_param("time","36000"); ?>>10 Hours</option>            <option value="86400"<?php $param->default_param("time","86400"); ?>>1 Day</option>            </select>            <br/><br/><hr/>        </li>        <li>            <p>Change Chat Speed to</p><br/>            <select name="chatspeed">            <option value="7000"<?php $param->default_param("chatspeed","7000"); ?>>Slow</option>            <option value="5000"<?php $param->default_param("chatspeed","5000"); ?>>Normal</option>            <option value="3000"<?php $param->default_param("chatspeed","3000"); ?>>Fast</option>            <option value="1000"<?php $param->default_param("chatspeed","1000"); ?>>SuperFast</option>            </select><br/><br/>            Note:<br/>            1. Normal speed recommended for users using free webhosting service.<br/>            2. Fast speed can be used by users using any paid webhosting service.<br/>            3. SuperFast speed should be used by users at their own risk and needs.<br/>            <br/><br/><hr/>        </li>        <li>            <p>Choose any Language</p><br/>            <select name="lang">            <?php            if ($handle = opendir('../lang/')) {                while (false !== ($file = readdir($handle))) {                    if ($file != "." && $file != ".." && $file!='.svn') {                        $file_name=str_replace(".php", "", $file);                        echo '<option value='."$file_name "; $param->default_param("lang",$file_name);  echo">$file_name</option>";                    }                }                closedir($handle);            }            else            {              echo 'directory open failed';            }            ?>            </select>        </li>        <li><hr/>            <p>Time interval between messages</p><br/>            <select name="msgSendSpeed">            <option value="500"<?php $param->default_param("msgSendSpeed","500"); ?>>0.5 second</option>            <option value="1000"<?php $param->default_param("msgSendSpeed","1000"); ?>>1 seconds</option>            <option value="1500"<?php $param->default_param("msgSendSpeed","1500"); ?>>1.5 seconds</option>            <option value="2000"<?php $param->default_param("msgSendSpeed","2000"); ?>>2 seconds</option>            </select><br/><br/>            Note:<br/>            1. This is the time FreiChatX will wait between two requests (messages sent)<br/>            2. Increase the time interval if you want to reduce server resource usage<br/>            3. 1 second is the default time interval.Do not reduce it further if you <br/>dont               know what you are doing.<br/>            <br/><br/><hr/>        </li>        </ol>	</div>    <!-- Third TAB -->    <!-- Fourth TAB -->    <div id ="account">        <ol style="list-style-type: upper-roman;">         <!--<li>            Change FreiChatX administrator password<br/><br/>            A . Enter your old password<br/>            <input type="password" name="adminpassold1"/>            <br/>            B . Enter your old password again<br/>            <input type="password" name="adminpassold2"/>            <br/>            <br/>            C. Enter your new password <br/>            <input type ="password" name="adminpassnew"/>        </li>-->        <li>            Busy time out<br/><br/>              User status will be changed to busy after <br/>              <input name="busy_timeOut" value="<?php echo $param->default_value('busy_timeOut'); ?>" type="text"> seconds              <br/><br/><hr/>        </li>        <li>            Offline time out<br/><br/>              User status will be changed to offline after <br/>              <input name="offline_timeOut" value="<?php echo $param->default_value('offline_timeOut'); ?>" type="text"> seconds              <br/><br/><hr/>        </li>        <li>            <p>PHP debugging</p><br/>            <select name="debug">            <option value="true"<?php $param->default_param("debug","true"); ?>>Yes</option>            <option value="false"<?php $param->default_param("debug","false"); ?>>No</option>            </select>            <br/><br/>        </li>        <li>            <p>JavaScript debugging</p><br/>            <select name="JSdebug">            <option value="true"<?php $param->default_param("JSdebug","true"); ?>>Yes</option>            <option value="false"<?php $param->default_param("JSdebug","false"); ?>>No</option>            </select>            <br/><br/>        </li>        </ol>    </div></div></div><br/><input id="paramsubmit2" type="submit" value="SUBMIT"></form>


_____________________________________________________________

I've opened the index.php with notepad++ The complete code above is in "line 1" ?!? The unexpected '{' is a open tag or ? I know a bit html but not to much about php.

So whats to do ? How to solf that erreor? Hope someone can help me.

Best regards from Germany and sorry for my bad english stammering, hope You understand what I mean?

Andy
64
3

Sometimes people do not need to answer to new messages. They just read them, and after that they want to mark messages as "Read".
But on my installation the New Message notification is blinking in Firefox and Chrome forever, unless it's answered. Then this little "loop" returns to the original sender.
Shouldn't this be corrected somehow?
Thank you.

Little edit: What if you write the "if" in your script, that checks, let's say, if the user's mouse was over the new message, or something like that, and then the new message notification disappears?

51
2

I'm Use:

JoomlaSpanishServer and Uniform Server RC3
Joomla 1.5.23
FreiChatX.5.2.Beta

My root on localhost
http://localhost/vestatv/

When the installer is in step4: Configuration Details, i'd introduced all the information but the installer went to a blank page,

I'd checked some post in the forum and the PHP has PDO, I've installed the module mod_freichatx-i before summit the form (step 4)

What I'm doing wrong?

Thanks

40
1
xGhos7 posted Jul 8 '11 at 12:45 am

Hi
I installed the chat and the form, but it gives me an error in the administration:

Parse error: syntax error, unexpected '{' in /web/htdocs/www.namesite.it/home/freichat/server/admin_files/home/index.php on line 1

What should I do?

PS: sorry for my English

46
1

Let me cite myself from a few minutes before:

"4. How can I, as an owner of a website, be sure, that some stupid pedophiles, terrorists, or, even better, CIA, or FBI are not using my Freichat installation to conduct their disgusting activities? Where is the control panel for moderation? Banning? Assigning moderators -by my criteria - may be by countries, or, even better - by languages used?"

I think this issue is VERY important. Just imaging 2 (or 1000) guys decided to register on any of my websites, and then discuss their plans and actions in a total privacy. Exchange drafts and photos, exact locations and executors...

I'm not in a hide myself, if you remember how I exposed user names and passwords to test my previous website - but I know the realities.

Oh... And in this case - I do not give a ********** and ********* (guess the words) about 1st amendment in US, and freedom of speech in Belorussia - it's their problem ) I have the only freedom - to be silent, and to enjoy silence - and I follow it. Sorry for non related thought in this technical forum :) Just came home, very tired, you know...
Thank you.

My own edit: this question is here, because to my understanding from now on Freichat is not dependent on Joomla or any other CMS installation anymore. Am I right? So the only way to deal with users - is from CMS backend. But how do I know WHAT my users are doing in that chat - what if tomorrow a bomb explodes somewhere in Afghanistan (and I'm pretty sure -it will), and they discussed it on my website a day before in their tribal coded narrative, hardly understandable by any regular Pushtu speaker not used to everyday combat situations and radio codes? (Sorry again - my son does play Call of Duty :)

88
10

Thank you for your previous support on older versions of Frichat. They are all working, and I'm happy.
On my recent site - unknowndominicana.com that I'm creating right now, everything is supposed to be in Russian. However I have a few questions (I installed a new version just today).
1. The lines from Read me file:
a) Note anyone wanting cyrillic characters or having issues with languages in chat must disable wordwrap.
One can do that by going to
~/freichat/server/freichat.php
Search and comment the following line:
$message=mywordwrap($message);
It should look this way:
//$message=mywordwrap($message);

are no longer valid, because there is no line like that.
I commented all that block - no use.
Can you help, please?
All you see in the chat window is ??????????????????????????? ???// ????? ?????
How do you like it? :)

2. How do I remove the "Additional Options" little icon, because it is there for nothing, just opens a little icon of a home on top ?

3. How can I translate all the front end interface in Russian? And how can I submit that translation to you, so that switching to Russian would be available to everybody? It'll take me 30 minutes top (if I'm not working that day :S )

4. How can I, as an owner of a website, be sure, that some stupid pedophiles, terrorists, or, even better, CIA, or FBI are not using my Freichat installation to conduct their disgusting activities? Where is the control panel for moderation? Banning? Assigning moderators -by my criteria - may be by countries, or, even better - by languages used?

Or... last thing about this installation - the avatars from my old JomSocial version are not displayed. They all are working on my older sites with older versions of Frichat.
Thank you.

73
1

i tried installing freichat to my localhost. of course, database is root, and no pass.

my question is, since the installation is manual, how will i be able to change the database information if i want to upload my site? suppose that my username for the database is donald and password is gwapo. thanks

61
6
kapilsahu posted Jul 2 '11 at 10:45 pm

hello sir first thing i want to say that freichatx rocks

i have one problem i am using joomla 1.5.23 +jomsocial 2.2 with freichatx 5.2 but the chat speed is too slow means when i one send message to their friend it will take too much time to recieve message to other friend.The message will not be quick as just like in facebook or other site where we send message & it recieve to user quickly .
I have change the Time interval between messages to 0.5 sec what was the problem.
I have one more problem whenever there is multiple window of website open in a browser when message send by buddies the message will not update in all the window & sometime message is not recieved also on any window if i send message to user from one window this message is not also update in every window please look into that matter because it is very important thing for a chat.
The website is www.yedels.com

67
4
kapilsahu posted Jul 2 '11 at 10:29 pm

hello sir i have one problem on my site i am using joomla 1.5.23 + jomsocial 2.2 with freichatx 5.2 the avatar for the all the user is default showing means the user avatar is same for all user but when i am using freichatx 5.1 it is showing each user avatar correctly without any problem. i use joomla+jomsocial driver while installing.
My website is www.yedels.com

72
2

I have been using freichat from past few months. I upgraded to the new version. But now the chat window is not getting displayed.

URL: www.inknpost.com
Joomla Version: 1.5
Freichat Version : 5.2
Previous Freichat version: 5.1
Installation type: Module based.
Module Position: Left (Below login)
Problem : Chat window not getting displayed in any page

Log file entry:
July 2, 2011, 3:12 pm: main.php loaded
July 2, 2011, 3:12 pm: connected to database successfully
July 2, 2011, 3:12 pm: Inserted the user with the following data :: Username = admin And ID = 62 Default status = I am available

Kindly let me know what i can do ?

Thanks

50
1
appma posted Jul 1 '11 at 1:51 pm

Dear FreiChat developers,

I like FreiChat very much. FreiChat has also a driver for SugarCRM, but when I use it in combination with SugarCRM 6.2 it doesn't work, I think this is because SugarCRM 6.0 is supported. I was wondering if SugarCRM 6.2 will be supported in the near futher?

Kind regards,

appma

135
8
toyotex posted Jun 29 '11 at 10:43 pm

Hello reader,

I have installed Freichat together with Community Builder on Joomla.
Though, I have some issues:

Connections are enabled in Community Builder and I think Freichat is installed properly.
But, avatars do not show in Freichat?
Also, Freichat is showing every online (Registered) user, isn't it supposed to show friends/connections of the Community Builder? Or am I wrong?

How do I get avatars to show and (if possible) only show friends/connections of the Community Builder?

BTW: I do like this extension very much! Thanks alot to the finder and builders of this product.

Thanks in advance,
Kevin

80
1
ricosala posted Jun 29 '11 at 4:54 pm

Ok, this is a silly question I know. I forgot to write down the coded added to my files and I wanted to unistall then do a clean reinstall of freichat. Can someone help with the code that is cut and pasted.....that should now be removed? And which file it went into. I would appreciate the help although I know this is a silly question.

114
10
lvzweven posted Jun 24 '11 at 7:51 am

Hi,

Yesterday, Ive installed the latest version of FreiChatX on my Joomla 1.6 installation. I 've also downloaded and installed the module through the Joomla installer. I've placed this module in the same position as the login module and published it. Now, the only thing that is showing is the title of the FreiChatX module. There is no link or something else in the module. Please, can you help me?
Please notice that the module is only showing for registered users. If you want it, I can provide you a user account via pm.

96
17

Just installed FreiChatX 5.2 and I'm finding that the first message never goes through and some messages are sporadically lost after that. This is happening with both Firefox and Chrome. I'm not using custom templates but i have used other templates that came with the install. I have only one friend on list. Tried chat interval setting for 1 second and also .5 seconds, changed chat speed from fast to very fast with NO difference. I am also testing with satellite internet (Hughesnet) so is this an known issue or perhaps on my end with Hughesnet. This is definitely not on a free hosting account.

Please help.... Thank you. :-)

66
3
martimb posted Jun 20 '11 at 11:55 am

I instaled freichat by readme.txt chat not viewed in site. I have Joomla 1.5 with CB and 5.1 alpha.
In source code is it. I don't no, where is problem.
Please help me and i create for us full czech lang. :-)
Thanks.

46
0
Dprince1 posted Jun 20 '11 at 3:19 am

this is what i have been searching for my website for a long time now.

Thank you for making this. it is amazing

55
3
sounds posted Jun 16 '11 at 11:34 am

Hi,

I have joomla 1.6.3 and i used your FreiChatX.5.1.Alpha release.
My joomla site is installed in the subdirectory /main so that is where i uploaded the folder freichat.

I had an error related to pdo, but read your forums and got that installed on the server then went
through the installation steps which worked fine,
I am a bit confused how all this works
I am at step 5 now, i choose the module download and i publisted that in the footer position.
I can see a small green icon for freichat on the bottom right of my site but it says nobody online when i login to the site.
Maybe that's because i'm the only one logged into my site?

Also when i goto the /freichat/server/admin.php to edit the paremiters i see an error when i login.
Parse error: syntax error, unexpected '{' in /home/mysite/public_html/main/freichat/server/admin_files/home/index.php on line 1

I'm sure that's easily fixed but i'm still confused if this thing is setup right.
I hate to leave something unfinished but im half asleep now, i'll check back later.

Also i notice the site is running kind of slow now that this is installed.

Thanks in advance

74
7

I have installed the latest version of the plugin but when i change in the backend option to "Buddies", it doesnt seem to be working. All the registered users are able to see the logged in users who are not their friends in CB.


- Srikanta

1.37k
6.23k
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