Announcements

The New PHP-Fusion USA
by Homdax - 2 weeks ago
Free Hosting
by NetriX - 3 weeks ago

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 </head> 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['user_id'];
  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 must register or login in order to download this file.

Edited by NetriX on 09-30-2017 21:27

Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Tyler
Link is incorrect. 404 page
 
NetriX

>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 Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
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
 
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...
 
NetriX

>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 Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
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.
 
Vyper69

http://oilcity-pa...blinks.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.
 
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 Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
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

Download source  Code
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.
 
Advertisement
SpaM
I have configured everything and does not leave a.
SpaM attached the following file:
You must register or login in order to download this file.
 
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 Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Jump to Forum:

Users Online

Statistics
> New Members:
Today: 0 » Last 7 Days: 4 » Last 30 Days: 14
> Guests Online:
> Members Online: 0

> Welcome to our newest member, harvey
> Total Members: 1013
> Total members who have visited today: 5
NetriX , lundeborg , douwe_yntema , afoster , daimonbok
Birthdays No Birthdays Today