Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: MuYu on March 14, 2004, 04:55:19 AM

Title: [img] bug ?
Post by: MuYu on March 14, 2004, 04:55:19 AM
Title: Re: [img] bug ?
Post by: [Unknown] on March 14, 2004, 04:57:28 AM
Is there any chance you could quote or modify that message and post the code here inside [ code ] tags?

-[Unknown]
Title: Re: [img] bug ?
Post by: Chris Cromer on March 14, 2004, 04:59:40 AM
QuoteIs there any change you could quote
;)
Title: Re: [img] bug ?
Post by: [Unknown] on March 14, 2004, 05:00:23 AM
Yeah, yeah, it's 2:00 am.  Better now?

-[Unknown]
Title: Re: [img] bug ?
Post by: Chris Cromer on March 14, 2004, 05:01:58 AM
Lol, 4 a.m. here... I am an insomniac. :-X
Title: Re: [img] bug ?
Post by: MuYu on March 14, 2004, 05:09:19 AM
 
code:
[img]
http://us.news2.yimg.com/us.yimg.com/p/ap/20040313/capt.pda10103130359.kings_trail_blazers_pda101.jpg[/img]

output:
http://us.news2.yimg.com/us.yimg.com/p/ap/20040313/capt.pda10103130359.kings_trail_blazers_pda101.jpg" alt="" border="0" />



????


Title: Re: [img] bug ?
Post by: Chris Cromer on March 14, 2004, 05:11:33 AM
I found the problem, the user put a line break after the first [img*] tag.

This works:
[img]http://yoursite.com/image.gif[/img]

But this does not:

[img]
http://yoursite.com/image.gif[/img]


Remove the line break after the first [img*] tag and it will fix it.
Title: Re: [img] bug ?
Post by: [Unknown] on March 14, 2004, 05:12:29 AM
Okay, I should have known there was a reason I did it that way... Subs.php, find:

$php_parts[$php_i] = preg_replace(array('~(?<=[\s>(;\'"\]])(\w+://[\w\-_@:|]+(?:\.[\w\-_]+)*(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?=#])~', '~(?<=[\s>(\'\]])(www(?:\.[\w\-_]+)+(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?;=#])~i'), array('[url]$1[/url]', '[url=http://$1]$1[/url]'), $php_parts[$php_i]);

Replace:
$php_parts[$php_i] = preg_replace(array('~(?<=[\s>(;\'"])(\w+://[\w\-_@:|]+(?:\.[\w\-_]+)*(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?=#])~', '~(?<=[\s>(\'])(www(?:\.[\w\-_]+)+(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?;=#])~i'), array('[url]$1[/url]', '[url=http://$1]$1[/url]'), $php_parts[$php_i]);

-[Unknown]
Title: Re: [img] bug ?
Post by: Chris Cromer on March 14, 2004, 05:20:26 AM
Hey [Unknown], for some reason after you posted your last post it keeps killing Firefox 0.8(I had to kill the process because of it)... I had to switch to IE to view this topic and post this. :-\
Title: Re: [img] bug ?
Post by: [Unknown] on March 14, 2004, 05:21:44 AM
I know, it's fixed in like the very next cvs nightly... I can't wait for 0.9.

-[Unknown]
Title: Re: [img] bug ?
Post by: MuYu on March 14, 2004, 05:24:16 AM
thanks :)
Title: Re: [img] bug ?
Post by: Chris Cromer on March 14, 2004, 05:26:16 AM
Quote from: [Unknown] on March 14, 2004, 05:21:44 AM
I know, it's fixed in like the very next cvs nightly... I can't wait for 0.9.

-[Unknown]
Hmmm, well then nightly cvs here I come. :P
Title: Re: [img] bug ?
Post by: Chris Cromer on March 14, 2004, 01:08:18 PM
Apply [Unknown]'s fix a few posts up. ;)
Title: Re: [img] bug ?
Post by: [darksteel] on March 14, 2004, 01:38:23 PM
the error was not corrected :(

The fix no sirvio
Title: Re: [img] bug ?
Post by: gregy on March 14, 2004, 02:29:03 PM
it was fixed on my site  ;D
Title: Re: [img] bug ?
Post by: [darksteel] on March 14, 2004, 03:54:42 PM
Quote from: [Unknown] on March 14, 2004, 05:12:29 AM
Okay, I should have known there was a reason I did it that way... Subs.php, find:

$php_parts[$php_i] = preg_replace(array('~(?<=[\s>(;\'"\]])(\w+://[\w\-_@:|]+(?:\.[\w\-_]+)*(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?=#])~', '~(?<=[\s>(\'\]])(www(?:\.[\w\-_]+)+(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?;=#])~i'), array('[url]$1[/url]', '[url=http://$1]$1[/url]'), $php_parts[$php_i]);

Replace:
$php_parts[$php_i] = preg_replace(array('~(?<=[\s>(;\'"])(\w+://[\w\-_@:|]+(?:\.[\w\-_]+)*(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?=#])~', '~(?<=[\s>(\'])(www(?:\.[\w\-_]+)+(?::\d+)?(?:/(?:[\w\-_\~%\.@,\?&;=#+:\']|\([\w\-_\~%\.@,\?&;=#()+:\']*)*)*[/\w\-_\~%@\?;=#])~i'), array('[url]$1[/url]', '[url=http://$1]$1[/url]'), $php_parts[$php_i]);

-[Unknown]
I cant fix
Title: Re: [img] bug ?
Post by: [Unknown] on March 14, 2004, 03:56:54 PM
Please wait then, because I'm going to be uploading a new package soon.

-[Unknown]
Title: Re: [img] bug ?
Post by: [darksteel] on March 14, 2004, 03:57:55 PM
Oks -[Unknown]

Title: Re: [img] bug ?
Post by: treo on March 14, 2004, 04:12:10 PM
It also killed my FireFox, but it works well if you use the imode mode :)
Title: Re: [img] bug ?
Post by: thegeek on March 14, 2004, 06:57:29 PM
Thanks. It fixed my problem.
Title: Re: [img] bug ?
Post by: Zippo on March 21, 2004, 03:21:06 PM
Is there a package soon to rectify the img problem or am I having a different problem?

