Page 1 of 1

Self Registration Checkbox Fatal Error

Posted: Sat Jun 02, 2007 10:04 am
by clubspy
im trying to add a Terms and Conditions checkbox in the registration form

in the frontend user management ive added
user properties
tac  TAC:  Checkbox  1


groups
tac  TAC:  Checkbox  13 Required


then when i load the registration page it comes up with this


Fatal error: Call to undefined function: mycreateinputcheckbox() in /home/clubspy/public_html/modules/SelfRegistration/action.default.php on line 207


Also how would i add a link to the prompt so i can have

I agree to the 'Terms and Conditions' : checkbox

and have the link on 'Terms and Conditions'

:)

Re: Self Registration Checkbox Fatal Error

Posted: Wed Sep 19, 2007 9:30 pm
by mikemcvey
Hi,

I just had the same error..

not sure if this is correct but hacked it like so..

In Selfreg module ... action.default.php
Change the case statement around line 206..

Code: Select all

case 1: // checkbox
	 // $onerow->control = $module->myCreateInputCheckbox( $id, 'input_'.$reln['name'], 1, $val );
// hack by mike -- add this line to link to correct function!
	  $onerow->control = SelfregUtils::myCreateInputCheckbox( $id, 'input_'.$reln['name'], 1, $val );
	  break;
Hope that helps..

Mike