Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
Roy_Shiker
Hangin' Around



Joined: Dec 27, 2003
Posts: 45

PostPosted: Tue Jan 11, 2005 5:02 pm Reply with quote

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.
 
View user's profile Send private message Send e-mail
Roy_Shiker







PostPosted: Wed Jan 12, 2005 9:42 am Reply with quote

anyone /?! its really importent
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Jan 12, 2005 4:18 pm Reply with quote

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.
 
View user's profile Send private message
Roy_Shiker







PostPosted: Wed Jan 12, 2005 5:35 pm Reply with quote

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







PostPosted: Wed Jan 12, 2005 7:02 pm Reply with quote

#2 - Use phpmyadmin and issue this command
Code:
ALTER TABLE `nuke_users` AUTO_INCREMENT = 2;
 
Roy_Shiker







PostPosted: Wed Jan 12, 2005 8:34 pm Reply with quote

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. Bang Head
 
Roy_Shiker







PostPosted: Wed Jan 12, 2005 8:56 pm Reply with quote

Update: i didnt solve the real time status: offline situation. Sad
 
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Thu Jan 13, 2005 3:41 pm Reply with quote

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?
 
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Thu Jan 13, 2005 4:00 pm Reply with quote

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 
View user's profile Send private message
Roy_Shiker







PostPosted: Thu Jan 13, 2005 6:27 pm Reply with quote

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







PostPosted: Thu Jan 13, 2005 6:51 pm Reply with quote

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







PostPosted: Sat Jan 15, 2005 7:08 pm Reply with quote

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







PostPosted: Sun Jan 16, 2005 3:08 pm Reply with quote

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







PostPosted: Sun Jan 16, 2005 3:45 pm Reply with quote

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







PostPosted: Sun Jan 16, 2005 4:58 pm Reply with quote

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 Smile )
 
sixonetonoffun







PostPosted: Sun Jan 16, 2005 5:26 pm Reply with quote

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.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©