won't work for german clients

This addon will synchronize the resistances of your guild with phpRaid

Moderator: Diska

won't work for german clients

Postby clanpunisher » Fri Jul 07, 2006 6:11 pm

this version wont work with german clients unfortunately :/


for me in roster strings are saved as ansi and in phpraid they re saved as utf8... this for names, talents, class and so on... :/

i have already wrote a plugin for roster 160, but my script just checks if the member is in one of the guilds, and if so, it will write talents, ressis, profile_id for phpbb and also the items/loots from eqdkp ^^

have a look

http://termine.warcraftclan.de

if i find enough time i will post my code...

hfgl warlordge
clanpunisher
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Fri Jul 07, 2006 3:00 pm

won't work for german clients

Postby Diska » Mon Jul 10, 2006 4:52 pm

So, if I get this right this addon is not working because the Character names don't match up because of the ANSI/UTF8 difference? And that is caused because you modded your phpRaid version?

If so, I'm afraid you're on your own.
User avatar
Diska
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 179
Joined: Tue Jul 04, 2006 2:05 pm

Re: won't work for german clients

Postby Moondrake » Thu Jul 13, 2006 6:54 pm

You have to change some lines in the index.php
Code: Select all

            $sql 
"SELECT * FROM " $db_prefix "players WHERE name='" utf8_encode($phpraid_chars['name']) . "'";
            
$result_char $db_roster->sql_query($sql);
        
            if(
$db_roster->sql_numrows($result_char) > 0)
            {
                
// found a player name match
                // update the phpraid settings with this user
                
$char $db_roster->sql_fetchrow($result_char);
                
                
$name utf8_decode($char['name']);
                
$class utf8_decode($char['class']);
 


the original code is without utf8_encode/utf8_decode.


Moon
User avatar
Moondrake
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Tue Jul 04, 2006 8:28 pm

won't work for german clients

Postby Diska » Fri Jul 14, 2006 2:00 pm

Thanks, I'll try to release a new version with some localization fixes.
User avatar
Diska
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 179
Joined: Tue Jul 04, 2006 2:05 pm


Return to phpRaid Synchronization

Who is online

Users browsing this forum: No registered users and 0 guests

cron