Simple Machines Community Forum

SMF Support => Converting to SMF => Topic started by: joeyjoeyjoey on February 13, 2005, 03:21:17 AM

Title: Converted from IPB to SMF member name got goofy
Post by: joeyjoeyjoey on February 13, 2005, 03:21:17 AM
For the most part the conversion when ok. One of the strange things I noticed is member names.

IE member name starts with !!!!!member name on IPB after converstion the name is now &#33';!member name

I assume this means the same as the member name !!!! but why did it switch?
Title: Re: Converted from IPB to SMF member name got goofy
Post by: [Unknown] on February 13, 2005, 03:57:00 AM
This is very strange.  I'm not sure why Invision choose to make ! into its entity.  But, I've updated the converter to hopefully fix this.  Please try the attached.

-[Unknown]
Title: Re: Converted from IPB to SMF member name got goofy
Post by: joeyjoeyjoey on February 13, 2005, 01:10:32 PM
I ran the conversion and it converted the displayed name but not the user name. So in the admin ctrl Username would be #33;#33;#33;Screen name and in the displayed name its !!!Screenname.

So not entirely fixed. As I assume to log in you need to type in your Username.
Title: Re: Converted from IPB to SMF member name got goofy
Post by: [Unknown] on February 14, 2005, 12:17:29 AM
Quote from: joeyjoeyjoey on February 13, 2005, 01:10:32 PM
So not entirely fixed. As I assume to log in you need to type in your Username.

Well, you can also use your email address.

Try replacing this:

$row['memberName'] = preg_replace('/[<>&"\'=\\\]/is', '', $row['memberName']);

With:

$row['memberName'] = preg_replace('/[<>&"\'=\\\]/is', '', strtr($row['memberName'], array('&#33;' => '!')));

Any other characters they do this to?

-[Unknown]
Title: Re: Converted from IPB to SMF member name got goofy
Post by: joeyjoeyjoey on February 14, 2005, 01:33:56 AM
Works like a charm! Thanks for the help.  :)
Title: Re: Converted from IPB to SMF member name got goofy
Post by: MitchA on February 22, 2005, 09:14:23 PM
I wanted to add the same thing happened with me, but only on 1 username (So far only one has reported it)