• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > eCommerce Factory Suite for Joomla CMS. > Auction Factory > Adding fields to User Profile (if not using CB)
Pages: [1]
« previous next »
  Print  
Author Topic: Adding fields to User Profile (if not using CB)  (Read 6701 times)
Andy - The Factory
Administrator
Hero Member
*****
Posts: 1639



View Profile
Adding fields to User Profile (if not using CB)
« on: May 17, 2009, 10:16:53 pm »

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

Quote
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:
Quote
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:

Quote
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

Quote
   <input class="inputbox" type="text" name="age" value="{$user->age}" size="40" />
 
Logged
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script