1
noo-b
add gender field in profile without using a module ?
  • 2007/11/15 19:14

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


i don't want to use smartprofile, etxtended profile, formulize etc

i would just like to do this without a module

all i want is just to add a simple drop down/radio button option box : male/female

anyone ? how do i do this? can anybody help me

i'm using 20171
I Love Xoops

2
jegelstaff
Re: add gender field in profile without using a module ?
  • 2007/11/20 18:08

  • jegelstaff

  • Module Developer

  • Posts: 518

  • Since: 2004/7/2 2


Unfortunately, there is no easy way to do this. That's why those modules you mentioned exist. If you really want to, you can hack all the core files related to the profile yourself. But that's what the modules do for you in a more systematic and supported way.

--Julian
Technical Architect - Freeform Solutions
Formulize - custom registration forms, ad hoc forms and reports

3
noo-b
Re: add gender field in profile without using a module ?
  • 2007/11/20 18:32

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


i really like your module jegelstaff ..i'm using it in my other site but for my new site i don't think it is necessary for my site to use a module just to add one feature - gender

------------------------------
FYI
i've successfully add gender to my site i change user_icq
to gender drop down...

look here
https://xoops.org/modules/newbb/viewtopic.php?topic_id=61800&forum=7&post_id=278694#forumpost278694

one problem left is to add the option in my registration form.........can you help me jegelstaff ?
I Love Xoops

4
jegelstaff
Re: add gender field in profile without using a module ?
  • 2007/11/22 15:00

  • jegelstaff

  • Module Developer

  • Posts: 518

  • Since: 2004/7/2 2


If you're just changing one of the existing profile fields, then you can do that in the registration form just the same as you did in the regular profile form. You just have to make the change to a different file, check register.php, and I think there may be a separate include file involved as well that contains the actual form, you should be able to find references to it in the register.php file to get you started. You should just be able to alter the text and the form element itself to include your new options.

Good luck!

--Julian
Technical Architect - Freeform Solutions
Formulize - custom registration forms, ad hoc forms and reports

5
noo-b
Re: add gender field in profile without using a module ?
  • 2007/11/22 16:02

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


post edited
......
99% solved: option is now displayed in register.php but after submit..data not save to database

https://xoops.org/modules/newbb/viewtopic.php?topic_id=61800&forum=7&post_id=278694#forumpost278694

help
I Love Xoops

6
jegelstaff
Re: add gender field in profile without using a module ?
  • 2007/11/22 18:22

  • jegelstaff

  • Module Developer

  • Posts: 518

  • Since: 2004/7/2 2


Maybe you changed every single reference to icq into gender? But you have to be careful because you probably need to keep the database queries that refer to the icq field the same, so they use that name, since that will be the name of the field in the database, even though you're putting a different kind of data in it.

Not sure if that's your answer. That's about all I can suggest at this point.

--Julian
Technical Architect - Freeform Solutions
Formulize - custom registration forms, ad hoc forms and reports

7
vaughan
Re: add gender field in profile without using a module ?
  • 2007/11/22 18:43

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


turn on MySQL debug in preferences and see if there's any errors in the query when submitting & viewing.

Login

Who's Online

308 user(s) are online (229 user(s) are browsing Support Forums)


Members: 0


Guests: 308


more...

Donat-O-Meter

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

Latest GitHub Commits