1
jamiescott
Modifying xoops_users
  • 2004/5/26 19:46

  • jamiescott

  • Just popping in

  • Posts: 5

  • Since: 2004/5/26


I have searched through the forums and I know this question has been posted. The replies couldn't help me with hacking into the core codes of the members registration. Can some experts post here the steps and the files involved in adding new fields into the registration form.

I have tried the changes below but it still says "couldn't add to database":
[b]1. registerform.php[/b]
(
line 33)
$pets = isset($HTTP_POST_VARS['pets']) ?$myts->makeTboxData4PreviewInForm($HTTP_POST_VARS['pets']) : "";

(
line 79)
$reg_form->addElement(new XoopsFormText(_US_PETS"PETS"2625$pets), true);



[
b]2. register.php[/b]
(
line 191)
$newuser->setVar('pets'$pets);



[
b]3. kernel/user.php[/b]
(
line 77)
$this->initVar('pets'XOBJ_DTYPE_TXTBOXnullfalse45);
(
line 522)
added [b]'pets'[/bafter  [b]'url'[/b] and added  [b]%s[/bin the sql insert statement

and of course inserted the 'pets' field in the MySQL database.

Thanks in advance.

2
jamiescott
Re: Modifying xoops_users
  • 2004/5/28 7:55

  • jamiescott

  • Just popping in

  • Posts: 5

  • Since: 2004/5/26


I don't know if my question is too complicated? We really hope the core team can help us in this. I think a lot of members would like to know this as well.

3
Herko
Re: Modifying xoops_users
  • 2004/5/28 8:13

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


This is a French description on how to hack the user profile. As for core development team support, this is a hack that we don't support, but seems to work fine. In the next major release, we're adding the ability to add and remove user fields from the profile dynamically.

Herko

4
CiberEspia
Re: Modifying xoops_users

these would be excellent to have these characteristics in xoops, so that I need but fields in the registry.
similar to this:
http://www.centralinos.cl/register.php

5
YourHelp
Re: Modifying xoops_users
  • 2004/9/25 1:42

  • YourHelp

  • Friend of XOOPS

  • Posts: 479

  • Since: 2003/6/9 6


I would have to agree with Mario this would be fantastic a patch or future upgrade to be able to customize these fields.

6
tekHneEk
Re:Modifying xoops_users
  • 2004/10/25 3:29

  • tekHneEk

  • Just popping in

  • Posts: 20

  • Since: 2004/10/20


is there not a english version of that?

7
cookie
Re: Modifying xoops_users
  • 2004/11/22 14:07

  • cookie

  • Just popping in

  • Posts: 24

  • Since: 2004/10/25


Quote:

Herko Coomans wrote:
In the next major release, we're adding the ability to add and remove user fields from the profile dynamically.

Herko


Any idea of when that release might come out and what the release version is going to be. This functionality would be incredibly useful for turning an existing PHP/MySQL application into a XOOPS module.

Regards.

8
webguygary
Re: Modifying xoops_users
  • 2004/11/22 14:21

  • webguygary

  • Just popping in

  • Posts: 25

  • Since: 2004/11/8


Herko, thanks for that french tutorial...now, is there anyone out there who can explain what that tutorial says to an ignorant american such as myself who doesn't speak french?

Login

Who's Online

244 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 244


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