Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Bug of Emotion Icon

Quote Reply
Bug of Emotion Icon
I add a Emotion Icon([>_<]) in Admin, And add it in the "include_smilies_write.html" and "editor.js" file . Now I use advance editor to add it to my post. But when I switch to basic editor, It shows that "(img) http://86.0.191.8:88/images/nugget.gif (/img)",but not [>_<], But when I use the default Emotion Icon like [ : ) ] ,it 's good . Is there some other file to modify , or it's a bug ?
Quote Reply
Re: [backdream] Bug of Emotion Icon In reply to
Do you use a relative path ("/images") or a absolute path(http://yoursite.com/images") to your images directory? I got a similar problem with emoticons in french version when I used a relative path. If you use relative path, change it for a absolute path.

Hope that helps! Smile

François
Quote Reply
Re: [Franco] Bug of Emotion Icon In reply to
Thank you for reply. But I use relative path same as others. for example:

tag: <_<
html:

Code:
<img src="<%image_url%>/dry.gif" alt="dry" border="0">
Quote Reply
Re: [backdream] Bug of Emotion Icon In reply to
No one add emotion icon in his forum ?
Quote Reply
Re: [backdream] Bug of Emotion Icon In reply to
The current implementation does not allow this to work properly. The problem comes from GForum/Convert.pm, which is the module responsible for converting HTML into Forum Markup. Basically, the smile, frown, etc. icons are hard-coded in the file rather than being pulled from the icons in the config file. The solution isn't so great - it caused problems when we created the french version, and as a result, the GForum/Convert.pm that comes with the french version is not the same as the one with the english version.

I've added this to my list of things to change, because you are definately right - it should be able to handle new smiley face tags properly when switching from advanced to basic.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Bug of Emotion Icon In reply to
Thanks for reply. I defined some emotion icons , someone like [<_<] or [>_<] , It will show [<_<] and [>_<] but not the icon when post with basic editor. Can it not use <> in emotion icon ? but it display good in admin panel.
Quote Reply
Re: [backdream] Bug of Emotion Icon In reply to
The icons [<_<], [>_<], etc. will work in the basic editor if they are put in manually. The only problem is when translating the advanced editor output (which is HTML) into Forum Markup - only the default [smile], etc. icons are translated; the rest are left as [img ...] tags.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Bug of Emotion Icon In reply to
I have tested, I siwich to basic editor, and input [<_<] in manual(but I think it's the same as click icon to insert a code [<_<]), But it cannot translate to the valid markup but the charactor [<_<]. The othes like [:o], [-_-], [!] translate good and show the icon, but only [<_<] and [>_<].

Last edited by:

backdream: Aug 2, 2002, 2:52 AM
Quote Reply
Re: [backdream] Bug of Emotion Icon In reply to
Hi,

I tracked down this problem - because it doesn't allow HTML, the HTML is escaped in advanced. You need to put the HTML escaped version of the tag in, or &lt;_&gt; and &lt;_&lt; instead of <_> and <_<. I've added this to list of things to be fixed in the future so that when you enter <_< it is automatically escaped.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Bug of Emotion Icon In reply to
Thanks for reply. So now I change it to other define tag name to avoid it.