Remove the validation for field 'username'

13 years 8 months ago #139736 by famq23
Hello support,

I have a Joomla 1.5.14 and CB 1.2.1, ok.

In the field 'username' i put as number, because this field is the identification document, but i need that this field yes to dupplicate, because in this moment is unique and do not dupplicate, and has to be remove the validation unique.

Where can i see the validation of field 'username', in what files ?

Thanks.

Please Log in to join the conversation.

13 years 8 months ago #139754 by nant
You cannot - Joomla does not allow it.

Also please upgrade to CB 1.2.3 - we will be closing down CB 1.2.1 forum area very soon.

Please Log in to join the conversation.

13 years 8 months ago #139772 by famq23
Hello Community,

'Nant', please explore more the Joomla, yes !!!

I could solved the problem, and is the next:

For remove the unique validation field 'username', but this is out of CB component and same time is need:

The file is user.php, and the route is:

libraries/joomla/database/table/user.php

Line 168

Comment the next code:

[code:1]
/*
if ($xid && $xid != intval( $this->id )) {
$this->setError( JText::_('WARNREG_INUSE'));
return false;
}
*/
[/code:1]

And ready, do to test, dupplicating the same value.

Please Log in to join the conversation.

13 years 8 months ago #139794 by krileon
Replied by krileon on topic Re:Remove the validation for field 'username'
We will not help you with this, sorry. You're performing core edits that go against the structure of Joomla and CB. Username is required, period.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.181 seconds

Facebook Twitter LinkedIn