Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Styling Login Box

    I need to write this disclaimer before I get yelled at..

    I am helping a friend who INSISTED on using one of Template Monster's stupid templates.. IT WAS NOT MY IDEA TO USE THESE TEMPLATES..

    That said.. I just wanna help her get this thing working.. Luckily most of what's working wonky is being worked out by their technical support team with the exception of ONE item.. The loginbox.. She can live with it, but it would be nice if it was styled like the other sideboxes.. I gave it a real college try with my NON php skills to attempt fixing it myself.. Then I turned to TM's tech support..

    Template Monster wants me to give them FTP access to evaluate and fix the issue. I am hesitant to give them access since I have more than one test site hosted in this location.. I am leary to give strangers (even so-called pros) access to this when I provided them with the sidebox file to test and correct.. **sigh**

    Anyway.. I could use a hand.. I'm positive it's a simple fix, though I've run out of ideas on what it MIGHT be.. I would prefer not to give these bozos access to my website files.. Can someone take pity on my plight and help!

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Styling Login Box

    Okay I made progress.. This at least LOOKS like the rest of the sideboxes.. And it appears to work MOSTLY as it originally did.. The only thing that is different is the box header is no longer dynamic because I do not know how to do that.. I'm close, but I am really now officially stumped

    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: tpl_login_box.php,v 1.0 2003/11/21 19:16:29 ajeh Exp $
    // Updated to 1.3 standard (XHTML compliant) 2006/06/07  Rick Suffolk
    //
    
    // Designed for Zen Cart v1.00 Alpha
    // Created by: Linda McGrath [email protected]
    // http://www.thewebmakerscorner.com
    
    // Edited by: Ian Manson [email protected] 2006 08 13
    // to include some my account links when actually logged in
    
      $content_tm = '';
      $content_head = tm_box_head(Login);
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '">';
    $content = "<!--testloginbox-->";
    
    if(!$_SESSION['customer_id']) {
       $content .='<br />';
       $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', '', 'size="23"').'<br />';
       $content .=LOGIN_BOX_PASSWORD . '<br />' . zen_draw_password_field('password', '', 'size="23"') . '<br />';
       $content .='<br />';
       $content .='<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . LOGIN_BOX_PASSWORD_FORGOTTEN . '</a>' . '<br />' . '<a href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . LOGIN_BOX_CREATE_ACCOUNT . '</a>' . '<br />';
       $content .='<br />';   
       $content .='<div class="centeredContent">'.zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT).'</div>';
       $content .='</form>';
    }  else {
       
       $content .= '<ul class="ul1">';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT . '</a></li>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . LOGIN_BOX_SHOPPING_CART . '</a></li>';
       $content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . LOGIN_BOX_LOGOFF . '</a></li>';
       $content .= '</ul>';
      $content .= '</div>';
    }
    
    $content .= '</div>';
      $content_tm = $content;
     $content_cont = tm_box_cont($content_tm);
     
     $content = $content_head.$content_cont;
    ?>

 

 

Similar Threads

  1. CSS styling the admin login
    By usr50 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Feb 2011, 12:58 AM
  2. Styling login area - stuck
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Dec 2009, 01:04 AM
  3. Styling login box
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Dec 2009, 06:24 PM
  4. Moving and styling login box in header
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Dec 2009, 06:28 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