UBB.Dev
Posted By: luuker jpeg's doesn't show 6.3.1 - 02/16/2004 10:44 AM
Only jpg's and gif's work when linked.

How do I get also jpeg's working?

Thanks!
Posted By: ericgtr Re: jpeg's doesn't show 6.3.1 - 02/16/2004 5:40 PM
Do you mean uploaded? Make sure you have the extentions outlined in your Admin > Config settings, you can add as many as you like. It sounds like you are set on default
Posted By: luuker Re: jpeg's doesn't show 6.3.1 - 02/19/2004 3:24 PM
Not uploeded, linked. It show's only jpg and gif.

Changing Config settings doesn't help.
Posted By: JoshPet Re: jpeg's doesn't show 6.3.1 - 02/20/2004 1:20 AM
As far as I know - you can only use .gif .jpg and .png

I'm pretty sure that .jpeg won't appear in all browsers - it's mislabled and should have the three letter extension. .jpg

So modify knowing that this may be bad.

But this line:
$Body = preg_replace("/(\[IMG\]|\[{$ubbt_lang['TEXT_IMAGE']}\])http([^\[]*)\.(gif|jpg|png)(\[\/IMG\]|\[\/{$ubbt_lang['TEXT_IMAGE']}\])/i","<img src="http\\2.\\3">",$Body);


in ubbt.inc.php

You could change this bit:

(gif|jpg|png)

to this:

(gif|jpg|png|jpeg)
© UBB.Developers