Changeset 32898
- Timestamp:
- Jan 12, 2023, 9:40:53 AM (16 months ago)
- Location:
- extensions/user_custom_fields
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/user_custom_fields/admin.tpl
r32736 r32898 198 198 <fieldset> 199 199 <legend><span id="leg_add">{'Create new custom fields'|@translate}</span><span id="leg_edit">{'Edit custom fields'|@translate}</span></legend> 200 <input id="hideid" type="hidden" name="invisibleID" value=" {$addinfo_edit2.AIPID}">200 <input id="hideid" type="hidden" name="invisibleID" value=""> 201 201 <p class="input"> 202 202 <label for="inserwording">{'Wording'|@translate}</label><br /> 203 <textarea {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} style="margin-left:50px" rows="5" cols="50" class="description" name="inserwording" id="aip_add"> {$addinfo_edit2.AIPDESC}</textarea>203 <textarea {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} style="margin-left:50px" rows="5" cols="50" class="description" name="inserwording" id="aip_add"></textarea> 204 204 {if $useED==1} 205 205 <a href="{$ROOT_URL}admin/popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="{'Use Extended Description tags...'|translate}" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/help.png" class="button" alt="{'Use Extended Description tags...'|translate}'"></a> … … 208 208 <p class="input" style="width: 700px;"> 209 209 <label for="inseractive">{'Hide'|@translate}</label> 210 <input id="aip_hide" type="checkbox" name="inseractive" {if {$addinfo_edit2.AIPACTIF}==1}checked{/if}value="1">210 <input id="aip_hide" type="checkbox" name="inseractive" value="1"> 211 211 </p> 212 212 <p class="input" style="width: 700px;"> 213 213 <label for="adminonly">{'Admin only'|@translate}</label> 214 <input id="aip_adminonly" type="checkbox" name="adminonly" {if {$addinfo_edit2.UCFADMINONLY}==1}checked{/if}value="1">214 <input id="aip_adminonly" type="checkbox" name="adminonly" value="1"> 215 215 </p> 216 216 <p class="input" style="width: 700px;"> 217 217 <label for="obligatory">{'Obligatory'|@translate}</label> 218 <input id="aip_obligatory" type="checkbox" name="obligatory" {if {$addinfo_edit2.UCFOBLIGATORY}==1}checked{/if}value="1">218 <input id="aip_obligatory" type="checkbox" name="obligatory" value="1"> 219 219 </p> 220 220 <p class="actionButtons"> -
extensions/user_custom_fields/initregister.php
r32698 r32898 37 37 add_event_handler('loc_end_page_header', 'ucfinit'); 38 38 function ucfinit(){ 39 global $template; 40 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 41 if($PAED['state'] == 'active'){ 39 global $template, $pwg_loaded_plugins; 40 if (isset($pwg_loaded_plugins['ExtendedDescription'])){ 42 41 add_event_handler('AP_render_content', 'get_user_language_desc'); 43 42 } … … 56 55 add_event_handler('register_user_check', 'ucfT'); 57 56 function ucfT($errors){ 58 global $prefixeTable, $conf;57 global $prefixeTable, $conf; 59 58 if (count($errors) == 0){ 60 59 $next = pwg_db_fetch_assoc(pwg_query("SHOW TABLE STATUS LIKE '".USERS_TABLE."';")); 61 60 $next_id = $next['Auto_increment']; 61 62 62 63 63 foreach ($_POST['data'] AS $id_ucf => $data) {
Note: See TracChangeset
for help on using the changeset viewer.