Self Registration Checkbox Fatal Error

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
clubspy

Self Registration Checkbox Fatal Error

Post 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'

:)
Last edited by clubspy on Sat Jun 02, 2007 10:06 am, edited 1 time in total.
mikemcvey
Forum Members
Forum Members
Posts: 61
Joined: Tue May 02, 2006 4:08 am

Re: Self Registration Checkbox Fatal Error

Post 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
Locked

Return to “CMSMS Core”