I'm working on the Drupal 7 port. I've got a lot of it working. The part I just got working was to add the phpFreeChat fields to the Content Type edit forms. This was kind of a pain because the Content Type area looks very different in Drupal 7. I spent a lot of time looking at this code, and realized that it's not just the Content Type edit forms that are supposed to have these additional fields. The Add Content nodes also are supposed to have them - but they don't, and they never have.

I checked the release module for Drupal 5 and Drupal 6, and this bug was never fixed - not before or after I inherited the code. Since it's never worked and no one has ever mentioned it, it's not high priority for me to fix. But if anyone wants to look at the code in question, I posted about it in the Drupal forum (to, of course, resounding silence):

https://www.drupal.org/node/2431113

No one ever answers me there. I don't know why I bother. For that matter, no one ever answers me here, either, but I'm doing this port for myself so I don't care that much.

If no one can be bothered to answer my Git questions (I got no answer in the Drupal forum about that, either), I may just post the Drupal 7 module on my own Web site and not bother with uploading it here. I've already spent a sick number of hours on this.

Comments

tessa bakker’s picture

Hi Permutations,

I know it is hard to code with Drupal, especially when you want to create a module.
I didn't read the issues for phpfreechat, but if you want my thoughts, this is what I should do.

Create a totally new module
Build chat blocks based on settings (CTools or Entity API)
This works great with Context and/or Panels and also every newbie understands this better.
With this, dump the content-type options, because only a selected group of users will use this.

For a the CTools way, you can take a look at custom_help_text, if you still want to fix the content-type options, look at Weight or maybe better: Webform

I hope this will help, if not, just shout ;)

tessa bakker’s picture

For any Git questions, you can contact me through my profile

permutations’s picture

Tessa, I'm not going to start from scratch. You are certainly free to start a completely new project if you want to. I'm very close to getting this working. I just have a little bit more of the database code to translate over, and it's done.

I badly need help with Git. I will contact you through your profile. Thanks very much!!

permutations’s picture

Just to give a progress update on the Drupal 7 port... It installs (and uninstalls) correctly. The phpfreechat table is correctly created. A new section is created in the Content Types edit form for phpFreeChat fields so you can add phpFreeChat to any Content Type, or you can create a new Content Type called Chatbox (which is what I do). When you install it, the Help, Permissions, and Configure links appear as they should and all work. The Configure page comes up correctly and appears in the Content section of the Administration page. The phpFreeChat Configuration page works - you can change and save the settings. All that took work - quite a few hours of work.

The last piece is to actually get the chatbox to load, which involves updating the database calls. That's the point at which I quit last night. I'm working on that today.

permutations’s picture

I wasn't specifically looking to fix this bug I reported, but when I started working on the Drupal 7 port again today, I took another look at the code and I saw the problem. It's fixed in both the Drupal 6 and Drupal 7 versions of the module. You can download the updated Drupal 6 module from my Web site. I'll eventually email Tessa about Git. I want to finish the Drupal 7 port first.

http://permutations.com/drupal/

permutations’s picture

Status: Active » Closed (fixed)