jOpenSimWorld

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

Registration Limitations

4 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.

3 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.

3 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.

2 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.

2 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.109 seconds

Search

Donate jOpenSim

Please consider supporting our efforts.

Amount

Our Regions

Region: Loc X: Loc Y:
Agora 1000 998
BareBad… 997 997
Bohemas 996 998
BoraBor… 1002 999
Crystal… 1001 1000
DeepTho… 1005 998
FoToSan… 999 995
jCity 1001 997
jOpenWe… 1000 999
JuniorT… 1002 1001
Kanadah… 1002 1000
LindaKe… 1000 997
LittleC… 996 997
MonteSc… 1001 1001
Naos 999 999
Pangaea 1005 1003
RiverSi… 999 1000
Sakani 999 998
Snambin 1001 998
Tartola 997 998
ViewerH… 1002 998
WaterWo… 1001 999
WilderK… 1000 1000

jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0