- Posts: 60
- Thank you received: 1
Customize registration
- bernabe28
- Topic Author
- Offline
- Senior Member
-
Less
More
8 years 6 months ago - 8 years 6 months ago #88286
by bernabe28
Customize registration was created by bernabe28
Hello,
How I can customize the code of the custom fields "name" lastname "and email" registry?
I have reviewed in components/com_osmembership/register/default_form.php but this only appears
Thank you very much for your help
Regards
How I can customize the code of the custom fields "name" lastname "and email" registry?
I have reviewed in components/com_osmembership/register/default_form.php but this only appears
Code:
foreach ($fields as $field)
{
echo $field->getControlGroup($bootstrapHelper);
}
Thank you very much for your help
Regards
Last edit: 8 years 6 months ago by bernabe28.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 6 months ago #88353
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customize registration
How you want to customize it?
if ($field->name == 'email')
{
// Write code for email
}
elseif ($field->name == 'last_name')
{
// Write code for last name
}
else
{
echo $field->getControlGroup($bootstrapHelper);
}
Something like that should work
Tuan
if ($field->name == 'email')
{
// Write code for email
}
elseif ($field->name == 'last_name')
{
// Write code for last name
}
else
{
echo $field->getControlGroup($bootstrapHelper);
}
Something like that should work
Tuan
Please Log in or Create an account to join the conversation.
- bernabe28
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 1
8 years 6 months ago #88379
by bernabe28
Replied by bernabe28 on topic Customize registration
Hello,
I do not get it to work in components/com_osmembership/register/default_form.php
You could put a complete sample code to show email, firsname and lastname?
Than you very much
Regards
I do not get it to work in components/com_osmembership/register/default_form.php
You could put a complete sample code to show email, firsname and lastname?
Than you very much
Regards
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 6 months ago #88400
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customize registration
Actually, in the file, you can see the code to render a separate field:
echo $fields->getControlGroup($bootstrapHelper);
echo $fields->getControlGroup($bootstrapHelper);
echo $fields->getControlGroup($bootstrapHelper);
That's the code for rendering each of the field which you requested
Tuan
echo $fields->getControlGroup($bootstrapHelper);
echo $fields->getControlGroup($bootstrapHelper);
echo $fields->getControlGroup($bootstrapHelper);
That's the code for rendering each of the field which you requested
Tuan
Please Log in or Create an account to join the conversation.
- bernabe28
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 1
8 years 6 months ago #88403
by bernabe28
Replied by bernabe28 on topic Customize registration
Hello Tuan,
The truth is that not clarify me, I put the code but I can not make it work.
Can you check it. I've spent the default_form.php file: components/com_osmembership/register/default_form.php
Thank you very much for your help
Regards
The truth is that not clarify me, I put the code but I can not make it work.
Can you check it. I've spent the default_form.php file: components/com_osmembership/register/default_form.php
Thank you very much for your help
Regards
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 6 months ago #88434
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customize registration
Hi
In this case, please submit a support ticket. We will help checking to see why it doesn't work and get it corrected for you
Tuan
In this case, please submit a support ticket. We will help checking to see why it doesn't work and get it corrected for you
Tuan
Please Log in or Create an account to join the conversation.
- bernabe28
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 1
8 years 6 months ago #88468
by bernabe28
Replied by bernabe28 on topic Customize registration
Hello Tuan,
Now it works perfect.
Thank you very much again for your help, without it would be difficult to customize the component and at the same time help you discover our needs for improvement. It really is an incredible extension, surely the best of those in the market.
Thank you very much for your help
Now it works perfect.
Thank you very much again for your help, without it would be difficult to customize the component and at the same time help you discover our needs for improvement. It really is an incredible extension, surely the best of those in the market.
Thank you very much for your help
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 6 months ago #88528
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customize registration
Great, very happy to hear that.
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.