Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Alternative Header 1.1a module problem

    Hi

    I am using this mod for a customer and ther appears to be a couple of problems.

    1) There is a rogue '// ?>' in the header.

    From what I can gather of the PHP the error lies here

    Code:
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    <?
    //<!--bof-drop down menu display-->
    //  <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
    //  <!--eof-drop down menu display-->
    ?>
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
    This is in the tpl_header.php of the module between lines 91 and 103. It shows in the output source code too. I have not modified the header file so, this error must have been present from the original source code. This would suggest to me that others have encountered this issue too.

    2) In FF, the body of the site is shifted a whole screen over the to the right! Oddly, Opera seems to display the site perfectly well (I normally find this browser to be very fussy of code) and Both IE 6 and 7 attempt to render the site properly but with a a bottom scroll bar.

    I am running the cat_tabs_1.1a module too and I'm beginning to wonder if the two stylesheets clash in some way. I can read CSS pretty well but this one is evading me!

    Has anyone else had this problem?

    Thanks

    Dave
    Last edited by dml311071; 10 Jan 2008 at 07:43 PM. Reason: typos correction and additional info

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Alternative Header 1.1a module problem

    Can't see any evidence of a rogue //?> in that code, and you don't explain why you think there is one, or why you think it might be in that block of code.

    The body of a site being shifted over to the right, usually means that there is a clear:both style needed on whatever is containing that content.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: Alternative Header 1.1a module problem

    Hi

    Thanks for the response. I have included screen shots of the page:
    1) the browser view pane snippet (I have removed the background images for clarity).

    2) The browser source view imported into N++

    I agree with the comment on the 'clear' values within the div tag, but it seems odd to me that adding a known mod has this effect. I have tried this mod on my localhost and on a live server. I have also tried downloading the mod again in case my FTP client introduced an error.

    I was curious if anyone else had hit this problem because I have not changed the PHP code, although, I have , of course altered the CSS but the problem occurs using the mod's own css too.

    Odd!

    Dave
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	altheader.jpg 
Views:	290 
Size:	19.6 KB 
ID:	3209   Click image for larger version. 

Name:	altheader2.jpg 
Views:	311 
Size:	35.3 KB 
ID:	3210  

  4. #4
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    96
    Plugin Contributions
    1

    Default Re: Alternative Header 1.1a module problem

    I also am having this problem. Running Zen Cart v1.38a.

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Alternative Header 1.1a module problem

    To be clear, you are using the alternative header version 1.1a and not Clyde's 2.0.

    There is indeed a bug in it, as well as a PHP short tag (not recommended).

    I recommend going to the tpl_header.php file and replacing this code
    PHP Code:
    <?
    //<!--bof-drop down menu display-->
    //  <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_drop_menu.php');?>
    //  <!--eof-drop down menu display-->
    ?>
    with this
    PHP Code:
    <!--bof-drop down menu display-->
      <?php // require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
    <!--eof-drop down menu display-->
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    96
    Plugin Contributions
    1

    Default Re: Alternative Header 1.1a module problem

    Thank you, that did it. You wouldn't happen to know what was modified in the CSS? That was not mentioned in the documentation.


    Cal

  7. #7

    Default Re: Alternative Header 1.1a module problem

    Quote Originally Posted by kuroi View Post
    To be clear, you are using the alternative header version 1.1a and not Clyde's 2.0.

    There is indeed a bug in it, as well as a PHP short tag (not recommended).

    I recommend going to the tpl_header.php file and replacing this code
    PHP Code:
    <?
    //<!--bof-drop down menu display-->
    //  <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_drop_menu.php');?>
    //  <!--eof-drop down menu display-->
    ?>
    with this
    PHP Code:
    <!--bof-drop down menu display-->
      <?php // require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
    <!--eof-drop down menu display-->
    hai, when I fix it..my site have been gone

    need assistant

    this is my site

    konkomsite.com/galeri gis

 

 

Similar Threads

  1. Search Header with Alternative Header v2-0
    By hcd888 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 May 2009, 02:47 PM
  2. Alternative Header -
    By Still Crazy in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 2 Feb 2009, 04:21 AM
  3. Alternative Header 1.1a no search
    By kburner in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Feb 2009, 11:02 PM
  4. Alternative Header Help
    By ebookbounty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 May 2007, 09:52 PM
  5. Alternative simple header contribution?
    By Reesy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 May 2006, 04:51 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