xoops forums

m0nty

XOOPS is my life!
Posted on: 2006/3/10 3:27
m0nty
m0nty (Show more)
XOOPS is my life!
Posts: 3337
Since: 2003/10/24
#21

Re: Adding fields in registration form

:bangs head:

i love how people read posts, but don't actually read whats said..

to quote myself:
Quote:

if you require it, then let me know and i'll email it to you if u give me your mail address..

my site as exceeded bandwidth for this month so unfortunately you won't be able to download it directly.


yup i know abt the bandwidth message..

PTlooker

Just can't stay away
Posted on: 2006/3/10 15:04
PTlooker
PTlooker (Show more)
Just can't stay away
Posts: 447
Since: 2003/6/15
#22

Re: Adding fields in registration form

please send it to bmcouto@hotmail.com .. to version 2.0.13.2
Thanks!

txsbmw

Just popping in
Posted on: 2006/3/25 0:11
txsbmw
txsbmw (Show more)
Just popping in
Posts: 12
Since: 2006/2/24
#23

Re: Adding fields in registration form

Ok I am using XOOPS 2.2.4, what files and what lines do I edit to include the real name field in the registration form. I tried following the directions at the beginning of the thread, but I am assuming those directions are for an earlier version of XOOPS?

Also I did add fields to the extended profile module and even though they are showing that they have been added, they are not viewable in the registration form or on the profiles (yes I made sure that of the permissions for the field). Is there a limit on how many fields you can add?

m0nty

XOOPS is my life!
Posted on: 2006/3/25 4:45
m0nty
m0nty (Show more)
XOOPS is my life!
Posts: 3337
Since: 2003/10/24
#24

Re: Adding fields in registration form

https://xoops.org/modules/newbb/viewto ... id=194373#forumpost194373

txsbmw

Just popping in
Posted on: 2006/3/25 5:53
txsbmw
txsbmw (Show more)
Just popping in
Posts: 12
Since: 2006/2/24
#25

Re: Adding fields in registration form

Thank you! Worked great. Also the profile fields that I added earlier today finally showed up in the profiles and registration form just a little bit ago. Not sure why they took so long to show up, just glad they did.

spankee

Just popping in
Posted on: 2006/3/25 8:57
spankee
spankee (Show more)
Just popping in
Posts: 89
Since: 2005/11/13
#26

Re: Adding fields in registration form

Thanks for the hack it works beautifully.

I am now tweaking it for my needs but I am running into a problem. On the register page I added an entry. In registerform.php I added this line
$reg_form->addElement(new XoopsFormText(_US_whyreg"user_whyreg"60255$myts->htmlSpecialChars($user_whyreg)), true);

I need this box to be taller, have multiple lines, how can I achieve this?
Also I know 60 controls the length of the box but what does 255 do?

m0nty

XOOPS is my life!
Posted on: 2006/3/25 10:07
m0nty
m0nty (Show more)
XOOPS is my life!
Posts: 3337
Since: 2003/10/24
#27

Re: Adding fields in registration form

the 255 is the maximum number of characters.

xoopsformtext is for single line entries.. if you want multiple lines then use XoopsFormTextArea.

spankee

Just popping in
Posted on: 2006/3/25 18:56
spankee
spankee (Show more)
Just popping in
Posts: 89
Since: 2005/11/13
#28

Re: Adding fields in registration form

That worked but the way the numbers work has changed. 60, 255, makes a very long form and puts 60 inside of it. Any suggestions?
Simply taking out the numbers works but I would like a limit on the amount of characters.
Thanks

spankee

Just popping in
Posted on: 2006/3/25 21:40
spankee
spankee (Show more)
Just popping in
Posts: 89
Since: 2005/11/13
#29

Re: Adding fields in registration form

Ok,something like this will work.

$reg_form->addElement(new XoopsFormTextArea(_US_whyreg"user_whyreg""856"1060$myts->htmlSpecialChars($user_whyreg)), true);

"856" is the value, it shows up in the form and is editable.
10, is the rows.
and 60, is the columns.

Hope it helps someone else out!

txsbmw

Just popping in
Posted on: 2006/3/26 2:50
txsbmw
txsbmw (Show more)
Just popping in
Posts: 12
Since: 2006/2/24
#30

Re: Adding fields in registration form

Hey m0nty can you send me the photo profile hack for 2.2.4 I had sent you a PM with my addy, don't know if you got it or not. I had downloaded the 2.2.3 a while back and it all installed and I could add a photo but it would never show in the profile, glad to see that you realeased one for 2.2.4.