When you have hundreds (or even thousands) of messages in your inbox, you want to archive them. You also want to get rid of the extremely old messages in your inbox to relieve SQL space. IP.Board has had this feature for a long time. IP.Board will send you an email with all of your archived messages in either HTML format or in a Microsoft Excel data file.

This short change will allow you and your members to archive more messages instead of using the 50 message limit. Note that each server will have its limitations. If you experience issues with this change, revert them or ask your host to solve the memory issue.


Open sources/action_public/messenger.php

Find:

Code: 
         if ($this->ipsclass->input['number'] > 50)
         {
             $this->ipsclass->input['number'] = 50;
         }
Replace with:

Code: 
         if ($this->ipsclass->input['number'] > 150)
         {
             $this->ipsclass->input['number'] = 150;
         }
Save and reupload.
  • ACP > Look & Feel [tab] > Skin Manager
  • Your skin name > Edit Template HTML
  • Messenger > archive_form
Replace everything in there with this:

Code: 
<form action="{$this->ipsclass->base_url}" method="post">
<input type="hidden" name="act" value="Msg" />
<input type="hidden" name="CODE" value="15" />
    
<div class="formsubtitle">{$this->ipsclass->lang['archive_title']}</div>
    <p>{$this->ipsclass->lang['archive_text']}</p>
        <table class='ipbtable' cellspacing="0">
            <tr>
                <td><b>{$this->ipsclass->lang['arc_folders']}</b></td>
                <td>$jump_html</td>
            </tr>
            <tr>
                <td><b>{$this->ipsclass->lang['arc_dateline']}</b></td>
                <td valign="middle">
                    <select name="dateline">
                        <option value="1">1</option>
                        <option value="7">7</option>
                        <option value="30" selected="selected">30</option>
                        <option value="90">90</option>
                        <option value="365">365</option>
                        <option value="all">{$this->ipsclass->lang['arc_alldays']}</option>
                    </select>
                        &nbsp;&nbsp;{$this->ipsclass->lang['arc_days']}
                    <select name="oldnew">
                        <option value="newer" selected="selected">{$this->ipsclass->lang['arch_new']}</option>
                        <option value="older">{$this->ipsclass->lang['arch_old']}</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><b>{$this->ipsclass->lang['arc_max']}</b></td>
                <td valign="middle"><select name="number"><option value="5">5</option><option value="10">10</option><option value="20" selected="selected">20</option><option value="30">30</option><option value="40">40</option><option value="50">50</option><option value="60">60</option><option value="70">70</option><option value="80">80</option><option value="90">90</option><option value="100">100</option><option value="110">110</option><option value="120">120</option><option value="130">130</option><option value="140">140</option><option value="150">150</option></select></td>
            </tr>
            <tr>
                <td><b>{$this->ipsclass->lang['arc_delete']}</b></td>
                <td valign="middle"><select name="delete"><option value="yes">{$this->ipsclass->lang['arc_yes']}</option><option value="no" selected="selected">{$this->ipsclass->lang['arc_no']}</option></select></td>
            </tr>
            <tr>
                <td><b>{$this->ipsclass->lang['arc_type']}</b></td>
                <td valign="middle"><select name="type"><option value="xls" selected="selected">{$this->ipsclass->lang['arc_xls']}</option><option value="html">{$this->ipsclass->lang['arc_html']}</option></select></td>
            </tr>
        </table>
        <div class="formsubtitle" align="center"><input class='button' type="submit" value="{$this->ipsclass->lang['arc_submit']}" /></div>
</form>
Save the template bit.
Lease Reviewed by Lease on . [TUT]Increase the number of messages allowed to be archived When you have hundreds (or even thousands) of messages in your inbox, you want to archive them. You also want to get rid of the extremely old messages in your inbox to relieve SQL space. IP.Board has had this feature for a long time. IP.Board will send you an email with all of your archived messages in either HTML format or in a Microsoft Excel data file. This short change will allow you and your members to archive more messages instead of using the 50 message limit. Note that each server Rating: 5