Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Sep 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Centering logo

    ok thanks, using dreamweaver 8, i have looked at what i donwloaded from the server last night and there was nothing that i edited except for the css and jscript_main.php - why would it be working 8 hrs ago and not now, thanks

  2. #12
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Centering logo

    Quote Originally Posted by mescalbean View Post
    why would it be working 8 hrs ago and not now,
    I don't know.

    1. It could be any number of things, including what I've suggested above.

    2. If you are using Dreamweaver for uploading, DO NOT use "check in" and "check out" unless you know EXACTLY what that is doing on your server. It WILL cause problems in several cases.

    3. The link I posted earlier explains several other possible causes that are permissions-related. Have you checked and verified all of those suggested causes (the red text in that post)? Have you asked your hosting company about the implications of those issues on your site?

    4. You could try this step, to be sure that no files have accidentally become corrupted on your server, whether caused by you or by someone else: http://www.zen-cart.com/wiki/index.p...Obscure_Issues

    5. You need to talk to your hosting company for further information.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #13
    Join Date
    Sep 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Centering logo and combatting 500 Internal Server Error

    thanks for the info I tried that but with no luck, so i upgraded it from 1.30 to 1.35 and now it works and the logo is centred thanks for the help

  4. #14
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Re: Centering logo

    Quote Originally Posted by DrByte View Post
    1. /includes/templates/YOURTEMPLATE/common/tpl_header.php
    add this: align="center"
    Code:
              <tbody><tr><!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
                <td height="70" valign="middle" width="200" align="center">
    2. Your sidebox graphics are 165px wide, but you have your column widths set to 150px.
    You'll want to adjust those to somewhere between 165px and 170px in Admin->Configuration->Layout Settings
    I tried that but it did not work...
    here is my code:
    Code:
    <?php
    /**
     * Common Template - tpl_header.php
     *
     * this file can be copied to /templates/your_template_dir/pagename<br />
     * example: to override the privacy page<br />
     * make a directory /templates/my_template/privacy<br />
     * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
     * to override the global settings and turn off the footer un-comment the following line:<br />
     * <br />
     * $flag_disable_header = true;<br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_header.php 3192 2006-03-15 22:37:24Z wilt $
     */
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
      echo $messageStack->output('header');
    }
    ?>
        <table class="centershop" border="0" cellspacing="0" cellpadding="0">
    <?php
    if (!isset($flag_disable_header) || $flag_disable_header == false) {
    ?>
          <tr><td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="headerNavigation">
              <tr>
                <td align="left" valign="top" width="35%" class="headerNavigation">
                  <a href="<?php echo zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>&nbsp;|&nbsp;
    <?php if (isset($_SESSION['customer_id'])) { ?>
                  <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>&nbsp;|&nbsp;
                  <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
                  <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
    <?php } } ?>
                </td>
                <td align="center" width="30%" class="headerNavigation"><?php require(DIR_WS_MODULES . 'sideboxes/' . 'search_header.php'); ?></td>
                <td align="right" valign="top" width="35%" class="headerNavigation">
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
                  <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>&nbsp;|&nbsp;<a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?>&raquo;</a>
    <?php }?>
                </td>
              </tr>
            </table>
            <table border="0" width="100%" cellspacing="0" cellpadding="0" class="header">
              <tr><!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
                <td valign="middle" height="<?php echo HEADER_LOGO_HEIGHT; ?>" width="<?php echo HEADER_LOGO_WIDTH; ?>">
    <?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, Burning_Card_Magic_Rocks) . '</a>'; ?>
                </td>
                <td align="center" valign="top">
    <?php
                  if (HEADER_SALES_TEXT != '') {
                    echo ;
                  }
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
                      echo zen_display_banner('static', $banner);
                    }
                  }
    ?>
                </td>
              </tr>
            </table>
    <?php
      if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    ?>
            <table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="headerError">
                <td class="headerError"><?php echo htmlspecialchars(urldecode($_GET['error_message'])); ?></td>
              </tr>
            </table>
    <?php
      }
      if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    ?>
            <table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="headerInfo">
                <td class="headerInfo"><?php echo htmlspecialchars($_GET['info_message']); ?></td>
              </tr>
            </table>
    <?php
      }
    ?>
    <?php
    } else {
    ?>
        <tr><td>
    <?php
    }
    ?>
    <!--bof-optional categories tabs navigation display-->
    <?php
    if (CATEGORIES_TABS_STATUS == '1') {
      require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php');
    }
    ?>
    <!--eof-optional categories tabs navigation display-->
    
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->

  5. #15
    Join Date
    Mar 2006
    Location
    San Francisco, CA
    Posts
    45
    Plugin Contributions
    0

    Default Re: Centering logo

    Quote Originally Posted by DrByte View Post
    1. /includes/templates/YOURTEMPLATE/common/tpl_header.php
    add this: align="center"
    Code:
              <tbody><tr><!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
                <td height="70" valign="middle" width="200" align="center">
    I have the same problem but when I go to my template/common/tpl_header.php, I do not have the same code as referenced above. That is, when I open up the tpl_header.php file in Dreamweaver and search for (for example) tbody or td height, it indicates "Done. Not found in the current document." I have searched in both my custom_template/common/tpl_header.php and the default_template/common/tpl_header.php with no success. I am using 1.3.5. Here is the link to the Zen Cart part of our site:
    http://www.holymtn.com/catalog

    Also, what happened to the search feature in the Zen Forum? It is an option only in the FAQ area of the site now, much to my consternation.

  6. #16
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: Centering logo and combatting 500 Internal Server Error

    Hi Rae!
    If you are trying to center your logo, this should work in your situation;

    In your stylesheet.css, find:
    Code:
    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    	float: left;
    	}
    Replace with;
    Code:
    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    	float: left;
    	}
    #logo { text-align: center }
    Is the search you mentioned not working for you? I just tried the "Search" in the upper blue bar and it seems to work okay.

  7. #17
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Re: Centering logo and combatting 500 Internal Server Error

    I've just tried this and still no luck.. I'm pulling my hair out now, how can I center my logo! lol

    If anyone else can help please do!

    Cheers
    Dan

  8. #18
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: Centering logo and combatting 500 Internal Server Error

    Are you trying to center your 'logo'(the overwrote little Zen Cart logo) or the actual header background? Do you have a URL for your old skool Zen Cart? Only then, we'll see if this is a hair pulling issue.

  9. #19
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: Centering logo and combatting 500 Internal Server Error

    I'm magical; http://www.burningcardmagic.co.uk/

    Ahhh, so you went the troublesome way and made a full size image out of the mini logo. That won't go over to easily with the newer versions as you'll crush the tagline wrapper and make unnecessary whitespace in IE.

    For a quick fix, declare or make your logo width to 750px... the same width as the actual layout.

  10. #20
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Re: Centering logo and combatting 500 Internal Server Error

    That works for me... making the image a little bigger want too much of a pain... my client likes it so that works!!

    Cheers

    Dan

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 8 Oct 2012, 05:35 AM
  2. 500 Internal Server Error
    By Creations in forum General Questions
    Replies: 0
    Last Post: 7 Sep 2011, 05:33 PM
  3. Replies: 14
    Last Post: 2 Jan 2011, 11:13 PM
  4. 500 Internal Server Error
    By kb9k in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 21 Oct 2010, 11:33 PM
  5. Replies: 4
    Last Post: 12 Jan 2009, 05:12 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