The Overclocked Forums

Go Back   The Overclocked Forums > Software Talk > Drupaltin
Home Hosting Forum Rules Register Search Mark Forums Read


Reply
 
Thread Tools Display Modes
Old 03-19-2008, 08:24 AM   #1
Member
Associate

hjmaier is on a distinguished road
Posts: 33
Drupaltin with vBulletin on UTF8

Hello,

I just converted my forum to UTF8 and having lots of trouble with drupaltin.

With "normal" characters, there is no problem. But if you use special characters like ßüöä in username or password (esp. Password) drupaltin mixes it up. It is not possible to log into Drupal any more with that username or passworo.

Also if you change a password in the control center of the user. Passwords with those special characters are simply not copied correctly. I guess it is because of this routine:

PHP Code:
require_once(DIR '/includes/drupaltin_config.php');


//*** Figure out the timezone settings and convert them to work in the Drupal vB
//    Divided by 3600 b/c the Drupal system.module timezone form is in seconds   
$vbulletin->GPC['timezoneoffset'] = intval($vbulletin->GPC['timezoneoffset']) * 3600;

## Connect to Drupal database and dump the values
$connector = new DbConnector();

$insertQuery sprintf("INSERT INTO {$drup_prefix}users (
    uid, name, pass, mail, mode, sort, threshold, theme, signature, created, access, login,
     status, timezone, language, picture, init, data)
    VALUES ('%s', '%s', '%s', '%s', '0', '0', '0', '', '', '0', '0', '0', '1', '%s', '', '', '%s', 'a:0:{}')"
,
        
mysql_real_escape_string($vbulletin->userinfo['userid']),
        
mysql_real_escape_string($vbulletin->GPC['username']),
        
mysql_real_escape_string($vbulletin->GPC['password_md5']),
        
mysql_real_escape_string($vbulletin->GPC['email']),    
        
mysql_real_escape_string($vbulletin->GPC['timezoneoffset']),
        
mysql_real_escape_string($vbulletin->GPC['email']));

    
## Save the form data into the database
    
if ($result $connector->query($insertQuery)){

        
## It worked
        
return;

    }else{

        
## It hasn't worked so stop. Better error handling code would be good here!
        
exit;

    } 
I am not sure how to fix it but trying to solve it.

The problem should be: mysql_real_escape_string($vbulletin->GPC['password_md5'])
and mysql_real_escape_string($vbulletin->userinfo['userid']),

Does anybody has a clue?

Best regards
Hans-Joachim
  Offline
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Existing Drupal + Existing vBulletin koro Drupaltin 1 11-26-2007 01:55 PM
New to Drupaltin 911 Drupaltin 2 10-06-2007 09:24 PM
Drupaltin Cookies and Sessions bacchus101 Drupaltin 1 09-21-2007 09:59 PM
Coming Soon- Upgrade to vB 3.6.0 Jordan Site Announcements 1 08-05-2006 10:25 PM


Need a Passport? Fastport Passport can process your passport overnight!

All times are GMT -4. The time now is 06:23 PM.


Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2008, The Overclocked
[page compression: 39.37 k/43.13 k (8.72%)]