News:

Join the Facebook Fan Page.

Main Menu

[img] bug ?

Started by MuYu, March 14, 2004, 04:55:19 AM

Previous topic - Next topic

MuYu


[Unknown]

#1
Is there any chance you could quote or modify that message and post the code here inside [ code ] tags?

-[Unknown]

Chris Cromer

QuoteIs there any change you could quote
;)
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

[Unknown]

Yeah, yeah, it's 2:00 am.  Better now?

-[Unknown]

Chris Cromer

Lol, 4 a.m. here... I am an insomniac. :-X
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

MuYu

 
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" />



????



Chris Cromer

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.
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

[Unknown]

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]

Chris Cromer

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. :-\
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

[Unknown]

I know, it's fixed in like the very next cvs nightly... I can't wait for 0.9.

-[Unknown]

MuYu


Chris Cromer

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
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

Chris Cromer

Apply [Unknown]'s fix a few posts up. ;)
Chris Cromer

"I was here, here I was, was I here, sure I was" - The little voice in my head.

[darksteel]

the error was not corrected :(

The fix no sirvio



Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

gregy

it was fixed on my site  ;D

[darksteel]

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



Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

[Unknown]

Please wait then, because I'm going to be uploading a new package soon.

-[Unknown]

[darksteel]




Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

treo

It also killed my FireFox, but it works well if you use the imode mode :)

thegeek

Thanks. It fixed my problem.

Advertisement: