21
m0nty
Re: Adding fields in registration form
  • 2006/3/10 3:27

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


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

22
PTlooker
Re: Adding fields in registration form
  • 2006/3/10 15:04

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


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

23
txsbmw
Re: Adding fields in registration form
  • 2006/3/25 0:11

  • txsbmw

  • Just popping in

  • Posts: 12

  • Since: 2006/2/24


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?

24
m0nty
Re: Adding fields in registration form
  • 2006/3/25 4:45

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24



25
txsbmw
Re: Adding fields in registration form
  • 2006/3/25 5:53

  • txsbmw

  • Just popping in

  • Posts: 12

  • Since: 2006/2/24


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.

26
spankee
Re: Adding fields in registration form
  • 2006/3/25 8:57

  • spankee

  • Just popping in

  • Posts: 89

  • Since: 2005/11/13


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?

27
m0nty
Re: Adding fields in registration form
  • 2006/3/25 10:07

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


the 255 is the maximum number of characters.

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

28
spankee
Re: Adding fields in registration form
  • 2006/3/25 18:56

  • spankee

  • Just popping in

  • Posts: 89

  • Since: 2005/11/13


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

29
spankee
Re: Adding fields in registration form
  • 2006/3/25 21:40

  • spankee

  • Just popping in

  • Posts: 89

  • Since: 2005/11/13


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!

30
txsbmw
Re: Adding fields in registration form
  • 2006/3/26 2:50

  • txsbmw

  • Just popping in

  • Posts: 12

  • Since: 2006/2/24


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.

Login

Who's Online

319 user(s) are online (179 user(s) are browsing Support Forums)


Members: 0


Guests: 319


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