I know you can edit custom fields in the UCP -> Profile -> Edit profile section but I want to create a LOT of custom fields for my users to customize and having a huge list there is just impractical.
For example I built a menu system that is displayed on the index page of my site and I would like to give users the option of hiding certain menus if they want to.
I know I could create a duplicate edit profile file and just take out everything but the custom fields part of the template file however that is only a partial solution as I want to create multiple modules for various different types of fields and display thing in an organized fashion rather than on one page.
Here is some code for the module template files based on my idea...of course this code doesn't actually work.
Code: Select all
<!-- INCLUDE ucp_header.html -->
<form id="ucp" method="post" action="{S_UCP_ACTION}"{S_FORM_ENCTYPE}>
<h2>{L_TITLE}</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<p>{L_CUSTOM_NOTICE}</p>
<fieldset>
<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
<dl>
<dt><label<!-- IF profile_fields_MENU_ONE.FIELD_ID --> for="{profile_fields_MENU_ONE.FIELD_ID}"<!-- ENDIF -->>{profile_fields_MENU_ONE.LANG_NAME}:<!-- IF profile_fields_MENU_ONE.S_REQUIRED --> *<!-- ENDIF --></label>
<!-- IF profile_fields_MENU_ONE.LANG_EXPLAIN --><br /><span>{profile_fields_MENU_ONE.LANG_EXPLAIN}</span><!-- ENDIF --></dt>
<!-- IF profile_fields_MENU_ONE.ERROR --><dd class="error">{profile_fields_MENU_ONE.ERROR}</dd><!-- ENDIF -->
<dd>{profile_fields_MENU_ONE.FIELD}</dd>
</dl>
<dl>
<dt><label<!-- IF profile_fields_MENU_TWO.FIELD_ID --> for="{profile_fields_MENU_TWO.FIELD_ID}"<!-- ENDIF -->>{profile_fields_MENU_TWO.LANG_NAME}:<!-- IF profile_fields_MENU_TWO.S_REQUIRED --> *<!-- ENDIF --></label>
<!-- IF profile_fields_MENU_TWO.LANG_EXPLAIN --><br /><span>{profile_fields_MENU_TWO.LANG_EXPLAIN}</span><!-- ENDIF --></dt>
<!-- IF profile_fields_MENU_TWO.ERROR --><dd class="error">{profile_fields_MENU_TWO.ERROR}</dd><!-- ENDIF -->
<dd>{profile_fields_MENU_TWO.FIELD}</dd>
</dl>
<dl>
<dt><label<!-- IF profile_fields_MENU_THREE.FIELD_ID --> for="{profile_fields_MENU_THREE.FIELD_ID}"<!-- ENDIF -->>{profile_fields_MENU_THREE.LANG_NAME}:<!-- IF profile_fields_MENU_THREE.S_REQUIRED --> *<!-- ENDIF --></label>
<!-- IF profile_fields_MENU_THREE.LANG_EXPLAIN --><br /><span>{profile_fields_MENU_THREE.LANG_EXPLAIN}</span><!-- ENDIF --></dt>
<!-- IF profile_fields_MENU_THREE.ERROR --><dd class="error">{profile_fields_MENU_THREE.ERROR}</dd><!-- ENDIF -->
<dd>{profile_fields_MENU_THREE.FIELD}</dd>
</dl>
</fieldset>
<span class="corners-bottom"><span></span></span></div>
</div>
<fieldset class="submit-buttons">
{S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" name="reset" class="button2" />
<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE ucp_footer.html -->
I'm not really requesting someone build this but mainly let me know if it is possible currently and if not to provide some guidance on how I could build it.