1
glennnphp
SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 20:30

  • glennnphp

  • Just popping in

  • Posts: 54

  • Since: 2006/8/30


i asked once before if someone can tell me how to edit the Registration Form. there doesn't seem to be a block for it or a way to control whether the fields are Required or not. i can't imagine that this has never come up or that there's no one in here who knows how to control this...

thanks for anyone's help,
g

2
Will_H
Re: SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 20:32

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


What XOOPS version?

3
glennnphp
Re: SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 20:35

  • glennnphp

  • Just popping in

  • Posts: 54

  • Since: 2006/8/30


current version, thanks >>> 2.15

4
Will_H
Re: SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 20:40

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10



5
glennnphp
Re: SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 20:48

  • glennnphp

  • Just popping in

  • Posts: 54

  • Since: 2006/8/30


A) Mr T, i REALLY appreciate your response and help

B) you mean to tell me that they've NOT designed a means of editing these fields within XOOPS, that it requires a 3rd party and a tutorial? as FAT as this app is, i've found some pretty ridiculous designs in here as well.

6
glennnphp
Re: SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 21:28

  • glennnphp

  • Just popping in

  • Posts: 54

  • Since: 2006/8/30


i'm afraid that won't do it (i installed the mod and saw no way to make the fields Required).

is there anybody who can tell me how to edit the REG form for the default XOOPS installation so that the other fields are REQUIRED for the form to be submitted?

7
m0nty
Re: SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 21:54

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


open include/registerform.php

and add 'true' to the end of the fields you want required

ie..

to make the url field required

change (line 73):

$reg_form->addElement(new XoopsFormText(_US_WEBSITE"url"25255$myts->htmlSpecialChars($url)));


to

$reg_form->addElement(new XoopsFormText(_US_WEBSITE"url"25255$myts->htmlSpecialChars($url)), true);


and so on for each field.

for the edit user page do the same in file edituser.php

$edituser->setVar('url'formatURL($_POST['url']));


change to

$edituser->setVar('url'formatURL($_POST['url']), true);

8
glennnphp
Re: SECOND request - surely this is not an uncommon occurance
  • 2006/9/13 22:09

  • glennnphp

  • Just popping in

  • Posts: 54

  • Since: 2006/8/30


you, sir, are The Man.

thanks

9
RachelVirago
Re: SECOND request - surely this is not an uncommon occurance

Thanks! (again) m0nty.

Surely it's time this was added to the FAQ? has come up in one form or another and for different versions countless times.

Xoops! it's in there! *blush*
Being transgender is NOT a choice.

Login

Who's Online

260 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 260


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