Active
Project:
Smileys
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2007 at 18:28 UTC
Updated:
29 Jun 2010 at 18:50 UTC
This is the desired and expected behaviour, but currently not being applied by smileys.module.
i.e.:
[code] :) [/code]
and
[notag] :) [/notag]
and
<code> :)
Comments
Comment #1
wim leers(I accidentally hit the submit button too early...)
In all of these examples (note that the last example isn't rendered correctly either by drupal.org's filter... ironic), smileys.module's filter incorrectly inserts smileys.
We'd either have to use lookahead/lookbehind regexps, or split the text to only apply the smileys filter on the parts that are not inside of any of the tags listed above.
Comment #2
wim leersAny news about this? :)
Comment #3
Gurpartap Singh commentedThis would be some regular expressions magic. I'm too busy this summers, can you take on it? :D
Comment #4
Gurpartap Singh commentedFixed in DRUPAL-6--1-0-ALPHA5. Only for <code> and <pre> tags.
Comment #5
Gurpartap Singh commentedI think we can make this an option. Since I feel loading performance being hit when loading like 100+ smileys (which is very possible in fun communities).
Comment #6
wim leersCleaning up the issue queue.
Comment #7
EllECTRONC commentedI put
<code>RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?ваш-сайт.com [NC]< /code>I get
RewriteCond %{HTTP_REFERER} !^http(<img src="http://site.ru/sites/all/modules/smileys/packs/Roving/drunk.png" title="Drunk" alt="Drunk" class="smiley-content" />?://(www.)?sitename.ru.com [NC]I think smileys.module should avoid
<code>and<code lang="somelang">Comment #8
Gurpartap Singh commentedThat's what it already does. It avoids anything within
<code>and<pre>tags. Are you sure your content has both starting AND closing<code>tags?Comment #9
EllECTRONC commentedYes, I'm sure.
It may depend on the filters order?