News:

Want to get involved in developing SMF, then why not lend a hand on our github!

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.

Zippo

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

[Unknown]

Yes, it is fixed in the current download as long as you upload ALL the files in it, INCLUDING Sources/Subs.php.

-[Unknown]

Zippo

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?

[Unknown]

Just download it again, it has been updated - last Sunday.

-[Unknown]

Zippo


Wooper

Thankyou Unknown for that advice, my [ img ] tags work perfectly ^_^
:: Wooper ::
[nofollow]

PsyKoBoY

it still doesn't work on my website...
I've change subs.hp but no change in [img] tag problem...

help lol

Grudge

Have you updated to beta 4.1?
I'm only a half geek really...

[darksteel]

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-



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 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]

[darksteel]

Where I can change it?

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

[Unknown]

Admin -> Edit Features and Options -> Breakup long words. (I think...)

-[Unknown]

[darksteel]

Thanks 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

PsyKoBoY

On version beta 4.1 the img problem is stilll here on my website (excuz for my english, I'mf french)

hxxp:www.cg-creators.com/index.php?topic=162.0 [nonactive]

break up long words set to 0

help
thx

Ben_S

Since it's password protected, could you create a test account.
Liverpool FC Forum with 14 million+ posts.

PsyKoBoY

must be good now...I've delete the password requirement...

[Unknown]

Please try a detailed version check...

-[Unknown]

gregy

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

[Unknown]

That's called hotlinking, and is nothing SMF has anything to do with.

-[Unknown]

Oldiesmann

Michael Eshom
Christian Metal Fans

Advertisement: