Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Login Page: Remove HTML & TEXT-Only Radio Buttons

    Concerning the removal of the HTML & TEXT-Only Radio Buttons on the login page: Via the /includes/languages/custom_template/english.php I can remove the actual text but how can I make the radio buttons go away? I just want to be left with:
    Newsletter Subscription
    Subscribe to Our Newsletter
    With the checkbox.

    Thanks for any pointers.

  2. #2
    Join Date
    Apr 2009
    Location
    Houston
    Posts
    41
    Plugin Contributions
    0

    Default Re: Login Page: Remove HTML & TEXT-Only Radio Buttons

    I know its been 2 years but has anybody discovered how to do this?

    I've been trying to figure it out for the last hour or so and Im lost

    nisdats

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Login Page: Remove HTML & TEXT-Only Radio Buttons

    FTP the following file to your hard drive:

    includes/templates/template_default/tpl_modules_create_account.php

    Open it for editing in a good PLAIN TEXT editor such as crimson editor.

    Scroll down till you find the following:

    PHP Code:
    <fieldset>
    <legend><?php echo ENTRY_EMAIL_PREFERENCE?></legend>
    <?php
      
    if (ACCOUNT_NEWSLETTER_STATUS != 0) {
    ?>
    <?php 
    echo zen_draw_checkbox_field('newsletter''1'$newsletter'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' ENTRY_NEWSLETTER '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' ENTRY_NEWSLETTER_TEXT '</span>'''); ?>
    <br class="clearBoth" />
    <?php ?>
    <?php 
    echo zen_draw_radio_field('email_format''HTML', ($email_format == 'HTML' true false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' ENTRY_EMAIL_HTML_DISPLAY '</label>' .  zen_draw_radio_field('email_format''TEXT', ($email_format == 'TEXT' true false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' ENTRY_EMAIL_TEXT_DISPLAY '</label>'?>
    <br class="clearBoth" />
    </fieldset>
    COMMENT OUT (do not delete it), the section shown below:

    PHP Code:
    <fieldset>
    <legend><?php echo ENTRY_EMAIL_PREFERENCE?></legend>
    <?php
      
    if (ACCOUNT_NEWSLETTER_STATUS != 0) {
    ?>
    <?php 
    echo zen_draw_checkbox_field('newsletter''1'$newsletter'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' ENTRY_NEWSLETTER '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' ENTRY_NEWSLETTER_TEXT '</span>'''); ?>
    <br class="clearBoth" />
    <?php ?>
    <!-- EDIT BEGIN this de-activates the select html option button - uncomment to re-activate
    <?php echo zen_draw_radio_field('email_format''HTML', ($email_format == 'HTML' true false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' ENTRY_EMAIL_HTML_DISPLAY '</label>' .  zen_draw_radio_field('email_format''TEXT', ($email_format == 'TEXT' true false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' ENTRY_EMAIL_TEXT_DISPLAY '</label>'?>
     EDIT END-->
    <br class="clearBoth" />
    </fieldset>
    SAVE the file and send it to:

    includes/templates/YOUR-TEMPLATE/templates/
    20 years a Zencart User

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Login Page: Remove HTML & TEXT-Only Radio Buttons

    Along similar lines. I would like to have the newsletter subscribe radio buttons on my checkout confirmation page(s).


    FYI - my checkout routes are:

    Cheque payment: cart / bypass login page / billing information / checkout confirmation page (fec stacked)

    Paypal express: cart / paypal / checkout confirmation page (.../index.php?main_page=checkout)


    I realise this will probably require some php editing and I'm happy to attempt this. Any advice would be appreciated.

    Many thanks

    Simon

 

 

Similar Threads

  1. v151 Validating new radio buttons I added to the login page
    By aestheticdesign in forum General Questions
    Replies: 2
    Last Post: 5 Jun 2014, 09:57 PM
  2. vertical-align:middle; text on checkout page by radio buttons
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 24 Apr 2009, 02:28 PM
  3. can I Remove the HTML & TEXT-Only options and Radio Buttons ?
    By jdunique in forum General Questions
    Replies: 6
    Last Post: 29 Apr 2008, 02:26 PM
  4. HTML & Text-Only - default to HTML.
    By ceegeeaar in forum General Questions
    Replies: 3
    Last Post: 16 Aug 2007, 05:02 PM
  5. adding radio buttons to login page/restricting login
    By jaxbakers in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Mar 2007, 03:21 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