1
bkohl
How to add extra fields in the profile (WITHOUT Smartprofiles)
  • 2008/4/15 19:09

  • bkohl

  • Just popping in

  • Posts: 4

  • Since: 2008/3/16


How can I add extra fields in the user profiles (without using smartprofiles)?

Second question: if I use smartprofiles - how can I combine smartprofiles fields with the core user registration form?

2
jimmyx
Re: How to add extra fields in the profile (WITHOUT Smartprofiles)
  • 2008/4/16 2:54

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


1. one of the easiest method is you can change the language definition of unused fields such as icq, aim etc
-------------
see an example
here on how to make this extra field appear in registration page...


** on XOOPS future release (3.0) from what i understand the profile module will be improved and addition of new fields will be easy

2. if i'm not mistaken smartprofile has it own register form page that the user will use to register themselves and you can customize it...you'll need to use htaccess file to redirect the default register.php to smartprofile/register.php

3
trabis
Re: How to add extra fields in the profile (WITHOUT Smartprofiles)
  • 2008/4/16 12:39

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Smartprofile integrates the core fields if youset it up in the admin side.

Without using modules to extend user profile you will have to Hack XOOPS core.
For adding more fields hacking the core you must:
Add a field in the "users" table.
Edit kernel/user.php so the extra field becomes available in $xoopsUser object (ex: $xoopsUser->getVar('myextrafield') )
Then you must edit forms and templates to get/show information.

It is not that hard but anyway, is better to keep away from hacking, it will get you extra work if you need to update the core.

Login

Who's Online

195 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 195


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits