The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Boxtrapper - SelectAll Button Added

Discussion in 'E-mail Discussions' started by tinman, Nov 26, 2008.

  1. tinman

    tinman Registered

    Joined:
    Mar 31, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    This has been bugging me and I have spent hours trying to find a pre-built solution, so I fixed it myself.

    Essentially, when you run the boxtrapper queue you have the ability to delete and mail messages individually. Thats fine for sending individual messages, but I wanted a select all to delete the whole queue.

    So, here you go. Bit of javascript added, and the cpanel code hacked a bit.

    http://www.streetsafari.com/ph/showq.html.gz

    If you aren't sure what you are doing run these commands:

    cd /usr/local/cpanel/base/frontend/x/mail
    cp showq.html showq.html.bkup
    wget http://www.streetsafari.com/ph/showq.html.gz
    gunzip showq.html.gz

    Job done.

    The code is a bit of a hack. I could not find where the form tag came from that needed id=frm1 to be added, so I overruled it earlier in showq.html with a new form command. If someone can tell me where the autogenerated form command comes I'll gladly update it.

    Anyway, this will now give you a single box at the top of the page - hit that and everything is selected, and you can delete the queue in two clicks.
     
Loading...

Share This Page