, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > User Help > General Support Requests > changing name of some fileds at registration

FlexCMS Support Forum


changing name of some fileds at registration
Started December 5, 2007 @ 2:11pm by cbc58
Post Message 
cbc58


Posts: 15
 
changing name of some fileds at registrationDecember 5, 2007 @ 2:11pm
is there a way to change the name of some fields at registration.... and to move them around in the form?

for instance... the current registration for has "address3 and address4" fields which I don't need... but I do need 2 other fields for other info.

without a search feature here on the boards it's hard to know if this question has been asked before...

tks.
 
DCSun
Administrator



Posts: 625
 
December 5, 2007 @ 2:30pm
To address the search feature, that's very high on our development list and we do hope to have one in the near future.

As for the registration form, you have a few options. Yes, the order could be moved around if you absolutely needed that, but it's going to require some custom programming on your part. The registration form is generated from the code in the inc-core-register.php file. It becomes a bit complicated, though, because they aren't just outputted to the page -- they're stored in an array and then processed into a page to allow for an altered output after being submitted if the information isn't entered as required. As for the actual labels for the fields, those are stored in the language file (languages/inc-core-lang-english.php).

You say you require two more fields, does that mean you've exhausted the three custom ones available and need two more, or have you not used the custom ones yet? If the latter, there are three custom fields available which you can label and use for any pieces of information you require. See the "Modify Registration Form Fields" page under the Preferences and Settings section of the control panel.


David


FlexCMS v3.2 Has Been Released!
 

Last Edit: December 5, 2007 @ 2:32pm by DCSun
cbc58


Posts: 15
 
December 5, 2007 @ 3:37pm
yes i have exhausted the add-on fields and need others........

can I go in and rename just the title of the field on the registration form for now... or will that screw something up?

Tks.
 
DCSun
Administrator



Posts: 625
 
December 5, 2007 @ 4:21pm
Changing the labels in the language file will have no effect on any of the programming, so that's an easy fix if you want to steal some of the other fields and use them. Keep in mind that they're all different sizes of fields in the database depending on the information they were designed to hold.

You could also add additional custom fields by doing the following:

- Copy the code on lines 138 and 139 of inc-core-register.php and duplicating that the number of times required, increasing the numbers in red by one for each time you duplicate it.
$FieldName[20] = $RegFormOpts[2];
$FieldCode[20] = '<input type="text" name="Custom3" size="35" maxlength="50" style="'.$FormStyle.'">';

- Copy the code on line 54 of inc-core-admin-registration.php, again duplicating once for each field you're adding and updating the numbers in red accordingly
$Custom3Title = $RegFormOpts[2];

- Copy the code on line 110 of inc-core-admin-registration.php, again duplicating once for each field you're adding and updating the numbers in red accordingly
<tr><td><font face="'.$FontFace.'" size="2" color="'.$Colors['Text'].'">'.$MsgText[0][423].' 3<br><input type="text" name="Custom3Title" size="20" value="'.$Custom3Title.'"></td><td><font face="'.$FontFace.'" size="2" color="'.$Colors['Text'].'"><input type="text" name="sample" size="35" maxlength="50"></td><td align="center"><font face="'.$FontFace.'" size="2" color="'.$Colors['Text'].'"><input type="radio" name="status20" value="Required"'.$Checked[20]['r'].'> '.$MsgText[0][417].'<br><input type="radio" name="status20" value="Optional"'.$Checked[20]['o'].'> '.$MsgText[0][418].' <br><input type="radio" name="status20" value="Disabled"'.$Checked[20]['d'].'> '.$MsgText[0][419].'</td></tr>

- And finally, adjust line 42 in inc-core-admin-registration-save.php increasing the 20 by the number you added.

You'll also need to add the Custom# fields to your core-Users table in the database to hold the new information.

Once you've completed all that, edit and save the control panel section for the registration form options, and you should be all set.


David


FlexCMS v3.2 Has Been Released!
 
cbc58


Posts: 15
 
December 5, 2007 @ 4:45pm
thank you........ i'll try that.

 

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.07596 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS