Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Location
    Maryland
    Posts
    65
    Plugin Contributions
    0

    Default Adding Labels to Login SideBox

    Hello,

    I have linda's login sidebox add-on installed. I want to add labels names for the two form fields "email address" and "password". I cannot get it to work. Can someone help me please?

    Code:
    $content = "<!--loginSideBox-->";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    
    if(!$_SESSION['customer_id']) {
    
       $content .=zen_draw_form('login_box', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'));
       $content .=LOGIN_BOX_EMAIL_ADDRESS . '<br />' . zen_draw_input_field('email_address', 'email address', 'size="24"').'<br />';
       $content .=LOGIN_BOX_PASSWORD . '<br />'.'<br />' . zen_draw_password_field('password', '', 'size="24"') . '<br />'.'<br />';
       $content .='<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . LOGIN_BOX_PASSWORD_FORGOTTEN . '</a>' . '<br />' .'<br />' . '<a href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . LOGIN_BOX_CREATE_ACCOUNT . '</a>' . '<br />'.'<br />';
       $content .= zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);
       $content .='<div class="centeredContent">'.zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT).'</div>';
       $content .='</form>';

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Adding Labels to Login SideBox

    I don't know the mod but from the looks of it the two labels are there in the code already.

    They are defined in a language file that you should have put in:

    includes/languages/english/extra_definitions/login_box_defines.php

    (Or the override version of that file which is includes/languages/english/extra_definitions/yourtemplate/login_box_defines.php)

    If you edit that file the labels will appear in the sidebox - or should

 

 

Similar Threads

  1. Disable My Account sidebox, but keep Login sidebox??
    By Upsiaus in forum Basic Configuration
    Replies: 2
    Last Post: 11 Oct 2011, 11:07 PM
  2. Login Sidebox
    By tinadad in forum Addon Sideboxes
    Replies: 11
    Last Post: 25 Mar 2009, 11:55 AM
  3. Adding one sidebox to a define page when sidebox is turned off
    By Happyworker in forum Basic Configuration
    Replies: 3
    Last Post: 30 Nov 2008, 01:27 AM
  4. 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