• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Joomla, Drupal, and Wordpress (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

bug fixes for Drupal integration module

Integration help for Joomla, Drupal, and Wordpress

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
6 posts • Page 1 of 1

Postby permutations » Wed May 07, 2008 12:51 pm

I've posted an update of the Drupal integration module for phpFreeChat on my Web site. It contains numerous bug fixes. This is a new version with two additional fixes:

http://permutations.com/drupal/phpfreechat.php
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby permutations » Wed May 07, 2008 3:51 pm

If you downloaded the 1.1a update from my Web site early this morning, please download it again. Two hours after I uploaded it, I uploaded it again with a small change. The fix to the timeout problem was to change the default timeout in phpFreeChat. I forgot I'd made this change in phpFreeChat itself and not in the module. I changed it so the default is set in the module. The only file changed is phpfreechat.module.
Last edited by permutations on Wed May 07, 2008 3:52 pm, edited 1 time in total.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby pcs305 » Wed May 07, 2008 4:48 pm

Thank you for your work permutations!
The "official" drupal module did not work for me I will test your's and give feedback.
pcs305
New member
 
Posts: 4
Joined: Wed May 07, 2008 4:45 pm
Top

Postby permutations » Thu May 08, 2008 6:52 am

I just uploaded a new version:

http://permutations.com/drupal/phpfreechat.php

I backed out setting the default timeout to 35000 in the module. It's not working because the "negative number" error is still happening after clearing the cache (/rehash). The timeout needs to be changed to avoid disconnects, and the easiest way to do this is to change it directly in pfcglobalconfig.class.php. phpFreeChat has an integer check in there, and Drupal's form API doesn't have an integer type. I tried to identify the integer strings and change them and it worked in a test file, but not in the module.

pfcglobalconfig.class.php is in the phpFreeChat src directory (it's not a module file).

1. To change the default timeout, find this variable assignment and change the 20000 to 35000:

Code: Select all
var $timeout = 35000;

2. To get rid of the negative number error, comment out this code in pfcglobalconfig.class.php:

Code: Select all
/*   
    $numerical_positive_params = $this->_params_type["positivenumeric"];
    foreach( $numerical_positive_params as $npp )
    {
      if (!is_int($this->$npp) || $this->$npp < 0)
        $this->errors[] = _pfc("'%s' parameter must be a positive number", $npp);
    }
*/
Last edited by permutations on Fri May 09, 2008 2:28 pm, edited 1 time in total.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby permutations » Sun May 11, 2008 5:14 pm

I created a Drupal theme that is compatible with phpFreeChat that you can download from my Web site:

http://permutations.com/drupal/phpfreechat.php

With Internet Explorer 7, if phpFreeChat is embedded inside a table, the chat scrollbar keeps jumping up so you can't read new messages. You can use the chat only with Firefox, or you can use this theme, which uses CSS rather than tables for positioning. This clean and simple theme comes in blue or purple, and supports all Drupal theme features and many different block areas.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top

Postby permutations » Sat Nov 29, 2008 5:35 am

I have a final update of this code on my Web site that also includes an "away" command. Those not using Drupal can still grab the "away" command from the "extras" directory.

http://www.permutations.com/drupal/phpfreechat.php

This package also will be uploaded to Drupal.org in the next day or so - I'm still learning how to use CVS.
permutations
Member
 
Posts: 88
Joined: Thu Apr 24, 2008 1:09 pm
Top


Post a reply
6 posts • Page 1 of 1

Return to Joomla, Drupal, and Wordpress (v1.x)

Who is online

Users browsing this forum: No registered users and 4 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub