This module would be really usable with a "Collapsible - Collapsed" option for the smileys select box (essential if you install a lot of smileys). Also, when smileys are presented to the user at the select box, this module shows all smileys based on text shortcuts, so you can see the same smiley repeated several times (for example, :-D and :D gives you the same smiley). This is an interface nonsense from the user view.
With these 2 improvements, this module would be the cleanest and most elegant smileys implementation of any forum system that I have seen!
Comments
Comment #1
Xabi CreditAttribution: Xabi commentedI don't know if this is the correct coding method, but I have hardcoded the smileys.module to force a collapsed select box adding this line:
'#collapsed' => TRUE,
..after line 62.
Comment #2
Xabi CreditAttribution: Xabi commentedChanging line 32...
$result = db_query('SELECT * FROM {smileys} ' . $whereclause);
to...
$result = db_query('SELECT DISTINCT image FROM {smileys} ' . $whereclause);
...shows the smileys at the select box as they should be (every smiley is different from all others), but the acronyms don't appear when you click a smiley, only a blank space. Also, it seems that the function _smileys_list is shared by the select box and admin/compose tip views, so this is not the best approach (maybe a dedicated function for the select box would be nice). I don't know how to solve this, so I stop here.
Comment #3
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedCollapsible - Collapsed fieldset will be committed soon. And for distinct smileys for similar acronyms, it's recommended you separate each acronym by space for single related smiley. Like for "grin", acronyms field would be ":D :-D :d :-d" (instead of having same smiley repeated for each acronym). Hope this helps you.
Comment #4
(not verified) CreditAttribution: commentedComment #5
catch CreditAttribution: catch commentedSmiley box was expanded in 1.1 release.
'#collapsed' => TRUE,
as described above, collapses it again.
Comment #6
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedThis won't go into code. As, generally in a block, one would like to see what they have to consume from it. If anyone has lots of smileys and wants to collpase by default, they can try the code above. Moreover, in another issue someone's working on having favorite smileys to be promoted to select box, etc.
Comment #7
YAFA CreditAttribution: YAFA commentedWell, in fact I want to have a collapsed Smileys-Selectbox and the code-insertion of
'#collapsed' => TRUE,doesn't work. I don't know why, cause it's not different to forms of other modules with collapsed fieldsets. I quadchecked typos, deleted cache data and tried it on other machines. I don't get it collapsed.Any suggestions?
Gtx,
Felix Lieb aka YAFA
Comment #8
YAFA CreditAttribution: YAFA commentedErm...
Sometimes I am the dummest muddler I know. I altered the code of my Testing-Installation and tried it on another installation. Sorry, is working...
Gtx,
Felix Lieb aka YAFA