Making the xmppclient module optional for sites that work with external xmpp servers.
| Project: | XMPP Framework |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Here's a set of patches and a new module - xmpp_user.module.
The module simply adds an admin and user forms to setup basic configuration options. The admin form lets you set a default sending JID/password for which it will send XMPP messages from, and the user form adds a single field to the user account settings for a JID that the user prefers to receive messages to. It's currently as minimal as possible, and can be added to as needed.
An example use case for this is simply sending XMPP notification messages to a user's google chat account when certain events occur, like a new comment on one of their posts, or a new piece of content created.
I've tried to pull in a lot of the related functionality in the xmppclient module so that it will still integrate easily with the other modules in the package. As well, I've tried to stick to the commenting/coding standards already in place in the other modules.
The three patches add compatibility for the xmpp_user module. I've tried to keep everything so that it will work seamlessly with either xmppclient or xmpp_user, depending on if the xmpp_user module is being used. It may be best to pull out configuration settings from xmppclient and put them in xmpp_user in the future, but for the time being this should work.
| Attachment | Size |
|---|---|
| xmpp_user.tar_.gz | 2.75 KB |
| xmpp_api.module-xmpp_user_compatibility.patch | 1.51 KB |
| xmpp_messaging.module-xmpp_user_compatibility.patch | 1.32 KB |
| xmpp_notifications.module-xmpp_user_compatibility.patch | 2.28 KB |

#1
Was thinking we really need to have the xmpp_user module and completely remove xmppclient from it, if the user wishes to use the client they will have to have xmpp_user installed because the xmppclient table will no longer exist and we will utilize it through the xmpp_user table.
I am planning to start on this in the next week or so, but will look at how you have the portions set up in the patches.
Thanks for the thought and work that went into them.
#2
how is this going? subscribing..
#3
This issue is now resolved in the 6.2 version of the module so closing the ticket
#4
Well, actually this issue isn't solved, since I received the same error message "missing xmpp_user" :-(! I'm using the newest version of Drupal (6.11). I'm not that good in code writing, so I'm kind of lost with this error message. Anyway, that error message occured, when I installed the module "Messaging XMPP ". Would be great, when there'd be a simple solution out there.
Anyway, thank you all for all your Support!!!!!!!
#5
You need the enable the xmpp_user module otherwise Drupal has no way of knowing that the user has a mapping between an xmpp jid and a drupal user.
So basically you enable xmppframework, xmpp_user, one of the underlying apis for the framework going to assume xmpp_api and then messaging portion. In the Dev branch 6.x-2.x.dev which is the latest version all of the dependencies and other things are there hence if you installed it correctly and un-checked the other ones before hand the issue you are seeing above will not occur since the module xmpp_user is not allowed unless the xmppframework module is installed and the same goes for the messaging_xmpp it needs xmpp_user in order too work.
#6
Hi Darren,
thank you for your extremly quick response! Well, my xmppFramework is already enabled, and the module "xmpp_user is not even listed in my module section, so I can't enable it :-(! (Btw, I'm using drupal 6.11). Yes, you are totally right; because of the missing xmpp_user, I'm unable to enable the entire Messaging board. But my "xmpp framework" appeared as enabled without showing any issues :-S.
The only 2 missing messages, they still appear are "xmpp_user in "Messaging XMPP", and under the "User Relationships" section in "UR-views", the item "views" appeared as missing. At the gbeginning I though, that this one doesn't have to do with the other one, was I wrong than :-S?
When I understood you well, when I install xmpp framework, I need to disable all other modules?
So, it that means, I should uninstall, xmpp framework once again, disable all other modules, than copy the file "xmpp_user.tar_.gz" inside to the framework folder, and install it again to the module folder?
thank you again, I really appreciate your help!
#7
No this is closed the above is not part of any official release, go to the http://drupal.org/project/xmppframework and the 6.2.dev development branch is stable currently and integrates with the new messaging functionality. That is what you need to install on the system.
#8
Gosh, this was a very quick response :-)!
Hmmm...... I uninstalled the existing framework, and reinstalled the new on, from the link you sent me, but the issue still persists ("missing xmpp_user") :-(. What do you mean by the "6.2.dev development branch"? Is this something, I additional need to install ?
thank you for all your great help!
#9
On http://drupal.org/project/xmppframework there is a development snapshot http://ftp.drupal.org/files/projects/xmppframework-6.x-2.x-dev.tar.gz is the file that has all of the information in it. Download that file and install the untar and unzipped contents on the machine removing the old xmppframework modules. It has everything in it you need
#10
thank you a lot! I'll definitively give it a shot :-)!
#11
It worked great!!! Thank you very much for your help :-)!Hopefully one day, I'd be smart enought, to give it back to you guys - great job!
#12
That is good, glad the module is working for you now.