• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: username=name.firstname

username=name.firstname 10 years 5 months ago #29414

  • zyglur
  • zyglur's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
hello,

In a registration form with the integration joomla, I would define myself username following a formalism.
The visitor information:
name
first name
e-mail
password

I created a hidden field named nickname.
I wish to validate the form, the nickname associated with the username of joomla integration than name.firstname (name dot firtname) value (if you can put a dot) else namefirstname.
for example:
Name: doe
first name: john

nickname will be: doe.john (or doejohn)

I do not know how.
If someone could give me a hand.

thank you

Zyglur
The administrator has disabled public write access.

username=name.firstname 10 years 5 months ago #29416

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
You can achieve this scenario using the following script in the "PHP Scripts called on form process" area:
 
$_POST['form']['nickname'] = $_POST['form']['name'].".".$_POST['form']['firstname'];
 

Please keep in mind that you will have to use the exact names of your fields when using this script (i tried to mimic your scenario).

PS: Please make sure your hidden field has a default value (it can take any value for example: value)

More information on PHP scripts can be found here:

http://www.rsjoomla.com/support/documentation/view-article/602-php-scripts.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 10 years 5 months ago by cosmin.cristea.
The administrator has disabled public write access.

username=name.firstname 10 years 5 months ago #29417

  • zyglur
  • zyglur's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
i have write in php scripts :
$_POST['form']['pseudo'] = $_POST['form']['nom'].".".$_POST['form']['prenom'];

when i click on submit, i have a message :

warning
please enter a username.

zyglur
Last Edit: 10 years 5 months ago by zyglur.
The administrator has disabled public write access.

username=name.firstname 10 years 5 months ago #29421

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Please follow the instructions from my previous post, give the hidden field a default value - (Manage Forms -> Edit pseudo -> write something in the default value of the field).

Also please make sure that in the Joomla! registration plugin, the Username dropdown points to the hidden field.

More information on the plugin can be found here:
http://www.rsjoomla.com/support/documentation/view-article/589-rsformpro-joomla-user-registration-plugin.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!