Page 18 of 21 FirstFirst ... 81617181920 ... LastLast
Results 171 to 180 of 209
  1. #171
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Email Archive Manager

    Instead of removing it, the following fix might work:

    The admin side can stores html in some other tables (e.g. product description), and the reason is, the admin side zen_db_prepare_input does NOT include a zen_sanitize_string.

    If we added an HTML safe zen_db_prepare_input to catalog side, and used that when preparing $email_html in zen_mail_archive_write, it would fix this problem.

    I am just uncertain if it would introduce a security issue. I suspect not, but I am not certain.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #172
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Email Archive Manager

    If the forms within our sites are sanitizing input from users, shouldn't that be safe to store/read? Email created within admin should be safe I would hope.

    This walk has made me notice my email templates are antiquated and in desperate need for a responsive update. Something else to work on..

    I modified some of the following section of code to make the view html button work for me.. I'm sure this will change as I modify my templates.

    Code:
         if ($action=='prev_html') {
            $html_content = $this_email->fields['email_html'];
            $html_content = str_replace('_html_','<html>',$html_content);
            $html_content = str_replace('_/html_','</html>',$html_content);
            $html_content = str_replace('_head_','<head>',$html_content);
            $html_content = str_replace('_/head_','</head>',$html_content);
            $html_content = str_replace('_meta ','<meta ',$html_content);
            $html_content = str_replace('_base','<base',$html_content);
            $html_content = str_replace('_/style_','</style>',$html_content);
            $html_content = str_replace('_style','<style',$html_content);
            $html_content = str_replace('_body ','<body ',$html_content);
            $html_content = str_replace('_/body_','</body> ',$html_content);
            $html_content = str_replace('/_','/>',$html_content);
            $html_content = str_replace('_table_','<table>',$html_content);
            $html_content = str_replace('_table ','<table ',$html_content);
            $html_content = str_replace('_/table','</table',$html_content);
            $html_content = str_replace(array('_tr_','_tr>'),'<tr>',$html_content);
            $html_content = str_replace(array('_/tr_','_/tr>'),'</tr>',$html_content);
            $html_content = str_replace(array('_td_','<td_'),'<td>',$html_content);
            $html_content = str_replace('_td ','<td ',$html_content);
            $html_content = str_replace(array('_/td_','_/td>','</td_'),'</td>',$html_content);
            $html_content = str_replace('"_','">',$html_content);
            $html_content = str_replace('_ ','> ',$html_content);
            $html_content = str_replace('_li>','<li>',$html_content);
            $html_content = str_replace('_div ','<div ',$html_content);
            $html_content = str_replace('_/div_','</div>',$html_content);
            $html_content = str_replace('_/div','</div',$html_content);
            $html_content = str_replace('_strong_','<strong>',$html_content);
            $html_content = str_replace('_/strong_','</strong>',$html_content);
            $html_content = str_replace('strong_','strong>',$html_content);
            $html_content = str_replace('_/strong','</strong',$html_content);
            $html_content = str_replace('_!','<!',$html_content);
            $html_content = str_replace('--_','-->',$html_content);
            $html_content = str_replace(array('_br_','_br /_','_br />'),'<br />',$html_content);
            $html_content = str_replace('em_','em>',$html_content);
            $html_content = str_replace('_/em','</em',$html_content);
            $html_content = str_replace('_img ','<img ',$html_content);
            $html_content = str_replace('_a href','<a href',$html_content);
            $html_content = str_replace(array('_/a_','_/a>'),'</a>',$html_content);
            $html_content = str_replace('&quot;_','">',$html_content);
            $html_content = str_replace('_nobr','<nobr',$html_content);
            $html_content = str_replace(';nbsp;','&nbsp;',$html_content);
            $html_content = str_replace('&amp;','&',$html_content);
            $html_content = str_replace('&amp&','&&',$html_content);
            $html_content = str_replace('&&nbsp;','&nbsp;',$html_content);
            $html_content = str_replace('&quot;','"',$html_content);
          }
    Dave
    Always forward thinking... Lost my mind!

  3. #173
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Email Archive Manager

    Quote Originally Posted by davewest View Post
    ... This walk has made me notice my email templates are antiquated and in desperate need for a responsive update. Something else to work on..
    Just a note that Zen Cart 1.5.5 has incorporated the Common Email Styling plugin that provides those responsive email templates.

  4. #174
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Email Archive Manager

    Just wanted to chime my two cents. I'm actually sitting on an upgrade to upgrade to HTML email on my site because of this plugin and how zen cart stores HTML emails.

    I was going to look into re-coding zen cart to actually store the emails properly, rather then go live without HTML previews. Still haven't gotten round to it though.

  5. #175
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Email Archive Manager

    Quote Originally Posted by lat9 View Post
    Just a note that Zen Cart 1.5.5 has incorporated the Common Email Styling plugin that provides those responsive email templates.
    I notice that.. but the layout needs work. Currently it's just a html version of the text. With html format, you can run a fine line between useful and spam.. I like how Amaz0n did their layout, while some others are in the spam side.

    But that's another subject...

    If you send yourself a copy of everything your shop sends out, than is storing email really needed? It's nice to have that switch, but if it creates a problem by admin going to the spam side.. than maybe we shouldn't store them.

    Maybe the whole archiving table and all should be a mod and not built into ZC or was that the patch you was suggesting @swguy
    Dave
    Always forward thinking... Lost my mind!

  6. #176
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Email Archive Manager

    Updated the contribution to add notes about my fix for catalog side HTML emails.
    Also changed the display order of To and From fields to match most email programs, which put From first.
    Also changed subject display so that ellipsis would only be shown if the subject was actually trimmed.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #177
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Email Archive Manager

    There was an error in the instructions I added to the module's readme file - I just made a fix to provide better instructions.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #178
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Email Archive Manager

    New Version - Email Archive Manager 1.8b for 1.55f
    I've submitted an update that corrects an error in the admin extra_datafiles define that prevented admin profile restrictions from working correctly.

    Tested and working on 1.55e & 1.55f.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  9. #179
    Join Date
    Mar 2010
    Location
    Nottingham UK
    Posts
    87
    Plugin Contributions
    1

    Default Re: Email Archive Manager

    Hi all,

    I've installed this mod and been having issues with it. I'm on 1.5.5a and using the latest copy downloaded from this site.

    Once installed the mod causes an internal server 500 error when zen cart is sending the email, so an email is never received. The debug logs look like this:

    Code:
    [22-Aug-2018 15:58:17 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function zen_db_prepare_input_html_safe() in /public_html/shop/includes/functions/functions_email.php:405
    Stack trace:
    #0 /public_html/shop/includes/functions/functions_email.php(369): zen_mail_archive_write('Joe Bloggs', '[email protected]', 'Example Email...', '[email protected]', 'Order Confirmat...', '<html>\n <head>\n...', 'Order Confirmat...', 'checkout', '')
    #1 /public_html/shop/includes/classes/order.php(1086): zen_mail('Joe Bloggs', '[email protected]', 'Order Confirmat...', 'Order Confirmat...', 'Company...', 'enquiries@example...', Array, 'checkout', Array)
    #2 /public_html/shop/includes/modules/checkout_process.php(96): order->send_order_email(4441, 2)
    #3 /public_html/shop/includes/modules/pages/checkout_process/header_php.php(14): require('/...')
    #4 /public_html/shop/index.php(36): require('/...')
    #5 {main}
      thrown in /public_html/shop/includes/functions/functions_email.php on line 405
    What I've noticed is that the replacement 'functions_email.php' file in the module's installation folder includes a reference to a function that doesn't exist. 'zen_db_prepare_input_html_safe'

    Line 405:

    Code:
    $email_html = (EMAIL_USE_HTML=='true') ? zen_db_prepare_input_html_safe($email_html) : zen_db_prepare_input('HTML disabled in admin');
    In the original functions_email file, the function is referred to as zen_db_prepare_input_html.

    Is this correct? Would it affect anything adversely if I amended that line to the old function name? Or is there something wrong with my setup and that the _safe function should exist?

    Any pointers would be appreciated!

  10. #180
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Email Archive Manager

    You didn't install ./includes/functions/functions_email.php from the mod. This file includes the function zen_db_prepare_input_html_safe.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 18 of 21 FirstFirst ... 81617181920 ... LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR