Samer Semaan

Remove Username Field from Registration ?

7 posts in this topic

Hi Samer

Thanks or using BT Login.

Please try this solution to solve your problem

1st: Open file mod_bt_login/tmpl/default.php

Find this code and remove it

<div class="btl-field">
<div class="btl-label"><?php echo JText::_( 'MOD_BT_LOGIN_USERNAME' ); ?></div>
<div class="btl-input">
<input id="btl-input-username1" type="text" name="jform[username]" />
</div>
</div>
<div class="clear"></div>

2nd: Open file /mod_bt_login/tmpl/js/default.js

Find and remove this code

if(BTLJ("#btl-input-username1").val()==""){
BTLJ("#btl-registration-error").html(Joomla.JText._('REQUIRED_USERNAME')).show();
BTLJ("#btl-input-username1").focus();
return false;
}

I hope my reply will help you.

hmd likes this

Share this post


Link to post
Share on other sites

Hi Samer

Thanks or using BT Login.

Please try this solution to solve your problem

1st: Open file mod_bt_login/tmpl/default.php

Find this code and remove it

<div class="btl-field">
<div class="btl-label"><?php echo JText::_( 'MOD_BT_LOGIN_USERNAME' ); ?></div>
<div class="btl-input">
<input id="btl-input-username1" type="text" name="jform[username]" />
</div>
</div>
<div class="clear"></div>

2nd: Open file /mod_bt_login/tmpl/js/default.js

Find and remove this code

if(BTLJ("#btl-input-username1").val()==""){
BTLJ("#btl-registration-error").html(Joomla.JText._('REQUIRED_USERNAME')).show();
BTLJ("#btl-input-username1").focus();
return false;
}

I hope my reply will help you.

Hello thank you, is it possible to hide the username field and let the module submit it to joomla same content as email? meaning that the form will submit to joomla database the username and email the user email?

thx

hmd likes this

Share this post


Link to post
Share on other sites

Ok.

Please try to change

<div class="btl-field">
<div class="btl-label"><?php echo JText::_( 'MOD_BT_LOGIN_USERNAME' ); ?></div>
<div class="btl-input">
<input id="btl-input-username1" type="text" name="jform[username]" />
</div>
</div>
<div class="clear"></div>

to

<input id="btl-input-username1" type="hidden" name="jform[username]" />

And change

if(BTLJ("#btl-input-username1").val()==""){
BTLJ("#btl-registration-error").html(Joomla.JText._('REQUIRED_USERNAME')).show();
BTLJ("#btl-input-username1").focus();
return false;
}

to

BTLJ("#btl-input-username1").val(BTLJ("#btl-input-email1").val()); 

hmd likes this

Share this post


Link to post
Share on other sites

Hiiii , can you help me

Is it possible that remove email field from register form in bt login modules? How? (both email field )

Share this post


Link to post
Share on other sites
On 22/1/2015 at 0:44 AM, tronghm said:

Ok.

Please try to change

 

 

<div class="btl-field">
<div class="btl-label"><?php echo JText::_( 'MOD_BT_LOGIN_USERNAME' ); ?></div>
<div class="btl-input">
<input id="btl-input-username1" type="text" name="jform[username]" />
</div>
</div>
<div class="clear"></div>

 

to

 

 

<input id="btl-input-username1" type="hidden" name="jform[username]" />

 

And change

 

 

if(BTLJ("#btl-input-username1").val()==""){
        BTLJ("#btl-registration-error").html(Joomla.JText._('REQUIRED_USERNAME')).show();
        BTLJ("#btl-input-username1").focus();
        return false;
    }

 

to

 

 

BTLJ("#btl-input-username1").val(BTLJ("#btl-input-email1").val()); 

 

 

I make the changes and I do not take the value of the imput-email1, help me.

These lines I have to eliminate complete?

if(BTLJ("#btl-input-username1").val()==""){
        BTLJ("#btl-registration-error").html(Joomla.JText._('REQUIRED_USERNAME')).show();
        BTLJ("#btl-input-username1").focus();
        return false;
    }


 

Share this post


Link to post
Share on other sites

Hi is't possible to add needed fields in user registration?

I already created to Joomla User Registration all needed fields for Users but is't possible to add it also on BT User Registration? Thanks

I hope for help

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now