Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

White space in username still not allowed? (solved)

10 years 3 months ago
  • N.'s Avatar
    Topic Author
  • N.
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

I am using Jomsocial 3.1.0.1 and Joomla 3.2.1.
I use multiple profiles.
I would like the username to be able to accept white spaces as we are using it for company names.
In an old post I read that the problem should be solved from Jomsocial 3.1 RC onwards.

But, in my site it's not possible.
Can you please help me?

With regards

10 years 3 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

Hi there.

Yes, spaces are still not allowed since this's bassicaly a standard Joomla behaviour.

10 years 3 months ago
  • N.'s Avatar
    Topic Author
  • N.
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Chris,

Joomla forum say that this "bug" has been fixed in the 3.2.1. update and indeed i cannot find the /s in the user.php file anymore. Whar I do see is that at fill in there is a redirection to Jomsocial
"Message

Redirected to Community Registration."

When I disable Jomsocial and use the regular Joomla user registration, there is no problem.
So, what else should I do?

With regards,
Eric

PS I deinstalled Jomsocial, deleted everything from the database, then reinstalled, but the problem remains, only when the user regsitration goes via Jomsocial.

Can you tell me which file is being used for the validation of the value of the field username?

PPS I did an absolutely new install of Joomla with an absolutely new database and a fresh install of Jomsocial. Just that, no more, no other extensions whatsoever.
I can use a Joomla registration with a white space in the username. OKAY
I can NOT use a white space in the username, when using the Jomsocial registration (see attachment). NOT OKAY

Attachments:
10 years 3 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

Hi Bons.

I'll consult this matter with our developer.

10 years 3 months ago
  • N.'s Avatar
    Topic Author
  • N.
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Chris,

Can you give me a clue on how long it's gonna take to fix it?
The customer is anxious to get the new site live...

With regards,
Niels

10 years 3 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

Hi Bons.

Fix for this problem should be ready today, I'll let you know as sson our developer will send me the fixed file.

10 years 3 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

Hi Bons.

Please keep in mind that this fix will not be included into JomSocial 3.1.0.4 for now becaue only Joomla 3.2.1 allows registration with spaces in usernames and at this moment we can't have two seperate intallation package for J2.5 and J3.2

so go to file

components\com_community\helpers\
file: validate.php

and change this

static public function username( $username )
 {
  // Make sure the username is at least 1 char and contain no funny char
  return (!preg_match( "/[<>\"'%;()& ]/i" , $username ) && JString::strlen( $username )  > 0 );
 }

to this
[11:04:06 AM] Viet Vu:  static public function username( $username )
 {
  // Make sure the username is at least 1 char and contain no funny char
  return (!preg_match( "/[<>\"'%;()&]/i" , $username ) && JString::strlen( $username )  > 0 );
 }

10 years 3 months ago
  • N.'s Avatar
    Topic Author
  • N.
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Chris,

Thank you!

This is the solution to my problem.

With regards,
Niels

10 years 3 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

hi Bons.

Great, then let me close and mark this thread as solved , have a great day! and if you need our further help, please feel free to create a new thread.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW