Resource icon

Auto Lock Threads 1.0.0 Beta 2

No permission to download

osieorb18

Active member
@au lait - There's still the permissions issue too as I had mentioned to you in PM.

For next update (no rush):

  • No longer ignores Node Permissions.
  • Link to the thread in the Admin Panel List.
  • Details of Rule in the Admin Panel List.
 
Last edited:

ichpen

Well-known member
Is there an option to throttle the each run ie max threads to lock per run? I recall using Andy's similar Addon it triggered several thousand locks and made a huge mess until he added that option.

Also is there an option to post a msg before thread is auto locked?
 

osieorb18

Active member
Is there an option to throttle the each run ie max threads to lock per run? I recall using Andy's similar Addon it triggered several thousand locks and made a huge mess until he added that option.

Also is there an option to post a msg before thread is auto locked?
The threads are locked individually. As for a message, you'd need some form of Scheduled Posting or Scheduled Content.
 

osieorb18

Active member
@XenArabia -
In the template alt_alt, modify this section:

Code:
            <xf:radiorow name="alt" label="{{ phrase('x0815_alt_auto_lock_after') }}">

                <xf:option value="reply_limit" label="{{ phrase('x0815_alt_maximum_number_of_replys') }}">
                    <xf:dependent>
                        <xf:numberbox name="reply_limit[replys]" min="1" value="10" />
                        <dfn class="inputChoices-explain inputChoices-explain--after">{{ phrase('x0815_alt_maximum_number_of_replys_explain') }}</dfn>
                    </xf:dependent>
                </xf:option>

                <xf:option value="datetime_limit" selected="true" label="{{ phrase('date_time:') }}">

                    <xf:dependent>
                        <div class="inputGroup inputGroup--auto">
                            <xf:select name="datetime_limit[month]" value="{{ date($xf.time, 'n') }}">
                                <xf:option value="0"></xf:option>
                                <xf:option value="1">{{ phrase('month_1') }}</xf:option>
                                <xf:option value="2">{{ phrase('month_2') }}</xf:option>
                                <xf:option value="3">{{ phrase('month_3') }}</xf:option>
                                <xf:option value="4">{{ phrase('month_4') }}</xf:option>
                                <xf:option value="5">{{ phrase('month_5') }}</xf:option>
                                <xf:option value="6">{{ phrase('month_6') }}</xf:option>
                                <xf:option value="7">{{ phrase('month_7') }}</xf:option>
                                <xf:option value="8">{{ phrase('month_8') }}</xf:option>
                                <xf:option value="9">{{ phrase('month_9') }}</xf:option>
                                <xf:option value="10">{{ phrase('month_10') }}</xf:option>
                                <xf:option value="11">{{ phrase('month_11') }}</xf:option>
                                <xf:option value="12">{{ phrase('month_12') }}</xf:option>
                            </xf:select>

                            <span class="inputGroup-splitter"></span>
                            <xf:textbox name="datetime_limit[day]" value="{{ date($xf.time, 'd') }}" pattern="\d*" size="4" maxlength="2" placeholder="{{ phrase('day') }}" />

                            <span class="inputGroup-splitter"></span>
                            <xf:textbox name="datetime_limit[year]" value="{{ date($xf.time, 'Y') }}" pattern="\d*" size="6" maxlength="4" placeholder="{{ phrase('year') }}" />

                            <span class="inputGroup-splitter"></span>
                            <xf:textbox name="datetime_limit[hour]" value="{{ date($xf.time, 'H') }}" pattern="\d*" size="6" maxlength="2" placeholder="{{ phrase('hours') }}" />
                            <xf:textbox name="datetime_limit[minutes]" value="{{ date($xf.time, 'i') }}" pattern="\d*" size="6" maxlength="2" placeholder="{{ phrase('x0815_alt_minutes') }}" />
                        </div>

                        <dfn class="inputChoices-explain inputChoices-explain--after">{{ phrase('x0815_alt_date_time_explain') }}</dfn>
                    </xf:dependent>
                </xf:option>

                <xf:option value="datetime_interval" label="{{ phrase('x0815_alt_interval:') }}">

                    <xf:dependent>
                        <div class="inputGroup inputGroup--auto">
                            <xf:textbox name="datetime_interval[interval]" value="7" />
                            <span class="inputGroup-splitter"></span>
                            <xf:select name="datetime_interval[unit]">
                                <xf:option value="hours">{{ phrase('hours') }}</xf:option>
                                <xf:option value="days" selected="true">{{ phrase('days') }}</xf:option>
                                <xf:option value="weeks">{{ phrase('weeks') }}</xf:option>
                                <xf:option value="months">{{ phrase('months') }}</xf:option>
                            </xf:select>
                        </div>

                        <dfn class="inputChoices-explain inputChoices-explain--after">{{ phrase('x0815_alt_interval_explain') }}</dfn>
                    </xf:dependent>
                </xf:option>

                <xf:option value="last_post_time_limit" label="{{ phrase('x0815_alt_after_last_post_time_limit:') }}">

                    <xf:dependent>
                        <div class="inputGroup inputGroup--auto">
                            <xf:textbox name="last_post_time_limit[interval]" value="7" />
                            <span class="inputGroup-splitter"></span>
                            <xf:select name="last_post_time_limit[unit]">
                                <xf:option value="hours">{{ phrase('hours') }}</xf:option>
                                <xf:option value="days" selected="true">{{ phrase('days') }}</xf:option>
                                <xf:option value="weeks">{{ phrase('weeks') }}</xf:option>
                                <xf:option value="months">{{ phrase('months') }}</xf:option>
                            </xf:select>
                        </div>

                        <dfn class="inputChoices-explain inputChoices-explain--after">{{ phrase('x0815_alt_after_last_post_time_limit_explain') }}</dfn>
                    </xf:dependent>
                </xf:option>
            </xf:radiorow>

by commenting out the options you don't want with <xf:comment></xf:comment> tags or deleting those options.

The option you want to keep is the <xf:option value="datetime_limit" selected="true" label="{{ phrase('date_time:') }}"> one.
 
Last edited:
Top