Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

    Default newsletter subscription module default to html

    Hi,

    I have the newsletter subscription module installed. great mod.

    anyway, when I turn on Use MIME HTML When Sending Emails from Confirguration - > Email Otpions , two radio buttons appear. one for html option another for plain text.

    I don't want to give the subscriber the option. I want them to automatically sign up to the html - you can see the style problem im having with this because I dont have enough room for those check boxes.


    Attached Images Attached Images  

  2. #2
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    Did you figure out how to do this? I'd like to do the same.

  3. #3
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    I tried setting it to html default here: Admin->Configuration->Customer Details->Customer Default Email Preference

    On tpl_subscribe.php I commented out

    PHP Code:
     //  if(EMAIL_USE_HTML == 'true') {
     //   $content .= ' <br /> <label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
       // $content .= ' <label style="white-space:nowrap">' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
      // } 
    The radio bullet options no longer show on the sidebox like I want, but the user is subscribed as text instead of html.

  4. #4
    Join Date
    Jun 2008
    Location
    Coolum Beach, QLD, Australia
    Posts
    10
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    If you want to force the client to use HTML then the easiest way to do it is to modify includes/modules/pages/subscribe/header_php.php. Simply comment out the $email_format = line and put a new one afterwards:

    $email_format = 'HTML';

    That will default everybody who signs up using the sidebox to HTML.

  5. #5
    Join Date
    Feb 2008
    Location
    Western Australia
    Posts
    192
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    I have commented out the line you suggested, but it has not worked. Have I missed something?

  6. #6
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    Dont' know if you got an answer to this, found it in another post :)

    Force default for html emails on customer registration Admiin - Configuration - Customer Details - Customer Default Email Preference

    ~Renee
    [FONT="Comic Sans MS"]Red[/FONT]

  7. #7
    Join Date
    Feb 2008
    Location
    Western Australia
    Posts
    192
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    Thanks for that Red. Its not quite what I was after, but it solved another problem I hadn't researched yet

  8. #8
    Join Date
    Dec 2007
    Location
    Southern Maine
    Posts
    281
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    As far as the room....why don't you simply add a break (<br />) to put them on their own line?

    Some customers do not want html, and that is why there is a choice. I wonder how many people won't sign up for just that reason.

  9. #9
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    If you set these two options you are not removing the "text" field but you are having the box automatically checked html instead of text. :)


    Config->Customer Detail-> Show newsletter checkbox-> set to 2

    then


    Config->Customer Detail-> Customer Default Email Preference-> set to 1

    This way like said above you wont loose sign ups due to someone wanting Text.

    ~Red
    [FONT="Comic Sans MS"]Red[/FONT]

  10. #10
    Join Date
    Jan 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: newsletter subscription module default to html

    If you're referring to the newsletter subscription add-on, then open:
    includes/modules/pages/subscribe/header_php.php and change this line:
    PHP Code:
    $email_format = empty($_POST['email_format']) ? 'TEXT' $_POST['email_format']; 
    to this:
    PHP Code:
    $email_format = empty($_POST['email_format']) ? 'HTML' $_POST['email_format']; 
    Worked for me...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 newsletter subscription: No 'Subscription Manager'
    By lina0962 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 31 Jan 2013, 08:02 PM
  2. v138a Newsletter subscription unchecked - still gets the newsletter
    By navido in forum General Questions
    Replies: 2
    Last Post: 13 Sep 2012, 09:47 PM
  3. default html format for newsletter
    By jikey in forum General Questions
    Replies: 2
    Last Post: 31 Jan 2007, 02:41 AM
  4. Newsletter Subscription Module - Quick question please?
    By blind1 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 Jan 2007, 01:28 AM

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