It is possible to integrate the smileys in the AJAX comments? Now the smileys are only visible when click on "Add new comment", but the smiley bar is not visible when someone click on "reply" using AJAX comments. It is possible to integrate them to work together?
Comments
Comment #1
Gurpartap Singh commentedBy the generic logic of how the filter system works, there is nothing smileys.module or even ajax_comments.module is supposed to do for the integration among them.
Or maybe, ajax_comments.module isn't applying the correct input format filter for the live preview of comments. Check if it provides option for the filter to use.
Smileys would definitely show up, if an input format is used for the text rendering AND the smileys filter is enabled for that input format.
Comment #2
Terko commentedHello Singh, the smileys appears, but they don't appear in the toolbar of the text area and the users ask me to enable this toolbar, because they can't select the smileys easy (they need to type them).
If I try to write new comment on new node, the toolbar with the smileys appears. But if I try to "Reply" to some comment, the toolbar don't appears in the Ajax box that appears.
Comment #3
vinoth.3v commentedit may be an issue of ajax comments?
Comment #4
vinoth.3v commentedComment #5
Gurpartap Singh commentedIt is a feature limitation of smileys about where it appears and where it doesn't. It needs to be abstracted so that it can be attached with any textarea field by user's or other module developer's choice.
There's a request for this already in smileys modules' list.
However, Smileys select box does appear when a "reply" to comment link is clicked. Maybe there's something that can be adjusted with ajax_comments or smileys or both that can make it work.
I am willing to collaborate.
Comment #6
rjbrown99 commentedMarking this as a feature request for integration between the two modules. This is not something I have plans to work on, but I'm willing to review patches. This issue has not been addressed in 6 months - is there work planned for this? If not I'd like to mark as won't fix to close it out.
Comment #7
dreamdust commentedThis has nothing to do with AJAX comments. The smileys module works just fine. It sounds like the user is having issues with their theme.
Comment #8
maxya123 commentedSame problem. Both modules work just fine, exept no secect box with ajax comment is on. If I turn off aj comments, select box for smileys apears again. How could I add sell box for smileys to my theme manually?
Comment #9
dreamdust commentedI can't reproduce this on a fresh install. AJAX comments works fine with smileys.
Are you using the WYSIWYG module?
Are you using the latest version of AJAX comments?
Smileys attaches itself to the textarea ID's "edit-body", "edit-comment", "edit-teaser-js" for any enabled content type under the Smileys admin settings. AJAX comments doesn't change these ID's.
Comment #10
nvip commentedReplace the 73 line in smileys.module with
$node_type = db_result(db_query('SELECT type FROM {node} WHERE nid=%d', (empty($form['nid']['#value']) ? $form['nid']['#default_value'] : $form['nid']['#value'])));It works for me without any problems.
Comment #11
gynekolog commentedi replaced
with your code and works fine, thank you!
Comment #12
nvip commentedYou are welcome.