vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Restrict usernames to alphanumeric and underscore (https://vborg.vbsupport.ru/showthread.php?t=73559)

shawno 01-17-2005 12:07 PM

Reynaldovb,

Thank you
Thank you
Thank you

To be suprised I am not sure why this isn't a default item within vB. The amount of work generated by users saying "my log in doesn't work" all because of spaces and symbols is incredible.

Shawno

T3MEDIA 01-18-2005 02:23 AM

Do I put \- at then end to add the "-" symbol? I dont mind having that as well.

Reynaldovb 01-18-2005 04:58 AM

T3Media:

Yes, it would be something like this:
PHP Code:

if (preg_match('/[^a-zA-Z0-9\_\-]+/'$_POST['username'])) 


T3MEDIA 01-20-2005 12:29 PM

Respect due. Thanks. Just needed to verify.

Mechanical Mind 01-23-2005 01:30 PM

* clicks install *

I haven't had a problem with user names like >>..@---@..<< yet !!!

However, I don't want to have such problems!!!

Thank you. I'm going to test this out. And I only have 85 members, so I will email a few of them to notify them that an underscore has been added to their names. (I will add them manually)

Mechanical Mind 01-23-2005 03:32 PM

Does anybody which part in CSS to modify the error message color. The error message color on my forum is so light, that it can barely be seen.

Thanks.

UPDATE..........

I found it. Page Background, Font Color

PIKenPIK 02-07-2005 07:28 AM

i've installed V3.0.6

following code in register.php

PHP Code:

    $errors = array();

    
// check username does not contain semi-colons
    
if (preg_match('/(?<!&#[0-9]{3}|&#[0-9]{4}|&#[0-9]{5});/'$_POST['username']))
    {
        
//eval(print_standard_error('error_username_semicolon'));
        
eval('$errors[10] = "' fetch_phrase('username_semicolon'PHRASETYPEID_ERROR) . '";');
    } 

Is that the same or what?

Lizard King 02-07-2005 10:08 AM

PHP Code:

if (preg_match('/[^a-zA-Z0-9\_\ \]+/'$_POST['username'])) 

Is this the correct code if I want to allow space in user names ?
I am using one :)

Reynaldovb 02-07-2005 04:11 PM

Lizard King:
No, I think the correct way to do it would be something like this:
PHP Code:

if (preg_match('/[^a-zA-Z0-9\_\s]+/'$_POST['username'])) 


clearchannel 02-19-2005 01:17 PM

I would like to install this hack in vB 3.06. I would also like to allow spaces in usernames. Which of the above code would be correct to use in 3.06?

Thanks


All times are GMT. The time now is 04:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01139 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete