hi
with latest beta version which is finally running, no default chat room is created.
I set rooms a,b in phpfreechat default settings, rooms c,d in node type (I created a CCK nodetype named "chat") and rooms e, f in edit node in which I have a chat.
No room from a, b, c, d, e, f was create.
I have default settings, in settings for my node type I have set always for showing chat.
So - after chat is started - there is one (probablky default) room with name "Room"
(anyway, owahab - many thanks for that you doing on implementation of 1.0 version)
Thanks
Igor
somvprahe.sk
Comments
Comment #1
owahab commentedBug fixed in -dev, please test with -dev and let me know.
Comment #2
igorik commentedhi, no progress, I created a new chat - http://www.somvprahe.sk/chat-3-pokus but there is one default room only although I have more default rooms with various names in settings.
Igor
Comment #3
permutations commentedThis bug still exists - no default rooms are created (running 5.x-1.0-rc4). Also the default title is ignored.
Could you describe the general area in the code where the problem is so I can look, too?
Comment #4
permutations commentedI wasn't able to fix the global defaults, but I did fix the problem of node-specific data being ignored. Fix is described here:
http://drupal.org/node/250069
You can set the default rooms in each node now and they will be used.
Comment #5
permutations commentedI tracked this down. The settings are saved, but you have to clear both the phpfreechat cache and your browser's cache to see them. Here's info on clearing the phpfreechat cache:
http://www.phpfreechat.net/faq#how-to-rehash-the-chat
The parameters in the module don't match 100% the current version of phpFreeChat (v1.1). I thought about updating it, but I don't use any of the parameters so it's more trouble than it's worth. I did get as far as pulling them out of the code, and reformatting them so generate-form.php would work on them. But then I didn't code it.
Here are links to other fixes I posted for phpfreechat:
Database bug (fix this first - blocks bug needs it):
http://drupal.org/node/250069
Blocks bug:
http://drupal.org/node/200962
Scrolling bug in IE 7:
http://drupal.org/node/225162
Comment #6
permutations commentedTurns out there were a lot more problems with room settings than an uncleared cache. There were logical errors in the code, plus there was the same typo in a room variable name as I found in another function.
Here's a replacement for phpfreechat_prepare_params() in phpfreechat.module that corrects all these problems and actually works. Note that some of the parameters in the module are no longer current for phpfreechat v1.1. But for everything that is current, setting changes will work - and specifically, room settings will work.
Comment #7
permutations commentedI fixed all the bugs in the phpfreechat module (a few more than are listed above), updated the module version to 5.x-1.1, and posted the full package on my Web site here:
[Maintainer edit: Link removed. Advertising forks in the issue queue of forked module is rude.]
I emailed the original author of the module about creating a new download, but he never answered me. There were too many changes to track of as individual patches.
Comment #8
owahab commentedThanks permutations for your effort.
The fix you posted didn't allow phpfreechat 1.1 to work so I had it modified a little bit.
Thanks again for your effort.
Comment #9
permutations commentedphpFreeChat 1.1 is running just fine on my site. What problem did you find? What change did you make?
Comment #10
igorik commentedmodule from permutations (from May 1st, download from his page) works fine for me, on phpfreechat 1.1 and drupal 5.7,
everything works, default rooms are created right I imagine it.
many thanks for it
Igorik
http://www.somvprahe.sk
Comment #11
igorik commentedI have a question, can be user "permutations" (if he/she will be interested) added as maintainer/coomaintainer for this module?
I see no changes for this module from end of the last year, this is for the first time for whole year what everything on drupal phpmodule works correctly for me, so it can be great if now is here somebody who will be works on it (the best you both).
thanks
Igorik
http://www.somvprahe.sk
Comment #12
permutations commentedWhether I should be a maintainer is being discussed over here: http://drupal.org/node/242000
I've made two more fixes - I fixed an error in how the cache was being cleared that caused periodic hangs, and I fixed an error that causes phpFreeChat to report negative values when a numeric parameter was changed. I haven't packaged these up yet, but I will.
Comment #13
permutations commentedI'll post when there's a new version on my Web site - or you can just check the site:
http://permutations.com/drupal/phpfreechat.php
If owahab makes me the maintainer of this module, I will integrate my fixes here instead of posting separately - that is best for all.
In the meantime, owahab should stop removing the link to the fixed version. That's not a service to the community and he should not do that.
If he does again remove the link to the fixed version, just check over in the Drupal section of the phpFreeChat forum. You'll find it there, too. Or you can click on my username there (permutations) and see all my posts.
Comment #14
permutations commentedThere's a new version with two additional fixes on my Web site:
http://permutations.com/drupal/phpfreechat.php
Comment #15
permutations commentedI 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).
To change the default timeout, find this variable assignment and change the 20000 to 35000:
To get rid of the negative number error, comment out this code in pfcglobalconfig.class.php:
Comment #16
sdsheridanPermutations: When did you upload the new version? I just took a look and the timestamps on the files are yesterday's and before, which is the one then I think i picked up yesterday morning. It also still says in the .info file it's version 1.1a, just in case you wanted to change that ;-)
Comment #17
permutations commentedI uploaded it about 2am yesterday morning. It's very strange this file isn't updated because I specifically remember getting the new date stamp. I'll fix it.
The file that changed from 1.1a was phpfreechat.module. The time stamp on the 1.1b version of the file is May 8, 2008, 1:27am. You said things are working on your installation so you must have the right version. Trying to set the timeout in the module broke the chat because of the negative parameter error.
Comment #18
permutations commentedI don't know what happened to the original phpfreechat.info file, but I updated it for 1.1b and uploaded a new version of the package. The only thing I changed besides the .info file is readme.txt. The explanation for the changes in 1.1b wasn't clear so I tweaked it a little.
Comment #19
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.