Hi there,
Now first - don't laugh, but since my knowledge of PHP is well not yours and not even intermediate, I did my best...
I have modified the login_register.php file through the Views interface...
<?php
/**
* @package HikaShop for Joomla! 1.5
* @version 1.2.0
* @author hikashop.com
* @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved.
* @license http://www.hikashop.com/commercial_license.php
*/
defined('_JEXEC') or die('Restricted access');
?>
<table cellpadding="0" cellspacing="0" border="0" class="hikashop_contentpane">
<?php if(!$this->simplified_registration){ ?>
<tr>
<td class="key">
<label id="namemsg" for="name">
<?php echo JText::_( 'NAME' ); ?>:
</label>
</td>
<td>
<input type="text" name="data[register][name]" id="register_name" value="<?php echo $this->escape($this->mainUser->get( 'name' ));?>" class="inputbox required" maxlength="50" /> *
</td>
</tr>
<tr>
<td class="key">
<label id="usernamemsg" for="username">
<?php echo JText::_( 'USERNAME' ); ?>:
</label>
</td>
<td>
<input type="text" id="register_username" name="data[register][username]" value="<?php echo $this->escape($this->mainUser->get( 'username' ));?>" class="inputbox required validate-username" maxlength="25" /> *
</td>
</tr>
<?php }?>
<tr>
<td class="key">
<label id="emailmsg" for="email">
<?php echo JText::_( 'EMAIL' ); ?>:
</label>
</td>
<td>
<input type="text" id="register_email" name="data[register][email]" value="<?php echo $this->escape($this->mainUser->get( 'email' ));?>" class="inputbox required validate-email" maxlength="100" /> *
</td>
</tr>
<?php if(!$this->simplified_registration){ ?>
<tr>
<td class="key">
<label id="pwmsg" for="password">
<?php echo JText::_( 'PASSWORD' ); ?>:
</label>
</td>
<td>
<input class="inputbox required validate-password" type="password" id="register_password" name="data[register][password]" value="" /> *
</td>
</tr>
<tr>
<td class="key">
<label id="pw2msg" for="password2">
<?php echo JText::_( 'VERIFY PASSWORD' ); ?>:
</label>
</td>
<td>
<input class="inputbox required validate-passverify" type="password" id="register_password2" name="data[register][password2]" value="" /> *
</td>
</tr>
<?php }?>
<?php
$this->setLayout('custom_fields');
$this->type = 'user';
echo $this->loadTemplate();
?>
<tr>
<td colspan="2" height="40">
<?php echo JText::_( 'ADDRESS_INFORMATION' ); ?>
</td>
</tr>
<?php
$this->type = 'address';
echo $this->loadTemplate();
?>
<tr>
<td class="key">
<label id="address_title" for="address_title">
<?php echo JText::_( 'TITLE' ); ?>
</label>
</td>
<td>
<select id="address_title" name="data[address][address_title]" size="1">
<option value="Mr" id="address_title_Mr">
<option value="Mrs" id="address_title_Mrs">
<option value="Miss" id="address_title_Miss">
<option value="Ms" id="address_title_Ms">
<option value="Dr" id="address_title_Dr">
</select>
*
</td>
</tr>
<td class="key">
<label id="firstname" for="firstname">
<?php echo JText::_( 'FIRSTNAME' ); ?>
</label>
</td>
<td>
<input class="inputbox" id="address_firstname" type="text" name="data[address][address_firstname]" value=""/>
*
</td>
<td class="key">
<label id="lastname" for="lastname">
<?php echo JText::_( 'LASTNAME' ); ?>
</label>
</td>
<td>
<input class="inputbox" id="address_lastname" type="text" name="data[address][address_lastname]" value=""/>
*
</td>
<tr>
<td class="key">
<label id="address_street" for="address_street">
<?php echo JText::_( 'Street' ); ?>
</label>
</td>
<td>
<input class="inputbox" id="address_street" type="text" name="data[address][address_street]" value=""/>
*
</td>
<td class="key">
<label id="address_city" for="address_city">
<?php echo JText::_( 'City' ); ?>
</label>
</td>
<td>
<input class="inputbox" id="address_city" type="text" name="data[address][address_city]" value=""/>
*
</td>
<td class="key">
<label id="address_state" for="address_state">
<?php echo JText::_( 'State' ); ?>
</label>
</td>
<td>
<span id="state_dropdown">
<select id="address_state" name="data[address][address_state]" size="1">
</span>
<input type="hidden" id="state_namekey" name="state_namekey" value="address_state"/>
<input type="hidden" id="state_default_value" name="state_default_value" value="state_California_4265"/>
</td>
<td class="key">
<label id="address_post_code" for="address_post_code">
<?php echo JText::_( 'Zipcode' ); ?>
</label>
</td>
<td>
<input class="inputbox" id="address_post_code" type="text" name="data[address][address_post_code]" value=""/>
</td>
<tr>
<td class="key">
<label id="address_telephone" for="address_telephone">
<?php echo JText::_( 'Telephone' ); ?>
</label>
</td>
<td>
<input class="inputbox" id="address_telephone" type="text" name="data[address][address_telephone]" value=""/>
*
</td>
</tr>
</tr>
<tr>
<td colspan="2" height="40">
<?php echo JText::_( 'REGISTER_REQUIRED' ); ?>
</td>
</tr>
</table>
<input type="hidden" name="data[register][id]" value="0" />
<input type="hidden" name="data[register][gid]" value="0" />
<input class="button validate" type="submit" onclick="if(hikashopCheckChangeForm('register','hikashop_checkout_form') && hikashopCheckChangeForm('user','hikashop_checkout_form') && hikashopCheckChangeForm('address','hikashop_checkout_form')) return true; return false;" name="register" value="<?php echo JText::_('REGISTER'); ?>"/>
the php code doesn't seem to show up so I've attached my login_register.php
OBVIOUSLY, the following fields don't work correctly:
Title data field and State data field.
[and how do I NOT show the Country field without breaking the country/state combination dependency]
I know I'm not too far, but it's beyond my knowledge
The reason that I am doing this is to have a page with a LOT shorter height for the registration section...
THANKS
Sorry that I'm such an idiot with PHP.
Cheers,
Emmanuel Lemor.