Ignore:
Timestamp:
Sep 7, 2009, 10:52:49 PM (11 years ago)
Author:
Eric
Message:

New function : Timelimit for user's validation. When exeeded, users can't validate their registration.

Add of admin settings panel for the new function.

Todo : Unvalidated users management.

Location:
extensions/NBC_UserAdvManager/trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UserAdvManager_admin.php

    r3826 r3836  
    308308            {           
    309309                  $newconf_nbc_UserAdvManager_ConfirmMail = $_POST['UserAdvManager_ConfirmMail_TimeOut'].';'.$_POST['UserAdvManager_ConfirmMail_Delay'];
    310         //TODO:Adding new option [Auto deletion : True | False]
     310        //NODO:Adding new option [Auto deletion : True | False] - No access to cron functionnalities
    311311        //TODO:Adding new option [Resend_new_validation_key : True | False]
    312312                  $conf['nbc_UserAdvManager_ConfirmMail'] = $newconf_nbc_UserAdvManager_ConfirmMail;
     
    356356                WHERE u.'.$conf['user_fields']['id'].' >= 0
    357357                                AND ug.group_id = "'.$conf_nbc_UserAdvManager[3].'"
    358                         AND TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) <= "'.$conf_nbc_UserAdvManager_ConfirmMail[1].'"
     358                        AND TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) >= "'.$conf_nbc_UserAdvManager_ConfirmMail[1].'"
    359359                        ORDER BY id ASC
    360360          ;';
     
    655655                  'UserAdvManager_CONFIRMMAIL_TIMEOUT_FALSE'    => $conf_nbc_UserAdvManager_ConfirmMail[0]=='false' ?  'checked="checked"' : '' ,
    656656                  'UserAdvManager_CONFIRMMAIL_DELAY'                    => $conf_nbc_UserAdvManager_ConfirmMail[1],
    657                   //TODO:Adding new option [Auto Deletion : True | False]
    658657                  //TODO:Adding new option [Resend_new_validation_key : True | False]
    659658            )
  • extensions/NBC_UserAdvManager/trunk/admin/confirmmail.tpl

    r3826 r3836  
    11<div class="titrePage">
    2   <ul class="categoryActions">
    3  
    4   </ul>
    52  <h2>{'Title_Tab2'|@translate}</h2>
    63</div>
     
    1310        <input type="radio" value="true" {$UserAdvManager_CONFIRMMAIL_TIMEOUT_TRUE} name="UserAdvManager_ConfirmMail_TimeOut"/> {'UserAdvManager_ConfirmMail_TimeOut_true'|@translate}<br>
    1411        <input type="radio" value="false" {$UserAdvManager_CONFIRMMAIL_TIMEOUT_FALSE} name="UserAdvManager_ConfirmMail_TimeOut"/> {'UserAdvManager_ConfirmMail_TimeOut_false'|@translate}<br>
     12      <br>
    1513        </li>
     14                <li><label>{'UserAdvManager_ConfirmMail_Delay_Info'|@translate}</label><input type="text" name="UserAdvManager_ConfirmMail_Delay" value="{$UserAdvManager_CONFIRMMAIL_DELAY}" size="5" style="text-align: center;"/><br>
    1615      <br>
    17                 <li><label>{'UserAdvManager_ConfirmMail_Delay_Info'|@translate}</label><input type="text" name="UserAdvManager_ConfirmMail_Delay" value="{$UserAdvManager_CONFIRMMAIL_DELAY}" size="5" style="text-align: center;"/><br>
    18             </li>
    19       <br>
    20                 <li><label>{'UserAdvManager_ConfirmMail_AutoDel'|@translate}</label><br>
     16                </li>
     17                <!-- This function can't be set due to no access to server's cron functionnalities -->
     18                <!-- <li><label>{'UserAdvManager_ConfirmMail_AutoDel'|@translate}</label><br>
    2119        <input type="radio" value="true" {$UserAdvManager_CONFIRMMAIL_AUTODEL_TRUE} name="UserAdvManager_ConfirmMail_AutoDel"/> {'UserAdvManager_ConfirmMail_AutoDel_true'|@translate}<br>
    2220        <input type="radio" value="false" {$UserAdvManager_CONFIRMMAIL_AUTODEL_FALSE} name="UserAdvManager_ConfirmMail_AutoDel"/> {'UserAdvManager_ConfirmMail_AutoDel_false'|@translate}<br>
    23             </li>
    2421      <br>
     22            </li>-->
    2523                <li><label>{'UserAdvManager_ConfirmMail_ReMail_Txt'|@translate}</label><br>
    2624                <textarea name="UserAdvManager_ConfirmMail_ReMail_Txt" id="UserAdvManager_ConfirmMail_ReMail_Txt" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UserAdvManager_CONFIRMMAIL_REMAIL_TXT}</textarea>
     25      <br>
    2726            </li>
    28       <br>
    2927    </ul>
    3028        <p><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} /></p>
     
    3230    <ul>
    3331                <li><label>{'UserAdvManager_ConfirmMail_User_List'|@translate}</label><br>
    34             </li>
    3532      <br>
    36                 <table class="table2" width="97%">
     33
     34                <table class="table2" width="97%" summary="">
    3735                        <thead>
    3836                        <tr class="throw">
     
    5755                        <td>{$data}</td>
    5856                {/foreach}
     57                        <!--Todo - Display registration date -->
    5958                                <!--Unaffected column - Can be used in the future -->
    6059                        <!--<td style="text-align:center;">-->
     
    6564        </table>
    6665        <br/>
     66            </li>
    6767    </ul>
    6868
     
    7474
    7575<p>
    76   <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset" />
    77   <input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} />
     76  <input class="submit" type="submit" value="{'Delete_selected'|@translate}" name="Del_Selected" />
     77  <input class="submit" type="submit" value="{'Mail_without_key'|@translate}" name="Mail_Without_Key" />
     78  <input class="submit" type="submit" value="{'Mail_with_key'|@translate}" name="Mail_With_Key" />
     79  <input class="submit" type="submit" value="{'Force_Validation'|@translate}" name="Force_Validation" />
     80  <!--
     81<input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} />
     82-->
    7883</p>
    7984  </fieldset>
  • extensions/NBC_UserAdvManager/trunk/admin/global.tpl

    r3742 r3836  
    11<div class="titrePage">
    2   <ul class="categoryActions">
    3  
    4   </ul>
    52  <h2>{'Title_Tab1'|@translate}</h2>
    63</div>
     
    118    <ul>
    129        <li><label>{'UserAdvManager_Mail_Info'|@translate}</label><br/>
    13         <input type="radio" value="true" {$UserAdvManager_MAIL_INFO_TRUE} name="UserAdvManager_Mail_Info"/>{'UserAdvManager_Mail_Info_true'|@translate}<br/>
    14         <input type="radio" value="false" {$UserAdvManager_MAIL_INFO_FALSE} name="UserAdvManager_Mail_Info"/>{'UserAdvManager_Mail_Info_false'|@translate}<br/>
     10        <input type="radio" value="true" {$UserAdvManager_MAIL_INFO_TRUE} name="UserAdvManager_Mail_Info"/>{'UserAdvManager_Mail_Info_true'|@translate}<br>
     11        <input type="radio" value="false" {$UserAdvManager_MAIL_INFO_FALSE} name="UserAdvManager_Mail_Info"/>{'UserAdvManager_Mail_Info_false'|@translate}<br>
     12        <br>
    1513        </li>
    16         <br/>
    17         <li><label>{'UserAdvManager_MailInfo_Text'|@translate}</label><br/>
     14        <li><label>{'UserAdvManager_MailInfo_Text'|@translate}</label><br><br>
    1815        <textarea name="UserAdvManager_MailInfo_Text" id="UserAdvManager_MailInfo_Text" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UserAdvManager_MAILINFO_TEXT}</textarea>
     16        <br><br>
    1917        </li>
    20         <br/>
    21         <li><label>{'UserAdvManager_No_Casse'|@translate}</label><br/>
    22         <input type="radio" value="true" {$UserAdvManager_NO_CASSE_TRUE} name="UserAdvManager_No_Casse"/>{'UserAdvManager_No_Casse_true'|@translate}<br/>
    23         <input type="radio" value="false" {$UserAdvManager_NO_CASSE_FALSE} name="UserAdvManager_No_Casse"/>{'UserAdvManager_No_Casse_false'|@translate}<br/>
     18        <li><label>{'UserAdvManager_No_Casse'|@translate}</label><br>
     19        <input type="radio" value="true" {$UserAdvManager_NO_CASSE_TRUE} name="UserAdvManager_No_Casse"/>{'UserAdvManager_No_Casse_true'|@translate}<br>
     20        <input type="radio" value="false" {$UserAdvManager_NO_CASSE_FALSE} name="UserAdvManager_No_Casse"/>{'UserAdvManager_No_Casse_false'|@translate}<br>
     21        <br>
     22                </li>
     23        <li><label>{'UserAdvManager_Username_Char'|@translate}</label><br>
     24        <input type="radio" value="true" {$UserAdvManager_USERNAME_CHAR_TRUE} name="UserAdvManager_Username_Char"/>{'UserAdvManager_Username_Char_true'|@translate}
     25        <input type="text" name="UserAdvManager_Username_List" value="{$UserAdvManager_USERNAME_CHAR_LIST}" size="20" style="text-align: center;"/><br>
     26        <input type="radio" value="false" {$UserAdvManager_USERNAME_CHAR_FALSE} name="UserAdvManager_Username_Char"/>{'UserAdvManager_Username_Char_false'|@translate}<br>
     27        <br>
    2428        </li>
    25         <br/>
    26         <li><label>{'UserAdvManager_Username_Char'|@translate}</label><br/>
    27         <input type="radio" value="true" {$UserAdvManager_USERNAME_CHAR_TRUE} name="UserAdvManager_Username_Char"/>{'UserAdvManager_Username_Char_true'|@translate}
    28         <input type="text" name="UserAdvManager_Username_List" value="{$UserAdvManager_USERNAME_CHAR_LIST}" size="20" style="text-align: center;"/><br/>
    29         <input type="radio" value="false" {$UserAdvManager_USERNAME_CHAR_FALSE} name="UserAdvManager_Username_Char"/>{'UserAdvManager_Username_Char_false'|@translate}<br/>
     29        <li><label>{'UserAdvManager_Confirm_Mail'|@translate}</label><br>
     30        <input type="radio" value="true" {$UserAdvManager_CONFIRM_MAIL_TRUE} name="UserAdvManager_Confirm_Mail"/>{'UserAdvManager_Confirm_Mail_true'|@translate}<br>
     31        <input type="radio" value="false" {$UserAdvManager_CONFIRM_MAIL_FALSE} name="UserAdvManager_Confirm_Mail"/>{'UserAdvManager_Confirm_Mail_false'|@translate}<br>
     32        <br>
    3033        </li>
    31         <br/>
    32         <li><label>{'UserAdvManager_Confirm_Mail'|@translate}</label><br/>
    33         <input type="radio" value="true" {$UserAdvManager_CONFIRM_MAIL_TRUE} name="UserAdvManager_Confirm_Mail"/>{'UserAdvManager_Confirm_Mail_true'|@translate}<br/>
    34         <input type="radio" value="false" {$UserAdvManager_CONFIRM_MAIL_FALSE} name="UserAdvManager_Confirm_Mail"/>{'UserAdvManager_Confirm_Mail_false'|@translate}<br/>
     34        <li><label>{'UserAdvManager_ConfirmMail_Text'|@translate}</label><br><br>
     35        <textarea name="UserAdvManager_ConfirmMail_Text" id="UserAdvManager_ConfirmMail_Text" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UserAdvManager_CONFIRMMAIL_TEXT}</textarea>
     36        <br><br>
    3537        </li>
    36         <br/>
    37         <li><label>{'UserAdvManager_ConfirmMail_Text'|@translate}</label><br/>
    38         <textarea name="UserAdvManager_ConfirmMail_Text" id="UserAdvManager_ConfirmMail_Text" rows="10" cols="80" {$TAG_INPUT_ENABLED}>{$UserAdvManager_CONFIRMMAIL_TEXT}</textarea>
     38        <li><label>{'UserAdvManager_No_Confirm_Group'|@translate}</label><br>
     39                {html_options name="UserAdvManager_No_Confirm_Group" options=$No_Confirm_Group.group_options selected=$No_Confirm_Group.group_selected}
     40        <br><br>
    3941        </li>
    40       <br/>
    41         <li><label>{'UserAdvManager_No_Confirm_Group'|@translate}</label><br/>
    42                 {html_options name="UserAdvManager_No_Confirm_Group" options=$No_Confirm_Group.group_options selected=$No_Confirm_Group.group_selected}
     42        <li><label>{'UserAdvManager_Validated_Group'|@translate}</label><br>
     43                {html_options name="UserAdvManager_Validated_Group" options=$Validated_Group.group_options selected=$Validated_Group.group_selected}
     44        <br><br>
    4345        </li>
    44       <br/>
    45         <li><label>{'UserAdvManager_Validated_Group'|@translate}</label><br/>
    46                 {html_options name="UserAdvManager_Validated_Group" options=$Validated_Group.group_options selected=$Validated_Group.group_selected}
     46        <li><label>{'UserAdvManager_No_Confirm_Status'|@translate}</label><br>
     47                {html_options name="UserAdvManager_No_Confirm_Status" options=$No_Confirm_Status.Status_options selected=$No_Confirm_Status.Status_selected}
     48        <br><br>
    4749        </li>
    48       <br/>
    49         <li><label>{'UserAdvManager_No_Confirm_Status'|@translate}</label><br/>
    50                 {html_options name="UserAdvManager_No_Confirm_Status" options=$No_Confirm_Status.Status_options selected=$No_Confirm_Status.Status_selected}
     50        <li><label>{'UserAdvManager_Validated_Status'|@translate}</label><br>
     51                {html_options name="UserAdvManager_Validated_Status" options=$Confirm_Status.Status_options selected=$Confirm_Status.Status_selected}
     52        <br><br>
    5153        </li>
    52       <br/>
    53         <li><label>{'UserAdvManager_Validated_Status'|@translate}</label><br/>
    54                 {html_options name="UserAdvManager_Validated_Status" options=$Confirm_Status.Status_options selected=$Confirm_Status.Status_selected}
     54        <li><label>{'UserAdvManager_No_Comment_Anonymous'|@translate}</label><br>
     55        <input type="radio" value="true" {$UserAdvManager_NO_COMMENT_ANO_TRUE} name="UserAdvManager_No_Comment_Anonymous"/>{'UserAdvManager_No_Comment_Anonymous_true'|@translate}<br>
     56        <input type="radio" value="false" {$UserAdvManager_NO_COMMENT_ANO_FALSE} name="UserAdvManager_No_Comment_Anonymous"/>{'UserAdvManager_No_Comment_Anonymous_false'|@translate}<br>
     57        <br>
    5558        </li>
    56         <br/>
    57         <li><label>{'UserAdvManager_No_Comment_Anonymous'|@translate}</label><br/>
    58         <input type="radio" value="true" {$UserAdvManager_NO_COMMENT_ANO_TRUE} name="UserAdvManager_No_Comment_Anonymous"/>{'UserAdvManager_No_Comment_Anonymous_true'|@translate}<br/>
    59         <input type="radio" value="false" {$UserAdvManager_NO_COMMENT_ANO_FALSE} name="UserAdvManager_No_Comment_Anonymous"/>{'UserAdvManager_No_Comment_Anonymous_false'|@translate}<br/>
     59        <li><label>{'UserAdvManager_MailExclusion'|@translate}</label><br>
     60        <input type="radio" value="true" {$UserAdvManager_MAILEXCLUSION_TRUE} name="UserAdvManager_MailExclusion"/>{'UserAdvManager_MailExclusion_true'|@translate}<br>
     61        <input type="radio" value="false" {$UserAdvManager_MAILEXCLUSION_FALSE} name="UserAdvManager_MailExclusion"/>{'UserAdvManager_MailExclusion_false'|@translate}<br>
     62        <br>
    6063        </li>
    61         <br/>
    62         <li><label>{'UserAdvManager_MailExclusion'|@translate}</label><br/>
    63         <input type="radio" value="true" {$UserAdvManager_MAILEXCLUSION_TRUE} name="UserAdvManager_MailExclusion"/>{'UserAdvManager_MailExclusion_true'|@translate}<br/>
    64         <input type="radio" value="false" {$UserAdvManager_MAILEXCLUSION_FALSE} name="UserAdvManager_MailExclusion"/>{'UserAdvManager_MailExclusion_false'|@translate}<br/>
    65         <br/>
    66         <li><label>{'UserAdvManager_MailExclusion_List'|@translate}</label><br/>
     64        <li><label>{'UserAdvManager_MailExclusion_List'|@translate}</label><br>
    6765        <textarea name="UserAdvManager_MailExclusion_List" id="UserAdvManager_MailExclusion_List" rows="3" cols="80" {$TAG_INPUT_ENABLED}>{$UserAdvManager_MAILEXCLUSION_LIST}</textarea>
    6866        </li>
    69         </li>
    7067    </ul>
    71         <div align="center"><input class="submit" type="submit" value="{'audit'|@translate}" name="audit" /> <input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} /></div>
     68        <p><input class="submit" type="submit" value="{'audit'|@translate}" name="audit" />&nbsp;<input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} /></p>
    7269  </fieldset>
    7370</form>
Note: See TracChangeset for help on using the changeset viewer.