This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Changing code
#81

No problem!
The comments below in the link you gave me say something about Russian not being detected properly. Did you see that one?

I'm giving you three guesses...
Reply
#82

It's okay because I'm not using mb_detect_encoding() to try to detect Russian characters, I'm using it to check whether it's ASCII or not. I just tested with Russian characters and it works fine.

Have you completed the interview?
Reply
#83

It turned out that counting the string length when entering unicode was in fact a big problem as the script was banning the user for exceeding the maximum field length. Simple solution: use the function mb_strlen() instead of strlen().

http://php.net/manual/en/function.mb-strlen.php

Have you completed the interview?
Reply
#84

I just added the pagination anchor text feature. That's working well.

Have you completed the interview?
Reply
#85

Wow, progress seems to be moving on quite well. Are you sure there isn't anything I can work on?

EDIT: the ban feature seems to need improvement.

I'm giving you three guesses...
Reply
#86

It's okay thanks, everything is going well with development (so far).

Why do you think the ban feature needs improvement?

Have you completed the interview?
Reply
#87

The banning mechanism checks for the 'banned' cookie. If it is found, then the user gets a "you have previously been banned" message, despite the admin deleting the ban. Another row in the 'banned' table which is checked whether the user should be unbanned might work. How does the banning feature work when the cookie is expired and the ban is not deleted yet?

I'm giving you three guesses...
Reply
#88

If the ban is not deleted yet and the banning cookie has expired then you are still banned. By then though, the person's IP Address has probably changed. That's one of the reasons for the task that can automatically delete old bans.

Have you completed the interview?
Reply
#89

So how about having the cookie deleted if the admin wants it to? If someone was accidentally banned, then they shouldn't have to wait 30 days.

I'm giving you three guesses...
Reply
#90

Yeah that would be a good improvement. The best solution of course would be to make sure that no one gets accidentally banned.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
02-Jun-2020, 06:44 PM
Last Post by noblues
09-Jun-2014, 10:11 PM
Last Post by Steven
10-Oct-2013, 09:51 PM
Last Post by 2hands
30-Dec-2012, 01:34 AM
Last Post by 2hands
24-Jun-2012, 08:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)