diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-01-10 12:17:29 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-01-10 12:17:29 +0000 |
commit | ca291c50f9e5683e33fa8bd9e596b8ab31360742 (patch) | |
tree | 4e598b8aa8b7eeb34a40333137126f98c951d747 | |
parent | 425509cb886165e895f3aaa3162c154d8ca6b0bc (diff) | |
download | forums-ca291c50f9e5683e33fa8bd9e596b8ab31360742.tar forums-ca291c50f9e5683e33fa8bd9e596b8ab31360742.tar.gz forums-ca291c50f9e5683e33fa8bd9e596b8ab31360742.tar.bz2 forums-ca291c50f9e5683e33fa8bd9e596b8ab31360742.tar.xz forums-ca291c50f9e5683e33fa8bd9e596b8ab31360742.zip |
fully templateable custom profile fields...
git-svn-id: file:///svn/phpbb/trunk@4737 89ea8834-ac86-4346-8a33-228a782c2dd0
3 files changed, 42 insertions, 0 deletions
diff --git a/phpBB/styles/subSilver/template/custom_profile_fields.html b/phpBB/styles/subSilver/template/custom_profile_fields.html new file mode 100644 index 0000000000..eb791a0cc3 --- /dev/null +++ b/phpBB/styles/subSilver/template/custom_profile_fields.html @@ -0,0 +1,29 @@ +<!-- BEGIN dropdown --> + <select name="{dropdown.FIELD_NAME}"> + <!-- BEGIN options --><option value="{dropdown.options.OPTION_ID}"{dropdown.options.SELECTED}>{dropdown.options.VALUE}</option><!-- END options --> + </select> +<!-- END dropdown --> + +<!-- BEGIN text --> + <textarea name="{text.FIELD_NAME}" rows="{text.FIELD_ROWS}" cols="{text.FIELD_COLS}">{text.FIELD_VALUE}</textarea> +<!-- END text --> + +<!-- BEGIN string --> + <input type="text" class="post" name="{string.FIELD_NAME}" size="{string.FIELD_LENGTH}" maxlength="{string.FIELD_MAXLEN}" value="{string.FIELD_VALUE}" /> +<!-- END string --> + +<!-- BEGIN bool --> + <!-- IF bool.FIELD_LENGTH eq 1 --> + <!-- BEGIN options --><input type="radio" name="{bool.FIELD_NAME}" value="{bool.options.OPTION_ID}"{bool.options.CHECKED} /><span class="genmed">{bool.options.VALUE}</span> <!-- END options --> + <!-- ELSE --> + <input type="checkbox" name="{bool.FIELD_NAME}"<!-- IF bool.FIELD_VALUE --> checked="checked"<!-- ENDIF --> /> + <!-- ENDIF --> +<!-- END bool --> + +<!-- BEGIN int --> + <input type="text" class="post" name="{int.FIELD_NAME}" size="{int.FIELD_LENGTH}" value="{int.FIELD_VALUE}" /> +<!-- END int --> + +<!-- BEGIN date --> + <span class="genmed">{L_DAY}:</span> <select name="{date.FIELD_NAME}_day">{date.S_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="{date.FIELD_NAME}_month">{date.S_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="{date.FIELD_NAME}_year">{date.S_YEAR_OPTIONS}</select> +<!-- END date --> diff --git a/phpBB/styles/subSilver/template/ucp_profile_profile_info.html b/phpBB/styles/subSilver/template/ucp_profile_profile_info.html index 51c20b5868..f24943dc36 100644 --- a/phpBB/styles/subSilver/template/ucp_profile_profile_info.html +++ b/phpBB/styles/subSilver/template/ucp_profile_profile_info.html @@ -54,6 +54,12 @@ <td class="row1" width="35%"><b class="genmed">{L_BIRTHDAY}: </b><br /><span class="gensmall">{L_BIRTHDAY_EXPLAIN}</span></td> <td class="row2"><span class="genmed">{L_DAY}:</span> <select name="bday_day">{S_BIRTHDAY_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="bday_month">{S_BIRTHDAY_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="bday_year">{S_BIRTHDAY_YEAR_OPTIONS}</select></td> </tr> +<!-- BEGIN profile_fields --> + <tr> + <td class="row1" width="35%"><b class="genmed">{profile_fields.LANG_NAME}: </b><!-- IF profile_fields.LANG_EXPLAIN --><br /><span class="gensmall">{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF --></td> + <td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall" style="color:red">{profile_fields.ERROR}</span><!-- ENDIF --></td> + </tr> +<!-- END profile_fields --> <tr> <td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" type="submit" name="submit" value="{L_SUBMIT}" /> <input class="btnlite" type="reset" value="{L_RESET}" name="reset" /></td> </tr> diff --git a/phpBB/styles/subSilver/template/ucp_register.html b/phpBB/styles/subSilver/template/ucp_register.html index fa9fddd314..4023b81220 100644 --- a/phpBB/styles/subSilver/template/ucp_register.html +++ b/phpBB/styles/subSilver/template/ucp_register.html @@ -54,6 +54,13 @@ <td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td> </tr> + <!-- BEGIN profile_fields --> + <tr> + <td class="row1" width="35%"><b class="genmed">{profile_fields.LANG_NAME}: </b><!-- IF profile_fields.LANG_EXPLAIN --><br /><span class="gensmall">{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF --></td> + <td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall" style="color:red">{profile_fields.ERROR}</span><!-- ENDIF --></td> + </tr> + <!-- END profile_fields --> + <!-- IF S_CONFIRM_CODE --> <tr> <th colspan="2" height="28" valign="middle">{L_CONFIRMATION}</th> |