Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2002, 11:13 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default User name search in CP

Hi there
I have asked this at vB.com and Stave said maybe I could find help here

I admin several international forums some are multilingual

user names are writen in different lanugages

everything works fine even user search in the forums, but in admin cp I can not find Arabic names

thats been tested on pure english vB or fully translated vB

why no Arabic names show in my cp search? I get no users found no matter what I search for but names in latin letters are found

not that I am worried about it.. just made me think more for a fix if any already out there or can be done

Thanks
Reply With Quote
  #2  
Old 10-24-2002, 09:14 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Steve told ya to ask here?

sounds like a bug to me, so vb.com would have been right as you post first

i don't really know the arabic name system, but maybe the problem is because of the strtolower function in user.php

try to open admin/user.php
find this
Code:
" AND INSTR(LCASE(username),'".addslashes(strtolower(htmlspecialchars($ausername)))."')>0"
and replace it with this (code from memberlist.php)
Code:
" AND username LIKE '%".addslashes(htmlspecialchars($ausername))."%' "
Reply With Quote
  #3  
Old 10-24-2002, 10:49 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant give you cure but a suggestion:
If I were you I would force the users to use english letters while choosing their usernames. You can do it by restricting arabic letter chars in your vb settings.

You may regard the bug trivial considering the fact that it only effects Admin CP user find section, but IMO it can give you much more headaches than this on the long run. If this causes problem, I'm sure many Admin CP related codes can cause more problems. Eg. Your updating counters, chaning user details, restoring a back up etc.

I guess your best bet is to restrict Arabic letters in usernames.. My 2 cents..

Xenon: Actually we cant consider this a bug since vb is officialy claimed to works in English language only. Well it works in many language as we all know, but when problems like these occurs, we cant blaim them much as they warned in the begining.
Reply With Quote
  #4  
Old 10-24-2002, 05:19 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician is right, this bug can produce more errors in ACP...

@Pal: yes, i know, but when vb3 should support more languages they should know that such a "bug" already exists
Reply With Quote
  #5  
Old 10-24-2002, 05:44 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So are you saying that we should ban characters that are not latin characters?

Satan
Reply With Quote
  #6  
Old 10-24-2002, 07:34 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
So are you saying that we should ban characters that are not latin characters?
Actually I didn't say that.

Technical explanation is long, here is a recap: Different languages reside in different encodings. Most of the encodings are sort of "compatible" with "English" encoding. For example in Turkish encoding if you write letter A, it will be displayed as letter A in English encoding too since their ASCII Codes will be same. The difference of Turkish encoding would be using some special ASCII codes for Turkish letters and these would be assigned to less frequently used chars of English encoding and wouldnt clash with the basic ones.

However if you are using a completely different alphabet like Arabic, Korean, Chinese or Japanese, the number of different letters are so much that they will invade even the basic letters of english char set like A B C D etc. Then problems can begin if the script didnt think about this possibility.

For example if an arabic letter invades the place of backslash \ or $ sign in english char set, the script can regard it as a backslash or $ and try to escape it with "addslashes" command.

Well this was suppose to be recap I guess you get the gist.
Reply With Quote
  #7  
Old 10-25-2002, 05:02 AM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnx guys.. I am not sure at this point how to go about it.. restricting names is somewhat out of the question as everything is really in Arabic. As for the letters and mixing up with \ or $ I don't see how as they totaly seprate sets and I have not seen anything of the sort. (not that I am an expert in that) but I can say one thing about that... sometime (I mean rarely) someone would post and all looks fine till he/she saves it.. and the title becomes greeck !!! garbage, but very rare that happens

and I think that happens sometimes if key compnation is used in the first letter of the title like shift key and a letter
cuz in Arabic, Shift makes a differnt letter (somethin on top of the letter) as supposed to english upper or lower case of the same letter


I don't know.. you scaring me with this now I hope vB3 can handle it better
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04157 seconds
  • Memory Usage 2,225KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete