The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Usernames only in english?

4 posters

Go down

Solved Usernames only in english?

Post by Rhino.Freak October 1st 2014, 7:32 am

SO a user named "火影帝" just registered to my forum -_- I only want to allow usernames written in English characters.. how can I achieve that?
Also the profile fields too in english only..

Much thanks! Very Happy


NOTE: don't misunderstand me, my forum is English so I only want people to communicate in English language, that includes conversing with people and knowing them. Having it in another language would be tough for people to communicate with that specific person.
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

Post by Ange Tuteur October 1st 2014, 5:42 pm

Hello Rhino.Freak,

You could use this tutorial :
https://help.forumotion.com/t134381-block-numbers-in-usernames-at-registration#904739

You can modify the expression to block certain characters. It can still be bypassed if the user registering has javascript disabled.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usernames only in english?

Post by Rhino.Freak October 2nd 2014, 7:27 am

hmm but for that I have to like put ALL the symbols there are in the foreign languages Sad Is there any other way where I can put only the ALLOWED characters in the username field?

Thanks
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

Post by SarkZKalie October 2nd 2014, 7:44 am

I think not Usernames only in english? 1598202360


Usernames only in english? Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1447
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

Solved Re: Usernames only in english?

Post by Ange Tuteur October 2nd 2014, 1:48 pm

You could do this, but you wont be able to use spaces. You'll have to use underscores instead.
Code:
location.pathname=="/register" && location.search=="?agreed=true&step=2" && $(function(){
      
  var username_format = /^\w*$/;
  var format_notice = "Only English usernames are allowed.";
      
  var f = $('form[action=""][method="post"]');
  var p = $('#username_reg');
  var i = $('<span id="username_issue" />').html('<br/>'+format_notice).css({ "color":"red", "font-style":"italic", "display":"none"}).appendTo(p.parent());
      
  var u = function() {
    if (username_format.test(p.val())) i.hide();
    else {
      i.show();
      return false;
    }
  };
      
  p.on('change keyup', function(){ u() });
  $('input[type="reset"]', f).click(function(){ u() });
  $('input[type="submit"]', f).click(u);
  u();
      
});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usernames only in english?

Post by Rhino.Freak October 3rd 2014, 7:21 pm

Amazing! THAT would be really really cool! THANKS Ange Smile appreciate your support and help! ^^
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

Post by Ange Tuteur October 4th 2014, 4:46 am

You're welcome ^^

This is solved for you now ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usernames only in english?

Post by Rhino.Freak October 4th 2014, 11:04 am

yes. solved Smile
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

Post by SLGray October 4th 2014, 6:50 pm

Topic solved and archived



Usernames only in english? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51581
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum