Check out the SMF Function DB!
Started by SleePy, December 05, 2011, 11:40:48 PM
// Go ahead and log 'em in$user->setupSession();$user->setCookies();
Quote from: Paracelsus on December 07, 2011, 05:10:07 AM1. Does it work with SMF 1.1.x? I couldn't find any indication on this.
Quote from: Paracelsus on December 07, 2011, 05:10:07 AM2. I doubt this bridge will be able to work with MW 1.18, since they've changed the hook $user->setupSession(); to wfSetupSession();. Maybe you'll want tho change this piece of code:Code Select Expand// Go ahead and log 'em in$user->setupSession();$user->setCookies();
Quote from: Paracelsus on December 07, 2011, 05:10:07 AM3. Does this bridge accepts "strange characters" like á à § ç ã on the username? (the last bridge didn't accept them)
SET NAMES utf8
Quote from: SleePy on December 08, 2011, 04:21:41 PMThere shouldn't be to much work in getting to work on the older version. Mostly if not all should be just changing the database fields to match SMF 1.1 fields. I think all the other code should support 1.1 just fine.I haven't heard any complaints from our international users about this. However SMF I know makes sure to set the character settings when it first starts up. So if it isn't working, its most likely because the connection to the SMF database is using latin and needs the query to tell it to read as utf8. Something such as:Code Select Expand SET NAMES utf8Would need to be ran after the connection to the SMF database is made. I am not 100% sure though, my expertise in character sets is not the best
mysql_query("SET NAMES utf8"); mysql_query("SET CHARACTER_SET utf8");
Quote from: live627 on December 27, 2011, 11:04:44 PMI created a new fork for SMF 1.1 compatibility: https://github.com/live627/smf-mw-auth