1
greyhair
Help on modifing the register page
  • 2004/10/25 21:12

  • greyhair

  • Just popping in

  • Posts: 12

  • Since: 2004/4/7 1


Hi. I haven't search long (as i'm at work...) and would like some direction on how to modify the register page.

I would like to try to improve what information is required in which fields like this for a text field: (email address field for this example)

value="Enter Email Address" ONFOCUS="if(this.value=='Enter Email Address')this.value='';" ONBLUR="if(this.value=='')this.value='Enter Email Address';">

Is there a XOOPS way to input this extra stuff? MOre over, how could i send this type of information to "$this->getExtra()" in formtext.php?

I dont see a register template.

Thanks in advance for any help!

2
ackbarr
Re:Help on modifing the register page

the register page does not use a template, but utilizes the xoopsform classes. Its definition is stored in /include/registerform.php. To add your javascript modify its code like so:

$email_text = new XoopsFormText("""email"2560$email);

Change to:
$email_text = new XoopsFormText("""email"2560$email'onfocus="if(this.value=='Enter Email Address')this.value='';" onblur="if(this.value=='')this.value='Enter Email Address';"');

3
greyhair
Re:Help on modifing the register page
  • 2004/10/26 3:46

  • greyhair

  • Just popping in

  • Posts: 12

  • Since: 2004/4/7 1


looks like getExtra is not defined in formtext.php (i have v 1.7) once i did that it worked. Thanks.

4
greyhair
Re:Help on modifing the register page
  • 2004/10/26 3:59

  • greyhair

  • Just popping in

  • Posts: 12

  • Since: 2004/4/7 1


oops:

From Mithrandir in a earlier post


Quote:
... You give 6 parameters to a constructor taking 5.

$formmpegid = new XoopsFormText(_AM_DEBASER_ID'mpegid'44$xfid);
$formmpegid->setExtra('extra code goes here');


would be the way to set the _extra property.

Login

Who's Online

191 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

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

Latest GitHub Commits