View Thread
 Print Thread
FreiChat 10
NetriX
Hi everyone,

Crafted this neat integration for PHP-Fusion using a Facebook like chat system.

Update: 9/30/17 - This addon has been tested and met working standards.

How to install:
  1. Upload freichat to base dir - example: your-site.com/freichat
  2. Navigate to installation: your-site.com/freichat/installation/
  3. Go through steps, at integration select "PHP-Fusion"
  4. Ignore get code and use code below inserting it into /themes/template/header.php right about tag.


php-fusion.us/forum/attachments/chat1.jpg

Add to /themes/templates/header.php

Download source  PHP
  1. <?php
  2. if (iMEMBER) {
  3.     $ses=$userdata&#91;'user_id'&#93;;
  4. } else {
  5.     $ses=0;
  6. }
  7.  
  8.  
  9. if(!function_exists("freichatx_get_hash")){
  10. function freichatx_get_hash($ses){
  11.  
  12.        if(is_file(BASEDIR."freichat/hardcode.php")){
  13.  
  14.                require BASEDIR."freichat/hardcode.php";
  15.  
  16.                $temp_id =  $ses . $uid;
  17.  
  18.                return md5($temp_id);
  19.  
  20.        }
  21.        else
  22.        {
  23.                echo '<script>alert("module freichatx says: hardcode.php file not found!");</script>';
  24.        }
  25.  
  26.        return 0;
  27. }
  28. }
  29.  
  30. echo '<script type="text/javascript" language="javascipt"
  31. src="'.BASEDIR.'freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses).'">
  32. </script>';
  33. echo '<link rel="stylesheet" href="'.BASEDIR.'freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">';
  34. ?>


Enjoy!

-NetriX
NetriX attached the following file:
You are not allowed to see attachments in this thread.

Edited by NetriX on 09-30-2017 21:27
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
Tyler
Link is incorrect. 404 page
 
NetriX

Quote

Tyler wrote:

Link is incorrect. 404 page

Fixed! You guys feel free to change this or package as you wish! I wouldn't mind some collaboration on this. Wink
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
adam8779184
what to do to the panel to be seen?
 
Harlekin
The code for the header.php is wrong. The path to the hardcode.php must be change. The hardcode.php is not in THEMES/freichat

Its in INFUSIONS/freichat_panel

and the avatar is not in the onlinelist, there is only an avatar for guest by the member on my testside
Edited by Harlekin on 04-08-2013 05:15
 
https://harlekin-power.de
adam8779184
installed, it looks very nice Smile
 
skpacman
FreiChat is awesome. A few bugs to work out, and some infusion issues, but nothing major.

Will there be a final version of this soon?

This will trump all of my efforts (as long as it passes my tests...)

There are 10 kinds of people in this world.
Those who understand binary,
and those who don't...
 
http://www.skpacman.com
NetriX

Quote

skpacman wrote:

FreiChat is awesome. A few bugs to work out, and some infusion issues, but nothing major.

Will there be a final version of this soon?

This will trump all of my efforts (as long as it passes my tests...)

I just created the implementation, all other progress is open field at the moment. Pfft Why I said someone else can feel free to extend it properly. But I mean, it works as is.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
Vyper69
Ok so I got it working. But it still shows no one online. How do i fix that
 
KasteR
You're not the only one online are you? If so, provide the link and I'm sure someone can test w/you on this.
 
http://kaster.us
Vyper69
http://oilcity-pa.us/weblinks.php

ok i see what is going on. i used ie without logging in on it, and see that i am logged in on chrome.

My only real problem now is that i had to remove the background color from the chat panel tab, because it flowed over my banner. Where is the setting in styles to lower it down.
 
KasteR
Ah, good question. I'd have to take a look at this once I get home. I'm currently at work. Unless anyone can answer in the mean time. I haven't really messed around with this system yet.

By the way, site is looking clean man.
 
http://kaster.us
Vyper69
Thanks
 
uberfox360
This is not working can anyone please give a little help so that i can get it going thank you

Download source  PHP
  1. <?php
  2.        if(is_file(THEMES."../freichat_panel/hardcode.php")){
  3.                require THEMES."../freichat_panel/hardcode.php";
  4.                $temp_id =  $ses . $uid;
  5.                return md5($temp_id);
  6.        }
  7.        else
  8.        {
  9.                echo '<script>alert("module freichatx says: hardcode.php file not found!");</script>';
  10.        }
  11. ?>
 
NetriX
What is the issue? Error?
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
Vyper69
module freichatx says: hardcode.php file not found!

this is the issue.

hardcode.php is not in themes, it is in INFUSIONS

Needs to change to this in the header.php


if(is_file(INFUSIONS."freichat_panel/hardcode.php")){
               require INFUSIONS."freichat_panel/hardcode.php";


Once this change is made all will be fine, with no more error message.

Also it would be nice for the really new user, to already have the install set to false, so that when it is installed, it automatically grabs the database info. Right now it has your DB info in it, and then you have to edit the hardcode.php to fix it

Double the work.

Other than these 2 issues it works great. Thanks

Check it out here: http://oilcity-pa.us
 
Vyper69
Is there a way to optimize the chat. It kind of slows the site down.
Edited by Vyper69 on 07-05-2013 15:35
 
SpaM
and installed correctly, but I added the header.php but adding lines panel nothing comes up not even make mistakes or anything, just does not come out and sailed with another browser than the one use and not work the panel.
 
http://www.spamfusion.com.ar
SpaM
I have configured everything and does not leave a.
SpaM attached the following file:
You are not allowed to see attachments in this thread.
 
http://www.spamfusion.com.ar
NetriX
I'll look at these issues shortly. At the moment I don't have a PHP-Fusion test site setup and having connection issues at home. Bare with me.

Thanks.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
Jump to Forum
Similar Threads
Thread Forum Replies Last Post
Freichat issue Help Addon Requests 2 01-02-2017 09:47