Jump to content


Photo

PHPBB Limit User Name Characters


  • Please log in to reply
2 replies to this topic

#1 GoodGuy201

GoodGuy201
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 08 September 2006 - 09:12 AM

Hi,
  I am trying to limit the characters that can be used for PHPBB to just letters,numbers,underscore,and dash.  I don't know how i can do this.  I hope someone can help. Thanks!

#2 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 08 September 2006 - 09:12 AM

ask on phpbb forums, plenty of hacks and other modders there.

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 08 September 2006 - 09:24 AM

A little example for you to see how it works.

but i agree you should use the forum from the provided code as jenk said.


letters,numbers,underscore,and dash are all clased as a charecter.

<?php

$name="redarrows";

$lenth=strlen($name);

if($lenth > 8){

echo "sorry the name is to long your using $lenth charecters but there should only be 8";

}else {

echo "name lenth ok your useing $lenth charecters";

}
?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users