Instructions (draft)
Changing the Joomla Front End login module
Overview
Will need to modify 4 files and add tables to the database using PHPMyAdmin
- /libraries/joomla/database/table/users.php
- /components/com_user/views/register/tmpl/default.php
- /components/com_user/views/user/tmpl/form.php
- /administrator/components/com_users/views/user/tmpl/form.php
- PHPMyAdmin -- database-prefix_users -- param
PHPMyadmin to Add Tables
-- jos_users
add two fields using the params field
Add Fields: Field: field-name, type: Varchar, Len: 20
save
File 1: libraries/joomla/database/table/users.php
After adding the fields then modify users.php
- Look for var $params = null;
Change var $params = null; --- to
- var $newfieldname = null;
For each new field
File 2: components/com_user/views/register/tmpl/default.php
block off:
<tr>
<td height="40">
<label id="emailmsg" for="email">
<?php echo JText::_('Email'); ?>:
</label>
</td>
<td>
<input type="text" id="" name="email" size="" value="<?php echo $this->user->get('email'); ?>"
class="inputbox required validate-email" maxlength="100">
</td>
</tr>
- Copy and paste for each new field needed
- Modify the word email to the name of the added field
- Remove validate-email
File 3: components/com_user/views/user/tmpl/form.php
=====================================================
Copy and paste the block of code
Modify this same block of text as in file 2
Remove: validate-email change: email to field name
Last File
File 4: administrator/components/com_users/views/user/tmpl/form.php
Look for emailblock
Modify this same block of text as in file 2
Copy and paste for each field and change email to fieldname and remove the validate-email. and then save file.


