let's say you need to add a field "Age" in the user profile.
First:
in phpMyAdmin - add the "age" field to the table #__bid_users
for instance
alter table jos_bid_users add column age varchar(50)
now you have to edit the User Class in the file
bids.class.php go around line 615 and you will find:
class mosBidUsers extends mosDBTable {
var $userid = null;
var $name = null;
var $surname = null;
var $address = null;
var $city = null;
var $country = null;
var $phone = null;
var $verified = null;
var $isBidder = null;
var $isSeller = null;
var $powerseller = null;
var $modified = null;
var $paypalemail = null;
function mosBidUsers( &$db ) {
add the $age field like this:
class mosBidUsers extends mosDBTable {
var $userid = null;
var $name = null;
var $surname = null;
var $address = null;
var $city = null;
var $country = null;
var $phone = null;
var $verified = null;
var $isBidder = null;
var $isSeller = null;
var $powerseller = null;
var $modified = null;
var $paypalemail = null;
var $age = null; //ADD THIS LINE HERE
function mosBidUsers( &$db ) {
Third step - edit the template:
t_userdetails.tpl
add wherever you need the field like this {$user->age}
and
t_myuserdetails.tpl
you have to add somewhere the input for the age. it must be within the form tag and it would look like this
<input class="inputbox" type="text" name="age" value="{$user->age}" size="40" />