Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I cannot add smileys in private messages (http://drupal.org/project/privatemsg)
I think it is necessary to add support of the privatemsg module in function "smileys_form_alter"
Comment | File | Size | Author |
---|---|---|---|
#20 | smileys-228113-20.patch | 6.88 KB | osopolar |
#19 | smileys-228113-19.patch | 7.05 KB | osopolar |
Comments
Comment #1
OFF CreditAttribution: OFF commentednobody help me?
Comment #2
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedDoes the privatemsg module support input format filters in it's message body? If so, it should be easy task. If not, then it should be a feature request for privatemsg module.
Comment #3
OFF CreditAttribution: OFF commentedyes, the privatemsg module support input format filters in it's message body!
Comment #4
stokito CreditAttribution: stokito commentedIt's two ways - hard change of smileys module or easy append 3 lines to privatemsg module. (Рома еби мозг чувакам из privatemsg)
Comment #5
Michelle@stokito - Ok, moved this issue. What are the three lines? The filter already works. What's needed is to show the smilies box.
Michelle
Comment #6
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedNo, it would actually be a change in smileys_form_alter() to insert the box at the right place. And support for clicking and inserting the acronym would be a change in smileys.js. DRUPAL-6--1's smileys.js has an array of textarea IDs to insert an acronym into. It can be used with DRUPAL-5 as well (Don't think it'll break anything).
Comment #7
OFF CreditAttribution: OFF commentedHas passed almost year, but my visitors on the former wish to use smileys at sending of personal messages through the privatemsg module (буду так же ебать мозг чувакам из privatemsg)
Comment #8
marcus0263 CreditAttribution: marcus0263 commentedYep, my users are also requesting Smiley's in the PM module. It works if you know the code, but most of my users aren't "Geek" ;-)
Would love to see Smiley support in the PM module.
Comment #9
Olli1984 CreditAttribution: Olli1984 commentedMe too!
Is there no other way to add smilies to the privatemsg module?
Comment #10
OFF CreditAttribution: OFF commentedsmileys like in nodes! das ist fantastisch
Comment #11
Olli1984 CreditAttribution: Olli1984 commentedyes, but how?
Comment #12
b0b CreditAttribution: b0b commentedThis would be a really nice feature for every site that uses Smileys and PM I would think. I came here looking for this and was bummed to not find a solution.
Comment #13
artscoop CreditAttribution: artscoop commentedOk,
I did change the Smileys module before, to take Privatemsg into account, it worked but it was lame and broke the permissions.
For those who want Smileys to appear in virtually any form, go to smileys.module, and change the form_alter function with this :
(I'm not at ease with diffs and patches)
It extends Smileys so that it can now take into account any form other than node_body and comment_form.
Later, I might add a textarea in the smileys settings to let the admin enter his own form keys.
Comment #14
artscoop CreditAttribution: artscoop commentedComment #15
Michsk CreditAttribution: Michsk commentedhow is the review going?
Comment #16
freelylw CreditAttribution: freelylw commentedcan't believe since 2 years ago, this function still not being added into the module
Comment #17
Michelle@freelylw: Well, in all this time there isn't any code here that's ready to be added so I don't know why you're surprised.
Updating title... The old title makes no sense in this queue.
Michelle
Comment #18
Berliner-dupe CreditAttribution: Berliner-dupe commentedAre new infos available for Smileys use in Privatemasg?
Comment #19
osopolarI changed the code from #13 to make it more clear, added the privatemsg option to the settings form an added the hook hook_smileys_get_additional_forms(). This hook could be implemented by other modules to provide the form_id and the field where to add the smileys box.
Please review my changes.
Comment #20
osopolarNew patch removes some not used code from #13 and fixes a typo in the node case.
Comment #21
knetterzoet CreditAttribution: knetterzoet commentedHi i tried to insert your code but i keep getting errors, can you give me the text for the complete module ? i think i dont insert the text as you do..
Comment #22
osopolarI just tested the patch with the current dev release and it works fine.
To test/apply the patch use the following commands (--dry-run: Do not actually change any files; just print what would happen.) inside the modules directory:
Comment #23
a.ross CreditAttribution: a.ross commentedAppears to work. But what was that about breaking permissions? Is there a security flaw in this patch?
As far as I can tell, it works though. Thanks!