Hello, I wish to display an additional field on the sign page, but I don't want to use the {$additional_fields_html} tag. In v2.3.9 of aMember Pro this worked fine: {html_options options=$config.myfield_options selected=$smarty.request.myfield} In 3.1.6 it no longer works. Is there a work-around for this?
After comparing v2.3.9 to v3.1.6, it would appear that the ability to do this is gone now. The old version would store the field data in $config directly. The new version of amember appears store the data in config but buried in arrays so I have to do this: {html_options options=$config.member_fields[2].additional_fields.options selected=$user.data.myfield} Hopefully I am missing something here and can do it the old way. Any one have any suggestions?
Arg, the older version had the arrays hacked into the common.inc.php file Now hacked into the new version and everything works. Perhaps a good idea to add this as a feature into amember, so that custom additional fields are accessible in the templates through smarty?
For those who need a quick work-around: #1 - create your custom fields in aMEMBER > CP > ADD FIELDS #2 - save the new fields #3 - open your Web browser #4 - go to your site's signup page "../amember/signup.php" #5 - choose VIEW SOURCE from your browser's toolbar #6 - look for the custom fields now rendered as HTML in the source code #7 - copy the custom field HTML source code into your clipboard #8 - open signup.html template (aMEMBER/TEMPLATES) in your HTML editor #9 - find the line {$additional_fields_html} in the template code #10 - paste the custom field HTML-code (from #7 above) into your signup.html template, replacing {$additional_fields_html} #11 - post and test Now you can format the code and post it anywhere on the signup page.