Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: layout problems with change to sidebox

    I've just had a look and the mainWrapper is there, but there's no table starting tag directly underneath...is that wrong? It looks like this:

    HTML Code:
    <div id="mainWrapper">
    
    
    
    <!--bof-header logo and navigation display-->
    <div id="headerWrapper">

  2. #12
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: layout problems with change to sidebox

    Your code looks to be from tpl_header.php and no mainWrappper is there by default it looks like this:
    Code:
    <?php
      // Display all header alerts via messageStack:
      if ($messageStack->size('header') > 0) {
        echo $messageStack->output('header');
      }
      if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
      echo htmlspecialchars(urldecode($_GET['error_message']));
      }
      if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
       echo htmlspecialchars($_GET['info_message']);
    } else {
    
    }
    ?>
    
    
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
    tpl_main_page.php has the div in question and this is unless you have made edits and then I would have to see exactly what you changed
    Code:
    ?>
    
    <div id="mainWrapper">
    <?php
     /**
      * prepares and displays header output
      *
      */
    Zen-Venom Get Bitten

  3. #13
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: layout problems with change to sidebox

    I've checked both files and they look like your above post, but to be sure I've replaced them with their original files and the page looks exactly the same.

    Is it something to do with the CSS in the stylesheet and/or the divs in controls in sideboxes/tpl_information.php?

    here's the code for that if it helps and thanks for the help :)

    HTML Code:
    $linksarr = array("shippinginfo","privacy","conditions","contact_us","site_map");
    
      $content = '';
      $content .= '<div class="informationMain"><div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
      $content .= '<div class="informationHeader"></div>';
      $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
      for ($i=0; $i<5; $i++) {
        //$content .= '<li>' . $information[$i] . '</li>' . "\n";
        $content .= '<div class="infoLink"><a href="index.php?main_page=' . $linksarr[$i] . '"><img src="includes/templates/ios/images/information/' . $i . '.png" /></a></div>' . "\n";
        if($i !== 4){
    	$content .= '<div class="informationSideboxHrs"></div>';
        }
      }
      $content .= '</ul>' .  "\n";
      $content .= '</div><div class="imageHeader"></div></div>';

  4. #14
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: layout problems with change to sidebox

    Look at your view source in your browser - there is no mainWrapper div that is rendering
    Zen-Venom Get Bitten

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: layout problems with change to sidebox

    I've checked both files and they look like your above post, but to be sure I've replaced them with their original files and the page looks exactly the same.
    If you replaced them both your header would not look as you have it designed

    Where(path) did you replace these and are you looking at these?
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: layout problems with change to sidebox

    I replaced them within the template files - includes/templates/mytemplate/common/

    The header background image is defined in the stylesheet so I can change the header design without using those files?

    I'm really sorry, but I'm unsure on what you mean about the mainWrapper div. I've managed to put a black border around it so surely it must be rendering?
    Last edited by mikeeeeeeey; 17 Sep 2007 at 04:04 PM.

  7. #17
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: layout problems with change to sidebox

    When viewing your main page in your browser right click in the window and select "view source" and the generated html will be displayed....It is here that the normal location for the mainWrapper is not being rendered and this leads me to belive that these are not from default files
    Zen-Venom Get Bitten

  8. #18
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: layout problems with change to sidebox

    I've copied the template_default directory, renamed it 'ios' so now this is my new template directory.

    The only files I've replaces are css/stylesheet.css, the images folder, and sideboxes/tpl_information.php

    These are the only files I have replaced, so other than those there are all default files.

    Is it at around line 57 you expect to see the mainWrapper html?

  9. #19
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: layout problems with change to sidebox

    As I posted earlier - By default it should be in between these two lines:
    Code:
    </div>
    RIGHT HERE
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
      <tr>
    Zen-Venom Get Bitten

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Layout problems after change of default template width.
    By pol-uk in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Mar 2010, 11:04 PM
  2. help sidebox problems cannot edit in layout controller
    By Beefy1986 in forum Basic Configuration
    Replies: 0
    Last Post: 10 Sep 2007, 04:14 PM
  3. problems with page layout
    By paddy_uk2007 in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 26 Aug 2007, 04:11 PM
  4. New Product Sidebox layout change
    By cymfishing in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Mar 2007, 11:23 PM
  5. layout problems with CSS
    By styledata in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 20 Jun 2006, 04:32 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