Author |
Message |
Roy_Shiker
Hangin' Around

Joined: Dec 27, 2003
Posts: 45
|
Posted:
Tue Jan 11, 2005 5:02 pm |
|
Hello falks,
I found some problem when i translate the 7.6 ver (2.8 Patched chatserv) into hebrew
First Probelm: block-whos_online.php
when i user with hebrew username login, his name becomes like this:
øåòé
Second Problem: Porblems on users table i think.
there is the first user which is ID is -1 and when a user register, his ID starts from 7 and up why is that ?! can it be fixed?
Third Problem: Real User Status: Offline
this is what i get when i login with my hebrew username, how to fix it ?.
Please help me its very importent. |
|
|
|
 |
Roy_Shiker

|
Posted:
Wed Jan 12, 2005 9:42 am |
|
anyone /?! its really importent |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Jan 12, 2005 4:18 pm |
|
Quote: | Second Problem: Porblems on users table i think.
there is the first user which is ID is -1 and when a user register, his ID starts from 7 and up why is that ?! can it be fixed? | That is not a problem. You can leave that be.
Quote: | Third Problem: Real User Status: Offline
this is what i get when i login with my hebrew username, how to fix it ?. | Start by deleting your cookies and clearing your cache to rule out a cookie issue. |
|
|
|
 |
Roy_Shiker

|
Posted:
Wed Jan 12, 2005 5:35 pm |
|
Raven wrote: | Quote: | Second Problem: Porblems on users table i think.
there is the first user which is ID is -1 and when a user register, his ID starts from 7 and up why is that ?! can it be fixed? | That is not a problem. You can leave that be.
Quote: | Third Problem: Real User Status: Offline
this is what i get when i login with my hebrew username, how to fix it ?. | Start by deleting your cookies and clearing your cache to rule out a cookie issue. |
Hey raven thank you very much for answering!
for my second problem, i want the user ID will start from 2 and not from 7, any idea?
and for the third problem, i've done that and ot didnt work, any other idea? |
|
|
|
 |
Raven

|
Posted:
Wed Jan 12, 2005 7:02 pm |
|
#2 - Use phpmyadmin and issue this commandCode:ALTER TABLE `nuke_users` AUTO_INCREMENT = 2;
|
|
|
|
|
 |
Roy_Shiker

|
Posted:
Wed Jan 12, 2005 8:34 pm |
|
Great it solved the problem.
and about the third problem i solved it 2 on my own.
now left the first problem.
when i register with hebrew username i get this in my personal page insted of my username here is my name øåòé
the only changes i did in the modules/Your_Account/index.php
is in line 34
Before:
Code: if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
|
After:
Code: if ((!$username) || ($username=="") || (ereg("[^א-תa-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
|
i only add the a-z of hebrew alpabeth as you can see.
and its solve the problem on registring.
and in all version all that took is this action but in 7.6 i dosnt help only in registring.  |
|
|
|
 |
Roy_Shiker

|
Posted:
Wed Jan 12, 2005 8:56 pm |
|
Update: i didnt solve the real time status: offline situation.  |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Thu Jan 13, 2005 3:41 pm |
|
Need more info here, you can't register or you just show as offline when you login? if the last one is the case aside from being shown as offline can you access any module set for registered users only? |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Thu Jan 13, 2005 4:00 pm |
|
I couldn't even manage to test this every editor I have translates hebrew to binary or ?????.?????? |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
Roy_Shiker

|
Posted:
Thu Jan 13, 2005 6:27 pm |
|
I can register and login.
but when i go to my homepage on your_account module it shows real user status: offline
* I dont run on windows server
and chatserv i didnt touch the modules, i can access everything |
|
|
|
 |
chatserv

|
Posted:
Thu Jan 13, 2005 6:51 pm |
|
In the Your Account module's index.php file find:
Code:echo ""._USERSTATUS.": <b>$online</b><br>\n";
|
Change it to:
Code:echo ""._USERSTATUS.": <b>$online DB Uname equals $username and Cookie Uname equals $cookie[1]</b><br>\n";
|
Then upload it, go then to the Your Account module and post what it now says in the line that used to only say User Status: Offline |
|
|
|
 |
Roy_Shiker

|
Posted:
Sat Jan 15, 2005 7:08 pm |
|
here what it said:
Actual User Status: Offline DB Uname equals רועי and Cookie Uname equals øåòé
(about the "øåòé" i cant see it either. and about the "רועי" its my username.)
any other ideas?
(btw thanks for the quick answer ! ) |
|
|
|
 |
Roy_Shiker

|
Posted:
Sun Jan 16, 2005 3:08 pm |
|
I found something else..
when i register with an english username and connect to the system my status is: ONLINE! and when i connect with my hebrew username its OFFLINE |
|
|
|
 |
chatserv

|
Posted:
Sun Jan 16, 2005 3:45 pm |
|
Quote: | Actual User Status: Offline DB Uname equals רועי and Cookie Uname equals øåòé |
If those two don't match you won't be seen as online, what i don't know yet is why the nick saved to the cookie is different. |
|
|
|
 |
Roy_Shiker

|
Posted:
Sun Jan 16, 2005 4:58 pm |
|
i dont know either.
mybe its not in the your_account module and its in another file ?
mybe in the includes folder ? usercp.php mybe ? (trying to give you some ideas ) |
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Jan 16, 2005 5:26 pm |
|
Something with the way it gets encoded assuming it worked before try removing the addslashes code for arguements sake. Nothing else has really been changed in recent history. |
|
|
|
 |
|