After applying the img tags and placing a URL in I cannot see the image but the URL following the famous little red x and then alt="" border="0" />
Title: Re: [img] bug ?
Post by: [Unknown] on March 21, 2004, 03:33:35 PM
Yes, it is fixed in the current download as long as you upload ALL the files in it, INCLUDING Sources/Subs.php.

-[Unknown]
Title: Re: [img] bug ?
Post by: Zippo on March 21, 2004, 04:39:54 PM
Quote from: [Unknown] on March 21, 2004, 03:33:35 PM
upload ALL the files in it, INCLUDING Sources/Subs.php.
-[Unknown]

Ok, I am confused (easily done though) I downloaded:

smf_1-0-beta4p_upgrade.zip

And installed ALL the files INCLUDING subs.php, is there an update I am missing?
Title: Re: [img] bug ?
Post by: [Unknown] on March 21, 2004, 04:41:48 PM
Just download it again, it has been updated - last Sunday.

-[Unknown]
Title: Re: [img] bug ?
Post by: Zippo on March 21, 2004, 04:50:48 PM
:) thanks
Title: Re: [img] bug ?
Post by: Wooper on March 23, 2004, 01:13:35 PM
Thankyou Unknown for that advice, my [ img ] tags work perfectly ^_^
Title: Re: [img] bug ?
Post by: PsyKoBoY on March 28, 2004, 12:16:58 PM
it still doesn't work on my website...
I've change subs.hp but no change in [img] tag problem...

help lol
Title: Re: [img] bug ?
Post by: Grudge on March 28, 2004, 01:00:31 PM
Have you updated to beta 4.1?
Title: Re: [img] bug ?
Post by: [darksteel] on March 28, 2004, 07:00:19 PM
Help, I want problem Tag IMG, URL GLOW

See-

Posting one Url Show
Quoteergroup.hu/" target="_blank">http://www.balazselem ergroup.hu/

Posting Glow show:
Quoteg="0" cellspacin g="0" style="display: inline; vertical-align: middle;">

Posting IMG show:
Quote.de/mini/minigif/essentrinken/mininahrung001.gif" alt="" border="0" />


Help, Im Use Beta 4.1

http://www.cmh-ip.net/foro/index.php/topic,744.msg2369#msg2369

help

darksteel-
Title: Re: [img] bug ?
Post by: [Unknown] on March 28, 2004, 07:09:11 PM
Please try a detailed version check.

You have the "break up long lines" option on, but it's only set to like 10.  Please try something like 80.

-[Unknown]
Title: Re: [img] bug ?
Post by: [darksteel] on March 28, 2004, 07:15:09 PM
Where I can change it?

darksteel-
Title: Re: [img] bug ?
Post by: [Unknown] on March 28, 2004, 07:21:03 PM
Admin -> Edit Features and Options -> Breakup long words. (I think...)

-[Unknown]
Title: Re: [img] bug ?
Post by: [darksteel] on March 28, 2004, 07:25:17 PM
Thanks Unknown !!!!!!!!!!!!!!!

darksteel-
Title: Re: [img] bug ?
Post by: PsyKoBoY on March 31, 2004, 07:03:45 AM
On version beta 4.1 the img problem is stilll here on my website (excuz for my english, I'mf french)

http://www.cg-creators.com/index.php?topic=162.0

break up long words set to 0

help
thx
Title: Re: [img] bug ?
Post by: Ben_S on March 31, 2004, 07:22:22 AM
Since it's password protected, could you create a test account.
Title: Re: [img] bug ?
Post by: PsyKoBoY on March 31, 2004, 01:14:11 PM
must be good now...I've delete the password requirement...
Title: Re: [img] bug ?
Post by: [Unknown] on March 31, 2004, 10:12:43 PM
Please try a detailed version check...

-[Unknown]
Title: Re: [img] bug ?
Post by: gregy on April 18, 2004, 03:39:53 PM
strange things ..

i add an image .. from another server ... and image is not showed up in post .. when i visit picture link directly in browser i can see an image .. and when i go back in post .. voila image is there ?

any idea?

thanx
Title: Re: [img] bug ?
Post by: [Unknown] on April 18, 2004, 05:45:42 PM
That's called hotlinking, and is nothing SMF has anything to do with.

-[Unknown]
Title: Re: [img] bug ?
Post by: Oldiesmann on April 19, 2004, 12:50:55 PM
More info on hotlinking can be found at http://www.xentrik.net/htaccess/hotlinking.php