Simple Machines Community Forum

SMF Support => Converting to SMF => phpBB => Topic started by: bredge on November 25, 2010, 07:56:57 AM

Title: Image URLs messed up
Post by: bredge on November 25, 2010, 07:56:57 AM
After converting from phpbb3 to SMF all the posts with images in them say from photobucket the urls are messed up like below

http://http//i864.photobucket.com/albums/ab203/GTTURBO1084/Photo0721-1.jpg

with another http//

Any idea how to resolve this ?

Kind regards
Title: Re: Image URLs messed up
Post by: Norv on November 25, 2010, 08:11:24 AM
What is your SMF version? Did you install SMF now?
Title: Re: Image URLs messed up
Post by: kat on November 25, 2010, 09:42:09 AM
If this is with v1.1.12 and you're using the "Enhanced Quick reply" mod, that happens, I'm afraid.
Title: Re: Image URLs messed up
Post by: bredge on November 25, 2010, 10:38:21 AM
Im using version 1.1.12 and have just installed it as itcame with no mods !!
Title: Re: Image URLs messed up
Post by: kat on November 25, 2010, 11:54:16 AM
Hmmm... Now that IS odd.
Title: Re: Image URLs messed up
Post by: bredge on November 25, 2010, 12:20:55 PM
Also every stickied topic, every post says

Last Edit: December 31, 1969, 07:00:00 PM by
Title: Re: Image URLs messed up
Post by: kat on November 25, 2010, 03:25:39 PM
To get around the double http:// thing, you can use a workaround, I believe.

"Censored words".

If you tell it to replace "http://http://" with "http://", you should be OK.

For that last thing, try going to Admin>Forum maintenance, "Find and repair any errors." and "Recount all forum totals and statistics.".
Title: Re: Image URLs messed up
Post by: Illori on November 25, 2010, 05:20:10 PM
can you check for something like this?

Quote from: Ranter on December 01, 2009, 10:32:26 PM
Quote from: Rafferty on December 01, 2009, 10:16:27 PM
Would defineatly be much easier if I could just make the fix changes please.

Based on what I read in another topic the following may work for you.  Use a text editor that supports find/replace.

Make a backup copy of Sources/Subs.php in case it all goes horribly wrong.

Open the file Sources/Subs.php

Replace each line that matches
if (strpos($data, \'http://\') !== 0 || strpos($data, \'https://\') !== 0)

with
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)

This suggestion is based on this post, I do not know if it is correct or not.
http://www.simplemachines.org/community/index.php?topic=351389.0