0 Members and 1 Guest are viewing this topic.

*

insha

  • **
  • 50
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #30 on: September 24, 2016, 09:18:12 PM »
i have installed freichat v10 in my osdateevo for testing, i only get showing "Getting list available users..."

This is code from plugin for osclass script, the creator of plugin said that v10 have some bugs here http://plugins-zone.com/product/freichat/

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #31 on: September 24, 2016, 09:23:57 PM »
Hi insha,

Ok thanks heaps, yes version 10 does have lots of bugs in it.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #32 on: September 25, 2016, 06:42:26 AM »
i have installed freichat v10 in my osdateevo for testing, i only get showing "Getting list available users..."

This is code from plugin for osclass script, the creator of plugin said that v10 have some bugs here http://plugins-zone.com/product/freichat/

Hi insha,

In version 10, I get one online users showing but can't get more than that with 2 or more users logged in.

I have downloaded other versions from there bitbucket.org site to test and see which one works best.

Version 1.0.5 causes a fatel error in PHP 5.6 in this section of the code.

Code: [Select]
// This is needed in order to be able to activate the plugin
osc_register_plugin(osc_plugin_path(__FILE__), 'freichat_install');

// This is a hack to show a Uninstall link at plugins table (you could also use some other hook to show a custom option panel)
osc_add_hook(osc_plugin_path(__FILE__)."_uninstall", 'freichat_uninstall');

osc_add_hook(osc_plugin_path(__FILE__) . '_configure', 'freichat_admin');

osc_add_hook('before_html', 'freichat_user_online') ;
osc_add_hook('logout', 'freichat_user_logout') ;
osc_add_hook('admin_menu', 'freichat_admin_menu');


if(osc_get_preference('freichat_show_chat', 'freichat')=="enable") {
osc_add_hook('item_detail', 'freichat_show_chat');
}

if(osc_get_preference('freichat_chat', 'freichat')=="enable") {
osc_add_hook('header', 'header_add_chat_code');
}

Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

insha

  • **
  • 50
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #33 on: September 25, 2016, 09:45:40 AM »
Can you post here code for frei chat integration so i can test it ?

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #34 on: September 25, 2016, 10:59:59 AM »
Hi insha,

Here is what the person from freichat changed.

In the index_header.tpl add this:

Code: [Select]
<script type="text/javascript" language="javascipt" src="{$DOC_ROOT}freichat/client/main.php"></script>
<link rel="stylesheet" href="{$DOC_ROOT}freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">

In the index.php add this about line 62:
Code: [Select]
/* FreiChat STARTS HERE */

if($Username_And_Password_Match)
{
   $_SESSION['UserId'] = $users['id']; // Modify to suit your requirements


$ses = null; // Return null if user is not logged in
 
if(isset($_SESSION['UserId']))
{
  if($_SESSION['UserId'] != null) // Here null is guest
  {
   $ses=$_SESSION['UserId']; //LOOK, now userid will be passed to FreiChat
  }
}
}
 
if(!function_exists("freichatx_get_hash"))
{
function freichatx_get_hash(){

       if(is_file("/public_html/YOUR-DOMAIN.COM-HERE/freichat/hardcode.php")){

               require "/public_html/YOUR-DOMAIN.COM-HERE/freichat/hardcode.php";

               $temp_id =  $ses . $uid;

               return md5($temp_id);

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

       return 0;
}
}

For YOUR-DOMAIN.COM-HERE, either www.domain.com or domain.com it can be the folder name where the script is.

In /freichat/client/ change the main.php for the attached one.

In /freichat/server change the freichat.php for the attached one.

Still waiting for this to be fixed correctly.
« Last Edit: September 25, 2016, 11:05:21 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #35 on: September 25, 2016, 11:24:27 AM »
I forgot this:

In the hardcode.php change this:
Code: [Select]
/* Custom driver */
$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)

To this:
Code: [Select]
/* Custom driver */
$usertable='user'; //specifies the name of the table in which your user information is stored.
$row_username='username'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='id'; //specifies the name of the field in which the user's id is stored (usually id or userid)

And also make sure the hardcode.php has this where the DB connection is:
Code: [Select]
$driver='Custom'; //Integration driver
$db_prefix='osdate_'; //prefix used for tables in database

So it should look like this:
Code: [Select]
<?php
/* Data base details */
$dsn=' ';
dbname=' '//DSN
$db_user=' '//DB username 
$db_pass=' '//DB password 
$driver='Custom'//Integration driver
$db_prefix='osdate_'//prefix used for tables in database
$uid='57bcd0e267f2f'//Any random unique number

$connected='YES'//only for custom installation

$PATH 'freichat/'// Use this only if you have placed the freichat folder somewhere else
$installed=true//make it false if you want to reinstall freichat
$admin_pswd='YOUR PASSWORD'//backend password 

$debug true;
$custom_error_handling='YES'// used during custom installation

$use_cookie='true';

/* email plugin */
$smtp_username '';
$smtp_password '';

$force_load_jquery 'YES';

/* Custom driver */
$usertable='user'//specifies the name of the table in which your user information is stored. 
$row_username='username'//specifies the name of the field in which the user's name/display name is stored. 
$row_userid='id'//specifies the name of the field in which the user's id is stored (usually id or userid)


$avatar_table_name='members'//specifies the table where avatar information is stored
$avatar_column_name='avatar'//specifies the column name where the avatar url is stored
$avatar_userid='id'//specifies the userid  to the user to get the user's avatar
$avatar_reference_user='id'//specifies the reference to the user to get the user's avatar in user table 
$avatar_reference_avatar='id'//specifies the reference to the user to get the user's avatar in avatar
$avatar_field_name=$avatar_column_name//to avoid unnecessary file changes , *do not change

« Last Edit: September 25, 2016, 11:32:58 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

insha

  • **
  • 50
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #36 on: September 25, 2016, 11:26:26 AM »
Yes i changed that after.
With this i cant get load freichat on my site at all:
my path is: /home/mojduo/web/mojduo.com/public_html/freichat

On your demo load ?

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #37 on: September 25, 2016, 11:41:00 AM »
Yes i changed that after.
With this i cant get load freichat on my site at all:
my path is: /home/mojduo/web/mojduo.com/public_html/freichat

On your demo load ?

That looks correct but missing the /hardcode.php so yours in the index.php would be ( THIS IS THE OSDATE INDEX.PHP)
Code: [Select]
if(is_file("/home/mojduo/web/mojduo.com/public_html/freichat/hardcode.php")){

               require "/home/mojduo/web/mojduo.com/public_html/freichat/hardcode.php";

Make sure you edit the correct index_header.tpl file in the correct template name on the safe side
add to both the default and the default-3-column templates.

I see you are using the old versions not EVO.
« Last Edit: September 25, 2016, 11:51:03 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

insha

  • **
  • 50
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #38 on: September 25, 2016, 11:45:10 AM »
This doesn't work for me, can you try ? i can send you my ftp details.

*

insha

  • **
  • 50
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #39 on: September 25, 2016, 11:45:40 AM »
I installed freichat v10 if that is the problem

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #40 on: September 25, 2016, 11:54:07 AM »
I installed freichat v10 if that is the problem
Yes it's for version 10.

Send the ftp details but can't look now as it's midnight here and I am off to bed.
Will look at it in the morning.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

insha

  • **
  • 50
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #41 on: September 25, 2016, 11:59:05 AM »
I sent FTP details in email, ok you can do when you have free time.

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #42 on: September 25, 2016, 09:37:09 PM »
Hi insha,

I will have a look soon.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

insha

  • **
  • 50
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #43 on: September 25, 2016, 09:39:58 PM »
Ok, thank you. Now here is almost a midnight, and soon going to bed.  :)

*

Pharg

  • *****
  • 3,118
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Freichat
« Reply #44 on: September 25, 2016, 09:56:13 PM »
Can't login to your ftp for some reason.

When I use CuteFtp it has a second password wanted.
FileZilla says unsecure
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35