Here's a patch that makes privatemsg compatible with Drupal 5.0 , even though the module itself is pretty incorrect (doesn't use _submit handlers, etc).
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | privatemsg_8.patch | 11.06 KB | Oranor |
| #9 | privatemsg_7.diff | 14.93 KB | Oranor |
| #7 | privatemsg_js_5.0.patch | 891 bytes | btmash |
| #5 | privatemsg_6.patch | 9.28 KB | btmash |
| #2 | privatemsg_5.0_0.diff | 8.31 KB | adrian |
Comments
Comment #1
adrian commentedand here's the .info file that's necessary for it to work.
Comment #2
adrian commentedfixed the hook_link and the My inbox menu item.
Comment #3
uptimebox commentedFatal error: Cannot use string offset as an array in /home/spider/Projects/rolevikov.net/drupal/modules/system/system.module on line 1046At admin/settings/privatemsg
Comment #4
Anonymous (not verified) commentedHi adrian ,
I am currently building the new SFX2 website for the mozilla foundation and would like to include this module as early as possible into my code.
Would you please let me know Adrian if your working on this and if i can helpout in any way ?
Regards Paul
Comment #5
btmash commentedI've taken what adrian was working on, saw the error uptimebox got, and was able to figure out that error was being caused by the form being generated in the configuration.
Here is my patch file to take a look at (it has what adrian did so there is redundancy)
Comment #6
btmash commentedHmm...the js changes don't seem to be working on my computer. I'll try and see what I can do with it (otherwise the user has to type it in the "To" field)
Comment #7
btmash commentedHere is a patch for the javascript file - I'm not entirely sure if I did grabbed the text field correctly (hopefully someone can let me know more on that) but it does seem to be working.
Comment #8
Oranor commentedThere is still a problem with the module when you use a translation. For example the new folder creation doesn't work when the Button string "Add Folder" is translated. The reason seems to be the privatemsg_page() function:
This seems to work in Drupal 4.7 (I checked it), but not in 5.0. Any ideas why?
Comment #9
Oranor commentedAdded a patch to fix this problem. It seems only to affect new folder creation. Additionally I fixed the "delete folder" functionality, which didn't work. The module should now work correctly with Drupal 5.0. I used the contributions from adrian and BTMash. The patch is against the cvs HEAD version.
Comment #10
btmash commentedI tried using your patches, but I got errors regarding the form when I tried to load up the page) - when I tried to add a page, I would get a blank screen (no errors show up in watchdog either :/)
Comment #11
btmash commentedWould it be possible if you could post your privatemsg file? I am not sure of what I may have overlooked against my file.
Comment #12
enky commentedcan you please upload the privatemsg.module file?
i dont have patch utility,
thanks,
enky.
Comment #13
Marandb commentedI too would appreciate it if there was a full .module file available. Could you please upload a working copy?
I can run it on my testsite and let you know if I run into any errors. We use private messages alot.
Thank you very much for your effort on this.
-- Marandb
Comment #14
gaijinu commentedWell, the patch works in 5.0. Thanks a bunch guys!
I didn't test it thoroughly yet.
BTMash:
Try to comment out lines 3-5 from privatemsg.module, it's only a debug thingy.
enky4u, etc:
Get patch for windows
Cheers
Comment #15
mjarkiver commentedIs it really that much to ask for someone to just post the files already patched? Not all of us are that familiar with doing this type of patching, and it would save a lot of time if one of you who already incorporated the patch would just simply upload it. I mean is it really such a huge hassle to do that? I for one, and I'm sure others, would really appreciate it.
--mj
Comment #16
kus commentedsubscribe to thread
Comment #17
mjohnq3 commentedI agree... after 7 patches it's time to post the updated module somewhere.
Comment #18
hectorplus commentedI am not familiar with patching too, so if someone can take a moment to upload the module patched already. Thank you.
Comment #19
sepeck commentedWell, here is a page on patch so you can test the contributed patches and provide feedback on the effectiveness of the patches linked in the thread.
http://drupal.org/node/22568
Comment #20
leducdubleuet commentedOne way to apply a patch is to place the ".diff" file into the "modules" folder and run this from a console:
/Dev/drupal/modules$ patch -p0 < privatemsg_7.diffI hope this helps someone...
Comment #21
Oranor commentedI made a new patch that fixed a bug which prevented messages to get deleted by marking the check box in the message list and pressing "Delete messages". Did some integration with the current HEAD version. Especially I re-enabled the API and support for auto-completion of recipient names, which wasn't in the last patch. Additionally I removed my debugging code.
I think the module is now stable enough to create a development snapshot. Could please one of the 21 developers of this module create one and place it in the download section? The patch is against the HEAD revision.
Comment #22
mindless commentedI applied changes based on this patch and created a DRUPAL-5 branch.
Some questions:
In the js: why not this.value instead of this.options[this.selectedIndex].value?
i kept this.selectedIndex = 0 in there, hope that's ok.
do move to folder and empty folder operations work?
(didn't see any $_POST vs $edit changes there)
does 'new folder' without folder name properly show form asking for name?
(ie is !$edit['name'] check ok, or should be this be _POST?)
Comment #23
gaijinu commentedHi Oranor, thanks for your work. Tried to patch, but got some errors:
Also there is no .info file. Please check.
Thanks!
Comment #24
mindless commentedgaijinu (and everyone), please don't use the patch here but try the DRUPAL-5 branch in CVS. Development snapshots for this branch should show up in the privatemsg project page soon.
I did some major restructuring of the code to use more menu callbacks and form validate/submit functions.. these changes are now in both DRUPAL-4-7 and DRUPAL-5 branches, so please test, thanks!
Comment #25
Marandb commentedExcellent, thank you to everyone for their work.
I will download the dev version and start posting any bugs.
Thanks again, this has been a HUGE help.
-- Marandb
Comment #26
hectorplus commentedI just installed the module(dev), however, private messages are being sent automatically to Anonymous user. I posted the bug.
Comment #27
mindless commentedI fixed sending private msgs (did nothing) and Move to folder (controls were missing). Didn't see any problems with viewing of Sent messages folder.
Comment #28
mindless commentedI fixed a conflict with send.module (#113999).. marking this task as fixed now. Still let me know if you've tested this out and if you think it's ready for a 5.x-1.0 release, thanks.
Comment #29
gaijinu commentedTested on 5.1, looks fine here.
Comment #30
hectorplus commentedIts working, release it for D5.
Comment #31
mindless commentedDone, thanks!
Comment #32
mjohnq3 commentedJust downloaded and installed it... works great. Thanks for the update to v5.
Comment #33
(not verified) commented