Images not showing in forum posts

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/12/2009 12:25:37 PM
Gravatar
Total Posts 33

Images not showing in forum posts

Hi,

I'm having an issue with putting a little walkthrough on how to install a software we use internally in our company. I'm using the default forum (same as this one), sqlite database, firefox. mojo is the latest version.

The problem is that the images aren't appearing. The source code shows this:

<img height="600" width="800" alt="" src_NeatHtmlReplace="/Data/Sites/1/SiteImages/Screens-CitrixEN/Citrix-Red-1.JPG" /><br />

I'm not sure what "NeatHTMLReplace" is, what it's doing there, and why it's not letting me show the images.

Images from the same folder on regular html pages show up fine, they just aren't showing up in the forum.

I thought maybe the images were too large, resizing them in the image dialog didn't help.

I'm stomped.

3/12/2009 1:06:59 PM
Gravatar
Total Posts 18439

Re: Images not showing in forum posts

Hi,

NeatHtml is a tool we use to protect against cross site scripting. It is configured to allow images in the forum if they are relative to the site. There may be some case sensitivy bug in NeatHtml, its working for me but I notice your image has capital extension .JPG and mine does not. You might try changing both the filename to lower case the extension and then modify src for the img accordingly. That may provide a workaround for you.

Hope it helps,

Joe

3/12/2009 1:26:22 PM
Gravatar
Total Posts 33

Re: Images not showing in forum posts

Bingo, right on the nail! putting the extension in lowercase did fix the issue.

You're turning out to be the best tech support I've ever had, Joe! :)

3/12/2009 1:33:54 PM
Gravatar
Total Posts 18439

Re: Images not showing in forum posts

I looked into this and it was not a bug in NeatHtml, its a regular expression I wrote to tell NeatHtml what to allow, and my regular expression did not take into account upper case extensions. I've modified it to acommodate files with upper case extensions to make it a little more tolerant, but it will still fail with mixed case stuff like .Png or .jPG

Best,

Joe

2/15/2010 2:15:51 PM
Nux
Gravatar
Total Posts 183

Re: Images not showing in forum posts

Hey Joe,

I got the same issue, but a bit more difficult.
One of the members of my aprilia site has tried to insert an image with the code:
[IMG]..../forums/picture.php?albumid=905&amp;pictureid=4726[/IMG].

Is there a way that those images come visible?
As you can see, that picture.php is rendering an image so no extension of .jpg, .png, ...
Would it be possible if users use such a format, that we can allow this "script"?

Stef
 

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