Results 1 to 10 of 209

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Email Archive Manager

    Glad you like it, rlexyd.

    The Trim functionality doesn't even look at your date formats. Since the date selections are preset radio buttons (1, 6, or 12 months), there's no date to enter, so the code just automatically puts the date in MySQL format. If you didn't touch the code in the addon you should be fine.

    Assuming you didn't touch the code, let's do a test. Make sure you've installed the latest version of Email Archive Manager from the addon section. Then open email_history.php, and find this code at line 60:

    Code:
    $db->Execute("delete from " . TABLE_EMAIL_ARCHIVE . " where date_sent <= '" . zen_date_raw($cutoff_date) . "'");
    Just above that line, enter the following code:

    Code:
    $sql = "delete from " . TABLE_EMAIL_ARCHIVE . " where date_sent <= '" . zen_date_raw($cutoff_date) . "'";
    die($sql);
    Save and upload the file to your /admin directory.

    Now perform a trim, any date range. When you do, the page will come back blank with just the SQL query listed at the top. Copy and paste that query into a response post on this thread.

    When you're done, go back into email_history.php and undo the changes described above. You can simply comment out the new lines and uncomment the original.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  2. #2
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Email Archive Manager

    Hello Frank,
    Thank you for your reply.

    I did as you asked, here is the query:

    delete from zen_email_archive where date_sent <= '20101307'

    Just wondering, shouldn't the date have shown up as 20100713?

    Hope you can solve this.

    Best Regards,

  3. #3
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Email Archive Manager

    You there Frank??

  4. #4
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Email Archive Manager

    Sorry, went underground dealing with some non-Zen Cart stuff.

    You're right, that date isn't correct. I'll look into this further.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  5. #5
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Email Archive Manager

    I'm sure you are busy and I appreciate ur help :)

    Cheers,

  6. #6
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Email Archive Manager

    rlexyd, how exactly did you go about changing the date format?

    Did you follow the instructions in this FAQ article?


    Did you make any date-related edits to email_history.php?
    Last edited by BlindSide; 25 Aug 2010 at 01:48 PM.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  7. #7
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Email Archive Manager

    Hiya Frank,

    Yes, I followed the instructions from that link to change the dates.

    Also, after the Trim email archive was Not working, I did attempt to alter the dates from the email_history.php and it didn't make a difference, so I just replaced it back with the original file!

    You can check an image snapshot of what happens when I go to trim email archive, emails are only a week old and it still deleted them all.
    (http://a.imageshack.us/img26/6650/eamerror.jpg)

    Hope you can help figure out what's causing this and how to fix it :)

    Best Regards,

 

 

Similar Threads

  1. Email Archive Manager - D/M/Y Date issue:
    By rlexyd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Jul 2010, 05:26 AM
  2. problem with Email Archive Manager on 1.3.6
    By rstevenson in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Aug 2008, 02:57 PM
  3. Email Archive Manager kicks me out of Admin
    By Bostitch in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 8 Mar 2008, 01:30 AM
  4. Email sent to archive manager-never delivered
    By SweetandLavish in forum General Questions
    Replies: 10
    Last Post: 10 Jun 2007, 03:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg