vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Restrict Usernames\Thread Titles (https://vborg.vbsupport.ru/showthread.php?t=209284)

alkuwary 03-24-2009 11:59 AM

Restrict Usernames\Thread Titles
 
Hi,

Is there a way to restrict Usernames to english only and also thread titles ? I tried searching but didn't find anything for vb 3.8.1

TIA

Dismounted 03-25-2009 08:48 AM

Add this as the username regex (Admin CP > vBulletin Options), it will allow only alphabetical characters.
Code:

^[a-z]+$

alkuwary 03-25-2009 01:31 PM

How about only allowing alphanumeric characters ?

Also I can't do anything about thread titles ?

Thanks for your help Dismounted, It's highly appreciated.

Seven Skins 03-25-2009 01:32 PM

^[a-zA-Z0-9 ]+$

Alphanumeric (Both uppercase and lower) characters including space

alkuwary 03-25-2009 04:55 PM

Thanks I figured it out now and modified it a little bit so it will allow underscores and not spaces, here's the code if anyone needs it.

PHP Code:

^[a-zA-Z0-9_]+$ 

If you need to add spaces here's the code

PHP Code:

^[a-zA-Z0-9_ ]+$ 

What I need now is a way to restrict thread titles also, Can anyone point me in the right direction ?

lazydesis 09-17-2009 04:06 AM

i would like to know as well if there is a way to restrict thread titles to alphanumeric

any help please :) thanks


All times are GMT. The time now is 04:43 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.00977 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete