ALTER TABLE `jos_users` ADD `city` VARCHAR( 250 ) NOT NULL ;
<tr>
<td height="40">
<label id="citymsg" for="city">
<?php echo JText::_( 'City' ); ?>:
</label>
</td>
<td>
<input type="text" id="city" name="city" size="40"
value="<?php echo $this->user->get( 'city' );?>" class="inputbox required validate-city" maxlength="25" /> *
</td>
</tr>
<tr>
<td class="key">
<label for="city">
<?php echo JText::_( 'City' ); ?>
</label>
</td>
<td>
<input type="text" name="city" id="city" class="inputbox" size="40"
value="<?php echo $this->user->get('city'); ?>" autocomplete="off" />
</td>
</tr>
var $username = null;
var $city = null;
if (trim( $this->city ) == ) {
$this->setError( JText::_( 'Please enter a city.') );
return false;
}
$user =& JFactory::getUser();
echo $user->city;
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.