4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: baghdad4ever on December 26, 2007, 01:07:17 PM

Title: problem with arabic username????
Post by: baghdad4ever on December 26, 2007, 01:07:17 PM
hi

when i upgrade to 1.7.4

i have problem with arabic username

there is no one with arabic user name can login to album

only english name


so i returnback to 1.7

and every thing ok


so what can i do to solve this problem

mysql ver 5

php   5


thanks




Title: Re: problem with arabic username????
Post by: thunderstrike on December 26, 2007, 05:13:04 PM
If install this - http://www.4homepages.de/forum/index.php?topic=18256.0 - is fix for Arabic. ;)
Title: Re: problem with arabic username????
Post by: baghdad4ever on December 26, 2007, 05:48:11 PM
thanks

but the thread written in strange lang not english???

plz help
Title: Re: problem with arabic username????
Post by: thunderstrike on December 26, 2007, 06:57:51 PM
Topic is german and english for instruction ...

see for word: search and replace in topic ...
Title: Re: problem with arabic username????
Post by: baghdad4ever on December 26, 2007, 06:59:31 PM
thanks i try it now

and tell you after that

see you :D
Title: Re: problem with arabic username????
Post by: matab on December 26, 2007, 08:47:20 PM
If install this - http://www.4homepages.de/forum/index.php?topic=18256.0 - is fix for Arabic. ;)

thx thunder

the prob. now is solved in (register) , members can register with Arabic name ....



but there is one prob ...

they can not login in to album ...

Show them the error message ( the username or pas. is not correct )
Title: Re: problem with arabic username????
Post by: thunderstrike on December 26, 2007, 09:16:13 PM
If check in USERS_TABLE, what is user name characters use ?
Note: Please post one topic of same problem. No create new one for same.
Title: Re: problem with arabic username????
Post by: matab on December 26, 2007, 11:14:37 PM
ok  I check the USERS_TABLE and found name characters is  ( أ¤أںأ“أٹ ) & (  δίΣΚ )  :|

the 1th one when I changed to Arabic ( windows ) ,,, and the 2th is in UTF-8

Title: Re: problem with arabic username????
Post by: thunderstrike on December 26, 2007, 11:21:38 PM
ok  I check the USERS_TABLE and found name characters is  ( أ¤أںأ“أٹ ) & (  δίΣΚ )  :|

the 1th one when I changed to Arabic ( windows ) ,,, and the 2th is in UTF-8

This is right - please use this patch:

- http://www.4homepages.de/forum/index.php?topic=18766.0
- http://www.4homepages.de/forum/index.php?topic=18660.0
- http://www.4homepages.de/forum/index.php?topic=18628.0

Note: Is no affect on old user use Arabic. Account is active but only affect new user.
         If no use fresh gallery and want me for code and delete all no valid characters in USERS_TABLE auto - I do for custom coding. ;)
Title: Re: problem with arabic username????
Post by: matab on December 26, 2007, 11:37:51 PM
I used it  and this what I get , error :

Parse error: syntax error, unexpected '}' in /home/XXXXXX/public_html/XXXXXX/includes/sessions.php on line 232
Title: Re: problem with arabic username????
Post by: thunderstrike on December 26, 2007, 11:44:06 PM
I no can recreate error.

1 - Which topic ?
2 - Please post from line 230 to line 235.
Title: Re: problem with arabic username????
Post by: matab on December 26, 2007, 11:50:27 PM
sorry I donn't have front page now or any porg. that give me number of line

the sessions.php is in attach, please check it

Title: Re: problem with arabic username????
Post by: thunderstrike on December 26, 2007, 11:56:52 PM
You see two same block. You do bad replace.

Code: [Select]
}
    return false;
  }

    }
    return false;
  }

remove last 3 line (before function logout).
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 01:00:56 AM
sorry I try many time with new member and I get the same mas . error when I want to login in  " the username or pas. is not correct " ?!
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 01:03:10 AM
- PHP Version
- mySQL Version
- 4images Version ?
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 01:10:52 AM
php v 5.2.5
mySQL v 4.1.22
4images  1.7.4

and I want to mention that prob. is also in pictures upload ...
the member can not rename pictures with arabic name .... just E or 9
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 01:17:37 AM
Quote
the member can not rename pictures with arabic name .... just E or 9

Yes, this is right. This is check for A-Z0-9_- characters. Is want like this.
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 01:28:04 AM
 ok ,, but what about the last prob ?

 
Quote
error when I want to login in  " the username or pas. is not correct "
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 01:37:46 AM
Ok ... remove (reverse) patch of my 3 topic first and post back ... if need arabic characters in login and no reject - you need for remove patch first ...
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 01:50:46 AM
what u mean about (reverse) ??

and what the idea for remove the 3 patch ?
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 01:52:26 AM
Quote
and what the idea for remove the 3 patch ?

I no get right for first request. You say you want keep arabic username ... no for remove arabic username so you need remove (reverse) my 3 patch.
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 02:07:22 AM
you understand me wrong ...

my problem was the member cann't register  with ( arabic username ) ... and login in with ( arabic username )

your first post in this topic was solved the problem in (  register  ) but not in (  login in  )

I want for my member to enter (login in) with arabic username after they register  .
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 02:09:48 AM
Quote
you understand me wrong ...

Yes, is what I say before. Please remove my 3 patch for this. My patch is for check only for A-Z0-9_- but you want reverse. ;)
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 02:19:03 AM
ok I remove it all ...

 plz is there any solution for this problem ?  :(
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 02:24:34 AM
I no think is solution for this for now ... :(
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 02:31:36 AM
ok thx thunder for big help

I will wait anyone that can it help as to find solution for prob in ( login in )
Title: Re: problem with arabic username????
Post by: baghdad4ever on December 27, 2007, 01:10:45 PM
thank you

it is fixed now :D :D
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 04:39:23 PM
thank you

it is fixed now :D :D

And ... solution for fix ?
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 05:17:11 PM
thank you

it is fixed now :D :D

And ... solution for fix ?

I think he mean in register ...

plz , baghdad4ever

check if the member can it login in with Arabic user name after they register !?


In Arabic :
أخوي شيك اذا الاعضاء يقدرون يسون تسجيل دخول للالبوم بعد التسجيل
لان الحل اللي واضعه الاخ حل المشكلة فقط بالتسجيل ...
Title: Re: problem with arabic username????
Post by: baghdad4ever on December 27, 2007, 06:27:41 PM
 :D :D :D

yes i mean in regester and login in arabic user name

الحمد لله كنت اعاني من هذه المشكلة منذ شهرين

Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 06:28:12 PM
Ok so how is fix ?
Title: Re: problem with arabic username????
Post by: matab on December 27, 2007, 06:57:09 PM
its fix with me now thunder !! ...

when I did this :

http://www.4homepages.de/forum/index.php?topic=18256.msg99614#msg99614

and I did what nicky said to me :

(( delete the user in my album and try again ))

may be is work with baghdad4ever directly not with me ...
Title: Re: problem with arabic username????
Post by: thunderstrike on December 27, 2007, 07:01:24 PM
Very good. Thank for posting. ;)
Title: Re: problem with arabic username????
Post by: baghdad4ever on December 28, 2007, 08:06:37 AM
Ok so how is fix ?

i fix it by this global modification

http://www.4homepages.de/forum/index.php?topic=18256.0


and it is work fine

Title: Re: problem with arabic username????
Post by: Nicky on December 28, 2007, 09:24:12 AM
its the same thread ;) just another post