Code: Select all
// UPPERCASE nicks will be converted to lowercase
if($data['username']==strtoupper($data['username'])){
$data['username'] = strtolower($data['username']);
}
Megakyoto wrote:Ok done.
In includes/ucp/ucp_register.php after $data = array(...
Code: Select all
// UPPERCASE nicks will be converted to lowercase if($data['username']==strtoupper($data['username'])){ $data['username'] = strtolower($data['username']); }
following the amigojack's concept, that's IMHO common sense, you should create a condition.. like:AmigoJack wrote:you're enforcing others your taste, without thinking about what you don't want to be forced to
Code: Select all
if(($data['user_id'] = 'YOUR USER_ID' || $data['username'] == strtoupper($data['username']))
{
do your magic here... ;
}
For the records I only lowercase whatever is outside brackets and will fix the url issue since there is an autolink feature I forgot.AmigoJack wrote:You're tampering the data and totally changing its information: https://en.wikipedia.org/wiki/lun is another request than https://en.wikipedia.org/wiki/LUN. And for your rest you're only affecting latin letters. GOOD LUCK WITH THIS TEXT.
mb_strtolower()
** function, which preserve near all utf-8 letters:Code: Select all
mb_strtolower($data['username'], 'UTF-8');
mb_strtoupper($str, 'UTF-8');
*** Code: Select all
// UPPERCASE nicks will be converted to lowercase
if($data['username'] == mb_strtoupper($data['username'], 'UTF-8')){
$data['username'] = mb_strtolower($data['username'], 'UTF-8');
}
Code: Select all
.username {
text-transform: lowercase;
}
username
Code: Select all
<a class="username" href="./memberlist.php?mode=viewprofile&u=1506761">Megakyoto</a>
That's the right answer. Thanks.ViolaF wrote:If you dont need this * signs to convert to a lower counterpart
use always min.mb_strtolower()
** function, which preserve near all utf-8 letters
If that is your problem then you are "shutting the stable door after the horse has bolted".Megakyoto wrote:Perhaps some of definitely don't understand the issue since in this forum everybody behaves in a civilized manner, but believe me when I tell you if you start seeing THETROLLESTOFTHETROLLS or THEKINGOFTHEVAGINAS as nicks everywhere you would start reconsidering.