As of now there is a Drupal 7 port thanks to permutations.

Here is a first beta version of how the version 2 of this module could look like:

Features set:

  • Libraries support, no complicated setup procedures
  • JS support, high performance ajax callbacks
  • Detailed requirements messages in the status page
  • Display phpFreeChat on any view mode, even custom (only one chat will load on a page)
  • Two new hooks for altering parameters (because a lot has been removed on the admin form):
    • hook_phpfreechat_global_params_alter() (site wide)
    • hook_phpfreechat_local_params_alter() (node only)
  • Cleaner admin form for new Drupal users
  • A few (important) and extra security measures agains hijacking of a chatroom
  • Protection agains ripping chat logs

Known issues:

  • After saving the global settings, chatboxes won't reload sometimes. To fix this, clear the cache or resave the chat node.
  • Chat room titles and channels fallback isn't working smooth
  • Blocks are missing, needs a rewrite
  • No auto logout, like 7.x-1.x

If there is something missing or not working out of the box, please tell.

P.S. You still need to download phpfreechat 1.7 on your own ;)

Comments

tessa bakker’s picture

Issue summary: View changes
tessa bakker’s picture

Priority: Critical » Minor
Status: Needs work » Closed (won't fix)

There isn't any need for an upgrade of this module, so I won't update this issue with a better version.
Feel free to re-open if it's needed.

Known problems while installing:
* Drush shows a few warnings and error's
** setup Private folder before installing
* Chatbox loads, but no working chat
** save the configuration page ones

igorik’s picture

Hello,
I tried to create node (content type with aways enabled phpfreechat)
but i got this error:
Fatal error: Class 'pfcInfo' not found in /var/www/somvprahe.sk-nove/sites/all/modules/phpfreechat/includes/phpfreechat.helpers.inc on line 437

When I change phpfreechat setting "show Chatbox" to never on the content type settings, then the node is created/shown. However, when I change it back, instead view of node I got the error message above.

The other thing - but it is probably what you noted here - these warning + 2 errors:

igorik@svp-new:~/www/somvprahe.sk-nove/sites/all/modules$ drush en phpfreechat
The following extensions will be enabled: phpfreechat
Do you really want to continue? (y/n): y
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:2230
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:2230
WD file: The file permissions could not be set on private://phpfreechat. [error]
WD phpfreechat: Failed to create needed directories inside the public or [error]
private stream.
phpfreechat was enabled successfully. [ok]
phpfreechat defines the following permissions: admin phpfreechat, access chatrooms, create chatrooms, moderate chatrooms
WD memcache: Spent 52.13 ms splitting 1.11 MB object into 2 pieces, cid = [warning]
svp-nove-cache-schema

tessa bakker’s picture

Hi igorik,

Fatal error: Class 'pfcInfo' not found in /var/www/somvprahe.sk-nove/sites/all/modules/phpfreechat/includes/phpfreechat.helpers.inc on line 437

Solution: Move your phpfreechat library (inside modules/phpfreechat/phpfreechat) to 'libraries/phpfreechat'. After that the module 'Libraries' will detect phpfreechat and setup all the required paths for you.

When I change phpfreechat setting "show Chatbox" to never on the content type settings, then the node is created/shown. However, when I change it back, instead view of node I got the error message above.

Same solution as above

is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:2230
is_dir(): Unable to find the wrapper "private" - did you forget to enable [warning]
it when you configured PHP? file.inc:2230
WD file: The file permissions could not be set on private://phpfreechat. [error]
WD phpfreechat: Failed to create needed directories inside the public or [error]
private stream.

In the old setup chatlogs could be viewed by every user on the internet, in this version they are much more protected with the your drupal salt (see settings.php) and private folder setup.
Solution: Setup you 'Private file system path' admin/config/media/file-system

Hope this helps.

igorik’s picture

StatusFileSize
new202.99 KB

Hello Tessa,
I tried your phpfreechat module on clean d7 instalation on my computer, but still I have no success...
I have phpfreechat script 1.7 extracted in libraries/phpfreechat

1. after enabling, I got these warnings:

Igors-MacBook-Pro:modules igorik$ drush en phpfreechat
The following projects have unmet dependencies: [ok]
phpfreechat requires libraries
Would you like to download them? (y/n): y
Project libraries (7.x-2.2) downloaded to /Users/igorik/Documents/dev[success]
desktop sites/test_chat/sites/all/modules/libraries.
The following extensions will be enabled: phpfreechat, libraries
Do you really want to continue? (y/n): y
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:437
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:2230
is_dir(): Unable to find the wrapper "private" - did you forget to [warning]
enable it when you configured PHP? file.inc:2230
libraries was enabled successfully. [ok]
phpfreechat was enabled successfully. [ok]
phpfreechat defines the following permissions: admin phpfreechat, access chatrooms, create chatrooms, moderate chatrooms
Igors-MacBook-Pro:modules igorik$

2. after creating content type "chat" with phpfreechat settings always enabled
I recieved this notice:
Notice: Undefined variable: extra in phpfreechat_field_extra_fields() (line 367 of /Users/igorik/Documents/dev desktop sites/test_chat/sites/all/modules/phpfreechat/phpfreechat.module).

3. after creating node using content type "chat" with phpfreechat enabled, I revieved this error:
Strict warning: Non-static method pfcGlobalConfig::_GetCacheFile() should not be called statically, assuming $this from incompatible context in pfcInfo->pfcInfo() (line 18 of /Users/igorik/Documents/dev desktop sites/test_chat/sites/all/libraries/phpfreechat/src/pfcinfo.class.php).
+
phpfreechat is loaded but not connected - I added a screenshot here.

Thank you for your help.
Igor

tessa bakker’s picture

Hi Igor,

I created a sandbox added a few requirement checks and removed the strict warning.

https://www.drupal.org/node/2469257#comment-9811797