jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 8
Total Residents: 490
Online Now: 0
Hypergriders online: 0
× Creating OpenSim accounts during Joomla! registration

Registration Limitations

7 months 4 weeks ago #3906 by MTeegardin
Hello,
Is there any way I can put in a line of code or something? I really need to limit people from using Spaces in the jOpensim Registration.
It is driving me crazy........ they use spaces to create three names, then they cannot log-in to the grid because Opensim Clients only allow two names.

I have not found any setting to disallow spaces in the names for jOpensim.

Thanks in advance!!

Mark

Please Log in or Create an account to join the conversation.

6 months 2 weeks ago #3910 by MTeegardin
ok, looks like I am out of options.
Goodbye and good luck in your future.

Please Log in or Create an account to join the conversation.

6 months 2 weeks ago #3912 by druskus
the solution should be in the JOpenSim Register plugin, I have had the same problem for years and even specifying it in the registration form people keep registering without reading.

Owner of Impero Web Group and Zone Nations Virtual World www.zonenations.com
Dev Italian Language for JOpenSim

Please Log in or Create an account to join the conversation.

5 months 1 week ago #3915 by druskus
The issue does not lie within the JOpenSim Register itself, but rather requires an override of the Joomla core in the user registration component. To do this, navigate to Joomla admin, then Extensions, and Template. Choose your template and proceed to /html/com_users/registration/default.php. I resolved the problem by adding the following code:
?>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var input = document.getElementById('jform_jopensimregister_jopensim_firstname');

input.addEventListener('input', function() {
this.value = this.value.replace(/[^a-zA-Z0-9]/g, '');
});

input.addEventListener('paste', function(e) {
e.preventDefault();
var text = (e.originalEvent || e).clipboardData.getData('text/plain');
this.value = text. Replace(/[^a-zA-Z0-9]/g, '');
});
});
</script>
<?php

P.S. use Helix Ultimate Framework

Owner of Impero Web Group and Zone Nations Virtual World www.zonenations.com
Dev Italian Language for JOpenSim

Please Log in or Create an account to join the conversation.

5 months 1 week ago #3916 by MTeegardin
Thanks, I think. Maybe someone else will find it useful, as I said in my earlier post, I'm out, I've moved-on.

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds