Greetings,
I found that most clients prefer not to use smiles block as it is "passive". They prefer to have a button somewhere under text areas with a pop up window (or some kind of drop down list) where a gallery of available smiles will be suggested. The chosen smile is inserted as a text in text area when pressing it.
Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | smileys_0.zip | 5.03 KB | arne@dbyte.nl |
| #5 | smileys.zip | 4.69 KB | arne@dbyte.nl |
| #1 | smile.zip | 4.82 KB | arne@dbyte.nl |
Comments
Comment #1
arne@dbyte.nl commentedMaybe we can use this
i took the idea from a other form.
file attached is a php page and javascript file that demonstrates what is the idea
you only see the smiley's after you click on the link and than you can click on the smiley's to insert them directly in the textarea.
the only problem is i dont know how to get it just under the comment textarea in drupal.
it should be just above the formatting options list.
so that its easy to use for users.
Comment #2
ardas commentedGreat ! Thanks ... I will try it, I hope this can be soon commited into smiles module.
As for attaching a link to text area - it is very very simple. Just use quicktags.module which creates a toolbar of image links on the top of text area and provide you with two simple hooks to customize this toolbar. You can easily use quicktags_insert hook to provide your own button. Quicktags is a good solution and can become an API module for smiles, image_assist, bbcode (already using it) modules.
If you don't have time, I can try to implement it in your patch later.
Please, ask me if you need some help on quicktags.module.
Comment #3
ardas commentedWell, this is almost exactly what I was talking about.
The only thing is that all images would be better to display in a window (like jscalendar does).
The second thing is to put the main link onto quicktags toolbar.
I hope I'll be able to help you with this module shortly after I finish some of my priority tasks.
Comment #4
arne@dbyte.nl commentedI am working on it to implant it in smiley.module and till so far its going nice.
only i still look for a way to display it just under the comment form box (before "Input format")
i can not get java to work from a window (like jscalendar does), maybe i do something wrong.
so if you have a idea, than its almost finish.
i also need it on my site because its otherwise to difficult for user to use the smiley's
Comment #5
arne@dbyte.nl commentedOk try this
i hope this is the thing we are looking for.
i am not finish with the code yet but this already work
place everything in the smileys module folder and merge the style.css with your theme style.css
good luck and let me know what you think of it
Comment #6
arne@dbyte.nl commentedThis is a real workable version.
Place everything from the zip in your smileys module directory. and it should work right away.
probably you have to enable some features in the access control page, because you can choose who can use it and if the smiley select box is collapsed.
only one small bug that i could find is that the collapsible field is not working for anonymous users, but i cant find anything about this on the drupal forum.
Have phun ;-)
Comment #7
arne@dbyte.nl commentedi posted to fast,
replace line 71
$pages = 'node/*';with
$pages = "node/*\ncomment/*";otherwise you get only the smiley box on node's and not also on the comment page
Comment #8
ardas commentedCool. Thanks.
You should use quicktags.module to make a button near textarea.
Comment #9
ardas commentedI set 'use smiley select box' permission for all my roles.
How can I test smiles ? I don't see anything on a node form ... may be I'm missing something.
Comment #10
Mantichora commentedThanks for making this dialog, really helps me a lot.
But I did find an error in the javascript:
You have in the beginning
But this will make the script only work for comments.
I made a quick (and dirty) fix for this one:
If you use different flexinode-stuff or others like cck then you will have to add the fields to the list.
I hope this will be of use to anyone.
Greetings.
Comment #11
arne@dbyte.nl commentedMy idea was to find a way that drupal tell the javascript which message box it should use.
but this was the wast way to make a working script.
but if you have a good way, feel free to chance it.
greets
Hard-Art
Comment #12
Gurpartap Singh commentedA different version of PHP and Javascript code was used. Although used the smileys table css formatting as in contributions above.
All into 5.x-1.0 version! Thanks!
Comment #13
(not verified) commented