The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Usernames only in english?

View previous topic View next topic Go down

Solved Usernames only in english?

Post by Rhino.Freak on October 1st 2014, 8: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
Helper
Helper

Male Posts : 1246
Reputation : 105
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

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

Hello Rhino.Freak,

You could use this tutorial :
http://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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usernames only in english?

Post by Rhino.Freak on October 2nd 2014, 8: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
Helper
Helper

Male Posts : 1246
Reputation : 105
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

Post by SarkZKalie on October 2nd 2014, 8:44 am

I think not

SarkZKalie
Forumember

Male Posts : 448
Reputation : 78
Language : English

http://rotavn.nstars.org/

Back to top Go down

Solved Re: Usernames only in english?

Post by Ange Tuteur on October 2nd 2014, 2: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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usernames only in english?

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

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

Rhino.Freak
Helper
Helper

Male Posts : 1246
Reputation : 105
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

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

You're welcome ^^

This is solved for you now ?

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Usernames only in english?

Post by Rhino.Freak on October 4th 2014, 12:04 pm

yes. solved Smile

Rhino.Freak
Helper
Helper

Male Posts : 1246
Reputation : 105
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Usernames only in english?

Post by SLGray on October 4th 2014, 7:50 pm

Topic solved and archived



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


SLGray
Administrator
Administrator

Male Posts : 36648
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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