Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question JPEG file extension won't work in Image tags

More
16 years 7 months ago - 16 years 7 months ago #28913 by Divim
I noticed this today on my site for some reason a file with the .jpeg file extension won't show up in the img tags.

All the would show is
Code:
[img]http://www.example.com/someimage.jpeg[/img]

Now if the file had .jpg extension it would work just fine and display the image. For some reason the img tag isn't recognizing the .jpeg extension. Is there a way to add the .jpeg extension so those images can be displayed by the img tag?

Edit: I have 1.5.5 installed

Do you like table top role playing? Do you like Anime, Manga, and Superheros? Then come and join us the Guardians of Order Fansite.
Last edit: 16 years 7 months ago by Divim. Reason: Added Kunena Version

Please Log in or Create an account to join the conversation.

More
16 years 7 months ago - 16 years 7 months ago #28915 by rich
Hello Divim,

this would have to help you

www.kunena.com/forum/138-support/27167-i...to-kunena-155-proper

Regards

Important! Always create a backup before you make any changes to your website!
Last edit: 16 years 7 months ago by rich.

Please Log in or Create an account to join the conversation.

More
16 years 7 months ago - 16 years 7 months ago #28921 by Divim
Unfortunately it did not work. I already did that fix for another issue I had with images. My site still refuses to show a .jpeg image, and displays all others fine. It has to be the extension isn't being recognized. As Matias states in that thread...

If urls do not have file extension (jpg, gif, png etc), then they will be broken in K1.5.6 (after this fix). You can restore the old behavior by commenting out that file extension check, but then users are allowed to post some commands (logout etc) to tease other users.


Since all other images even it's .jpg counterpart shows just fine, and the fix didn't fix the .jpeg problem. It has to be the extension isn't listed as an acceptable extension in the code somewhere. I am going to run a small experiment here to see if 1.5.6 fixes it.

.jpg test


.jpeg test


Edit: Nope still broken in 1.5.6, will we be able to set the acceptable file extensions in the backend like with file uploads?

Do you like table top role playing? Do you like Anime, Manga, and Superheros? Then come and join us the Guardians of Order Fansite.
Last edit: 16 years 7 months ago by Divim.

Please Log in or Create an account to join the conversation.

  • cXc
  • cXc's Avatar
  • New Member
  • New Member
More
16 years 7 months ago #29078 by cXc
Its listed in the check image type so thats can't be the problem it should be allowed o.O

*ROOT*/components/com_kunena/class.kunena.php (@ line 296)
Code:
function KUNENA_check_image_type(&$type) { switch ($type) { case 'jpeg': case 'pjpeg': case 'jpg': case 'JPEG': case 'PJPEG': case 'JPG': return '.jpg'; break; case 'gif': case 'GIF': return '.gif'; break; case 'png': case 'PNG': return '.png'; break; } return false; }

The good news is I've solved your problem :D

Go to your sites global configuration under the system tab find ...

Media Settings
Legal Extensions (File Types)

... and add ,jpeg,JPEG to the end of the list ;)

Enjoy :woohoo:

~cXc~

Please Log in or Create an account to join the conversation.

More
16 years 7 months ago #29100 by dealzbydesign
Thank you this helped me too, it should be a sticky post.

Web and Graphic Forum

Please Log in or Create an account to join the conversation.

More
16 years 7 months ago #29255 by Divim
Awesome! Thanks ~cXc~ this has been driving me a little crazy. I never thought it could have been a joomla issue. :)

Do you like table top role playing? Do you like Anime, Manga, and Superheros? Then come and join us the Guardians of Order Fansite.

Please Log in or Create an account to join the conversation.

Time to create page: 0.251 seconds