Help NeatHTML not rendering emoticons in Blog Feedback

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/24/2010 3:56:37 AM
Gravatar
Total Posts 1

Help NeatHTML not rendering emoticons in Blog Feedback

Hi All

I have just installed Mojoportal for the very first time, skinned a site, and setup initial content. In 1 day. Like, wow!

Anyway, I was testing the Blog and Feeback. If I create a feedback entry which contains an emoticon cheeky it does not render at all in any browser. Looking at the HTML, I have a src_NeatHTMLReplace tag but no src tag. I am guessing this is why. Is there something special I have to do to get NeatHTML working? There don't appear to be any scripting errors, and all other images render fine. 

Here is the rendered HTML for a feedback entry:

<h3 class="blogtitle">

            re: This is the news feed

           </h3>
           <div >
            <span id="ctl00_mainContent_BlogView1_dlComments_ctl00_Label2" class="blogdate">Saturday, 24 April 2010 8:40:30 p.m.</span>
            <span id="ctl00_mainContent_BlogView1_dlComments_ctl00_Label3" class="blogcommentposter">unknown</span>

           </div>
           <div class="blogcommenttext">

<!--[if gte IE 7]><!-->
<div class='NeatHtml' style='overflow: hidden; position: relative; border: none; padding: 0; margin: 0;'>
<!--<![endif]-->
<!--[if lt IE 7]>
<div class='NeatHtml' style='width: 100%; height: 400px; overflow: auto; position: relative; border: none; padding: 0; margin: 0;'>
<![endif]-->
<table style='border-spacing: 0;'><tr><td style='padding: 0;'><!-- test comment --><script type='text/javascript'>
try { NeatHtml.DefaultFilter.BeginUntrusted(); } catch (ex) { document.writeln('NeatHtml not found\074!-' + '-'); }</script><div>
                    <p>
 <img alt="smiley" src_NeatHtmlReplace="/Data/SiteImages/emoticons/regular_smile.gif" title="smiley" /></p>


                    </div><input name='NeatHtmlEndUntrusted' type='hidden' value="" /><script type='text/javascript'></script><!-- > --><!-- <xmp></xmp><xml></xml><! --></td></tr></table><script type='text/javascript'>
NeatHtml.DefaultFilter.ProcessUntrusted(10000, new RegExp("^http://localhost:8130/.*[_a-zA-Z0-9]+\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF)$"));
</script>
</div><script type='text/javascript'>
NeatHtml.DefaultFilter.ResizeContainer();
</script>


               <br />
           </div>

Any help appreciated.

Paul

4/24/2010 8:45:48 AM
Gravatar
Total Posts 18439

Re: Help NeatHTML not rendering emoticons in Blog Feedback

Hi Paul,

Thanks for pointing this out. The problem is we were using a regex pattern for allowed images that requires the images to have absolute urls within the site but really the images use relative urls. I have just fixed this in my copy so it will be fixed in the next release. I think at one point the smiley images were using full urls but when we fixed that it introduced this issue.

NeatHtml filters out potentially malicious content  and images from other domains fall into that category.

Best,

Joe

11/11/2010 7:40:49 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: Help NeatHTML not rendering emoticons in Blog Feedback

Hi Joe

I still can't view the smiley in Blog feedbacks in recent versions (current is 2.3.5.5 MSSQL)
Editor is TinyMCE

the HTML of the page shows absolute URLS for smileys

...

<img title="Cool" src_NeatHtmlReplace="http://santadele.effectiveweb.it/ClientScript/tiny_mce3392/plugins/emotions/img/smiley-cool.gif" border="0" alt="Cool" />

...

The image source folder for that editor version still exists.

How can I sove the issue ?

Thanks.

Diego

 

11/11/2010 8:08:58 AM
Gravatar
Total Posts 18439

Re: Help NeatHTML not rendering emoticons in Blog Feedback

Hi Diego,

You can solve this by editing the file /ClientScript/tiny_mce3392/plugins/emotions/js/emotions.js

Change this line:

src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,

like this:

src : ed.getParam( 'emotions_images_url', tinyMCEPopup.getWindowArg('plugin_url') + '/img/' ) + file,

Thanks for pointing this out.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.