Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

animated smilies

Quote Reply
animated smilies
I added some smiles to my forums, and an having a problem with the animated ones. When you click on one of them, all of the animation stops on all of the smilies in the on the left side of the editor. Any ideas why?

Sean
Quote Reply
Re: [SeanP] animated smilies In reply to
Someone please help. This is driving me crazy... I think it's a javascript problem (maybe with editor.js ?). Does anyone use animated emoticons?

Sean
Quote Reply
Re: [SeanP] animated smilies In reply to
Not any help here, but I too have a similar problem.

I replaced standard smiles with some animated smiles in my GForum. It was a bit of work, figuring out all the places to change the links =).

Though the animation does stop at times when I click them when writing a post, the resulting post (in view mode) always shows them correctly.


I told you not much help.

Dave
Quote Reply
Re: [SeanP] animated smilies In reply to
One thing that is messing up is the spellchecker. When you use one of the new emoticons, then click "Check Spelling", it displays the full path of the smilie in the SpellCheck Results. How do you keep it from doing that.

Sean
Quote Reply
Re: [SeanP] animated smilies In reply to
I've tracked the animated smiley problem down to a couple of different issues.

In Firefox, putting an animated gif into an editable area makes the image stop animating, but as Firefox shares all images, it will cause all copies of the same image, in any window or tab, to stop animating. You can observe this by loading a couple animated images in different windows and hitting stop/escape - the animation will be stopped in all windows it was in. Unfortunately, there is nothing we can really do to solve this problem; it's a basic Firefox problem without an immediately obvious solution (and happens with anything using a wysiwyg editor in Firefox).

In Internet Explorer, the animations stop working when we do event cancelling in the code for the editor, but only when the code occurs within a <a href="javascript: ..."> type link. Changing the link to be more like: <a href="#" onclick="...; return false"> will fix the problem. So, to get it fixed, you need to edit include_smilies_write.html template and change each smiley line, changing the parts I've highlighted in red below:

Code:
<td><a href="javascript: <%if html_editor%>top.editor_iframe.<%endif%>addTag(':)')"
tabindex=25><img src="<%image_url%>/smile.gif" border=0></a></td>
to:

Code:
<td><a href="#" onclick="<%if html_editor%>top.editor_iframe.<%endif%>addTag(':)'); return false"
tabindex=25><img src="<%image_url%>/smile.gif" border=0></a></td>
This solution appears to work fine for me (with IE) - I hope it helps.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] animated smilies In reply to
That seems to work for me. Thanks for your help! Cool

Sean